lemmy-js-client 0.17.0-rc.9 → 0.17.2-rc.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (521) hide show
  1. package/README.md +24 -5
  2. package/dist/http.d.ts +351 -21
  3. package/dist/http.js +407 -389
  4. package/dist/index.d.ts +0 -1
  5. package/dist/index.js +5 -2
  6. package/dist/types/AddAdmin.d.ts +6 -0
  7. package/dist/types/AddAdminResponse.d.ts +4 -0
  8. package/dist/types/AddModToCommunity.d.ts +8 -0
  9. package/dist/types/AddModToCommunityResponse.d.ts +4 -0
  10. package/dist/types/AdminPurgeComment.d.ts +9 -0
  11. package/dist/types/AdminPurgeCommentView.d.ts +8 -0
  12. package/dist/types/AdminPurgeCommunity.d.ts +7 -0
  13. package/dist/types/AdminPurgeCommunityView.d.ts +6 -0
  14. package/dist/types/AdminPurgePerson.d.ts +7 -0
  15. package/dist/types/AdminPurgePersonView.d.ts +6 -0
  16. package/dist/types/AdminPurgePersonView.js +2 -0
  17. package/dist/types/AdminPurgePost.d.ts +9 -0
  18. package/dist/types/AdminPurgePost.js +2 -0
  19. package/dist/types/AdminPurgePostView.d.ts +8 -0
  20. package/dist/types/AdminPurgePostView.js +2 -0
  21. package/dist/types/ApproveRegistrationApplication.d.ts +6 -0
  22. package/dist/types/ApproveRegistrationApplication.js +3 -0
  23. package/dist/types/BanFromCommunity.d.ts +11 -0
  24. package/dist/types/BanFromCommunity.js +2 -0
  25. package/dist/types/BanFromCommunityResponse.d.ts +5 -0
  26. package/dist/types/BanFromCommunityResponse.js +2 -0
  27. package/dist/types/BanPerson.d.ts +9 -0
  28. package/dist/types/BanPerson.js +2 -0
  29. package/dist/types/BanPersonResponse.d.ts +5 -0
  30. package/dist/types/BanPersonResponse.js +2 -0
  31. package/dist/types/BannedPersonsResponse.d.ts +4 -0
  32. package/dist/types/BannedPersonsResponse.js +2 -0
  33. package/dist/types/BlockCommunity.d.ts +6 -0
  34. package/dist/types/BlockCommunity.js +2 -0
  35. package/dist/types/BlockCommunityResponse.d.ts +5 -0
  36. package/dist/types/BlockCommunityResponse.js +2 -0
  37. package/dist/types/BlockPerson.d.ts +6 -0
  38. package/dist/types/BlockPerson.js +2 -0
  39. package/dist/types/BlockPersonResponse.d.ts +5 -0
  40. package/dist/types/BlockPersonResponse.js +2 -0
  41. package/dist/types/CaptchaResponse.d.ts +5 -0
  42. package/dist/types/CaptchaResponse.js +3 -0
  43. package/dist/types/ChangePassword.d.ts +6 -0
  44. package/dist/types/ChangePassword.js +3 -0
  45. package/dist/types/Comment.d.ts +19 -0
  46. package/dist/types/Comment.js +2 -0
  47. package/dist/types/CommentAggregates.d.ts +10 -0
  48. package/dist/types/CommentAggregates.js +2 -0
  49. package/dist/types/CommentId.d.ts +1 -0
  50. package/dist/types/CommentId.js +3 -0
  51. package/dist/types/CommentReply.d.ts +10 -0
  52. package/dist/types/CommentReply.js +2 -0
  53. package/dist/types/CommentReplyId.d.ts +1 -0
  54. package/dist/types/CommentReplyId.js +3 -0
  55. package/dist/types/CommentReplyResponse.d.ts +4 -0
  56. package/dist/types/CommentReplyResponse.js +2 -0
  57. package/dist/types/CommentReplyView.d.ts +21 -0
  58. package/dist/types/CommentReplyView.js +2 -0
  59. package/dist/types/CommentReport.d.ts +14 -0
  60. package/dist/types/CommentReport.js +2 -0
  61. package/dist/types/CommentReportId.d.ts +1 -0
  62. package/dist/types/CommentReportId.js +3 -0
  63. package/dist/types/CommentReportResponse.d.ts +4 -0
  64. package/dist/types/CommentReportResponse.js +2 -0
  65. package/dist/types/CommentReportView.d.ts +18 -0
  66. package/dist/types/CommentReportView.js +2 -0
  67. package/dist/types/CommentResponse.d.ts +7 -0
  68. package/dist/types/CommentResponse.js +2 -0
  69. package/dist/types/CommentSortType.d.ts +1 -0
  70. package/dist/types/CommentSortType.js +3 -0
  71. package/dist/types/CommentView.d.ts +18 -0
  72. package/dist/types/CommentView.js +2 -0
  73. package/dist/types/Community.d.ts +20 -0
  74. package/dist/types/Community.js +2 -0
  75. package/dist/types/CommunityAggregates.d.ts +13 -0
  76. package/dist/types/CommunityAggregates.js +2 -0
  77. package/dist/types/CommunityBlockId.d.ts +1 -0
  78. package/dist/types/CommunityBlockId.js +3 -0
  79. package/dist/types/CommunityBlockView.d.ts +6 -0
  80. package/dist/types/CommunityBlockView.js +2 -0
  81. package/dist/types/CommunityFollowerView.d.ts +6 -0
  82. package/dist/types/CommunityFollowerView.js +2 -0
  83. package/dist/types/CommunityId.d.ts +1 -0
  84. package/dist/types/CommunityId.js +3 -0
  85. package/dist/types/CommunityJoin.d.ts +4 -0
  86. package/dist/types/CommunityJoin.js +2 -0
  87. package/dist/types/CommunityJoinResponse.d.ts +3 -0
  88. package/dist/types/CommunityJoinResponse.js +3 -0
  89. package/dist/types/CommunityModeratorView.d.ts +6 -0
  90. package/dist/types/CommunityModeratorView.js +2 -0
  91. package/dist/types/CommunityResponse.d.ts +6 -0
  92. package/dist/types/CommunityResponse.js +2 -0
  93. package/dist/types/CommunityView.d.ts +9 -0
  94. package/dist/types/CommunityView.js +2 -0
  95. package/dist/types/CreateComment.d.ts +11 -0
  96. package/dist/types/CreateComment.js +2 -0
  97. package/dist/types/CreateCommentLike.d.ts +6 -0
  98. package/dist/types/CreateCommentLike.js +2 -0
  99. package/dist/types/CreateCommentReport.d.ts +6 -0
  100. package/dist/types/CreateCommentReport.js +2 -0
  101. package/dist/types/CreateCommunity.d.ts +12 -0
  102. package/dist/types/CreateCommunity.js +2 -0
  103. package/dist/types/CreateCustomEmoji.d.ts +8 -0
  104. package/dist/types/CreateCustomEmoji.js +3 -0
  105. package/dist/types/CreatePost.d.ts +12 -0
  106. package/dist/types/CreatePost.js +2 -0
  107. package/dist/types/CreatePostLike.d.ts +6 -0
  108. package/dist/types/CreatePostLike.js +2 -0
  109. package/dist/types/CreatePostReport.d.ts +6 -0
  110. package/dist/types/CreatePostReport.js +2 -0
  111. package/dist/types/CreatePrivateMessage.d.ts +6 -0
  112. package/dist/types/CreatePrivateMessage.js +2 -0
  113. package/dist/types/CreatePrivateMessageReport.d.ts +6 -0
  114. package/dist/types/CreatePrivateMessageReport.js +2 -0
  115. package/dist/types/CreateSite.d.ts +46 -0
  116. package/dist/types/CreateSite.js +2 -0
  117. package/dist/types/CustomEmoji.d.ts +12 -0
  118. package/dist/types/CustomEmoji.js +2 -0
  119. package/dist/types/CustomEmojiId.d.ts +1 -0
  120. package/dist/types/CustomEmojiId.js +3 -0
  121. package/dist/types/CustomEmojiKeyword.d.ts +6 -0
  122. package/dist/types/CustomEmojiKeyword.js +2 -0
  123. package/dist/types/CustomEmojiResponse.d.ts +4 -0
  124. package/dist/types/CustomEmojiResponse.js +2 -0
  125. package/dist/types/CustomEmojiView.d.ts +6 -0
  126. package/dist/types/CustomEmojiView.js +2 -0
  127. package/dist/types/DeleteAccount.d.ts +4 -0
  128. package/dist/types/DeleteAccount.js +3 -0
  129. package/dist/types/DeleteAccountResponse.d.ts +1 -0
  130. package/dist/types/DeleteAccountResponse.js +3 -0
  131. package/dist/types/DeleteComment.d.ts +6 -0
  132. package/dist/types/DeleteComment.js +2 -0
  133. package/dist/types/DeleteCommunity.d.ts +6 -0
  134. package/dist/types/DeleteCommunity.js +2 -0
  135. package/dist/types/DeleteCustomEmoji.d.ts +5 -0
  136. package/dist/types/DeleteCustomEmoji.js +2 -0
  137. package/dist/types/DeleteCustomEmojiResponse.d.ts +5 -0
  138. package/dist/types/DeleteCustomEmojiResponse.js +2 -0
  139. package/dist/types/DeletePost.d.ts +6 -0
  140. package/dist/types/DeletePost.js +2 -0
  141. package/dist/types/DeletePrivateMessage.d.ts +6 -0
  142. package/dist/types/DeletePrivateMessage.js +2 -0
  143. package/dist/types/DistinguishComment.d.ts +6 -0
  144. package/dist/types/DistinguishComment.js +2 -0
  145. package/dist/types/EditComment.d.ts +9 -0
  146. package/dist/types/EditComment.js +2 -0
  147. package/dist/types/EditCommunity.d.ts +13 -0
  148. package/dist/types/EditCommunity.js +2 -0
  149. package/dist/types/EditCustomEmoji.d.ts +9 -0
  150. package/dist/types/EditCustomEmoji.js +2 -0
  151. package/dist/types/EditPost.d.ts +11 -0
  152. package/dist/types/EditPost.js +2 -0
  153. package/dist/types/EditPrivateMessage.d.ts +6 -0
  154. package/dist/types/EditPrivateMessage.js +2 -0
  155. package/dist/types/EditSite.d.ts +47 -0
  156. package/dist/types/EditSite.js +2 -0
  157. package/dist/types/FeaturePost.d.ts +8 -0
  158. package/dist/types/FeaturePost.js +2 -0
  159. package/dist/types/FederatedInstances.d.ts +6 -0
  160. package/dist/types/FederatedInstances.js +2 -0
  161. package/dist/types/FollowCommunity.d.ts +6 -0
  162. package/dist/types/FollowCommunity.js +2 -0
  163. package/dist/types/GetBannedPersons.d.ts +3 -0
  164. package/dist/types/GetBannedPersons.js +3 -0
  165. package/dist/types/GetCaptcha.d.ts +1 -0
  166. package/dist/types/GetCaptcha.js +3 -0
  167. package/dist/types/GetCaptchaResponse.d.ts +4 -0
  168. package/dist/types/GetCaptchaResponse.js +2 -0
  169. package/dist/types/GetComment.d.ts +5 -0
  170. package/dist/types/GetComment.js +2 -0
  171. package/dist/types/GetComments.d.ts +18 -0
  172. package/dist/types/GetComments.js +2 -0
  173. package/dist/types/GetCommentsResponse.d.ts +4 -0
  174. package/dist/types/GetCommentsResponse.js +2 -0
  175. package/dist/types/GetCommunity.d.ts +6 -0
  176. package/dist/types/GetCommunity.js +2 -0
  177. package/dist/types/GetCommunityResponse.d.ts +12 -0
  178. package/dist/types/GetCommunityResponse.js +2 -0
  179. package/dist/types/GetFederatedInstances.d.ts +1 -0
  180. package/dist/types/GetFederatedInstances.js +3 -0
  181. package/dist/types/GetFederatedInstancesResponse.d.ts +4 -0
  182. package/dist/types/GetFederatedInstancesResponse.js +2 -0
  183. package/dist/types/GetModlog.d.ts +12 -0
  184. package/dist/types/GetModlog.js +2 -0
  185. package/dist/types/GetModlogResponse.d.ts +32 -0
  186. package/dist/types/GetModlogResponse.js +2 -0
  187. package/dist/types/GetPersonDetails.d.ts +13 -0
  188. package/dist/types/GetPersonDetails.js +2 -0
  189. package/dist/types/GetPersonDetailsResponse.d.ts +10 -0
  190. package/dist/types/GetPersonDetailsResponse.js +2 -0
  191. package/dist/types/GetPersonMentions.d.ts +8 -0
  192. package/dist/types/GetPersonMentions.js +2 -0
  193. package/dist/types/GetPersonMentionsResponse.d.ts +4 -0
  194. package/dist/types/GetPersonMentionsResponse.js +2 -0
  195. package/dist/types/GetPost.d.ts +5 -0
  196. package/dist/types/GetPost.js +2 -0
  197. package/dist/types/GetPostResponse.d.ts +10 -0
  198. package/dist/types/GetPostResponse.js +2 -0
  199. package/dist/types/GetPosts.d.ts +13 -0
  200. package/dist/types/GetPosts.js +2 -0
  201. package/dist/types/GetPostsResponse.d.ts +4 -0
  202. package/dist/types/GetPostsResponse.js +2 -0
  203. package/dist/types/GetPrivateMessages.d.ts +6 -0
  204. package/dist/types/GetPrivateMessages.js +3 -0
  205. package/dist/types/GetReplies.d.ts +8 -0
  206. package/dist/types/GetReplies.js +2 -0
  207. package/dist/types/GetRepliesResponse.d.ts +4 -0
  208. package/dist/types/GetRepliesResponse.js +2 -0
  209. package/dist/types/GetReportCount.d.ts +5 -0
  210. package/dist/types/GetReportCount.js +2 -0
  211. package/dist/types/GetReportCountResponse.d.ts +7 -0
  212. package/dist/types/GetReportCountResponse.js +2 -0
  213. package/dist/types/GetSite.d.ts +3 -0
  214. package/dist/types/GetSite.js +3 -0
  215. package/dist/types/GetSiteMetadata.d.ts +3 -0
  216. package/dist/types/GetSiteMetadata.js +3 -0
  217. package/dist/types/GetSiteMetadataResponse.d.ts +4 -0
  218. package/dist/types/GetSiteMetadataResponse.js +2 -0
  219. package/dist/types/GetSiteResponse.d.ts +18 -0
  220. package/dist/types/GetSiteResponse.js +2 -0
  221. package/dist/types/GetUnreadCount.d.ts +3 -0
  222. package/dist/types/GetUnreadCount.js +3 -0
  223. package/dist/types/GetUnreadCountResponse.d.ts +5 -0
  224. package/dist/types/GetUnreadCountResponse.js +3 -0
  225. package/dist/types/GetUnreadRegistrationApplicationCount.d.ts +3 -0
  226. package/dist/types/GetUnreadRegistrationApplicationCount.js +3 -0
  227. package/dist/types/GetUnreadRegistrationApplicationCountResponse.d.ts +3 -0
  228. package/dist/types/GetUnreadRegistrationApplicationCountResponse.js +3 -0
  229. package/dist/types/HideCommunity.d.ts +7 -0
  230. package/dist/types/HideCommunity.js +2 -0
  231. package/dist/types/Instance.d.ts +9 -0
  232. package/dist/types/Instance.js +2 -0
  233. package/dist/types/InstanceId.d.ts +1 -0
  234. package/dist/types/InstanceId.js +3 -0
  235. package/dist/types/Language.d.ts +6 -0
  236. package/dist/types/Language.js +2 -0
  237. package/dist/types/LanguageId.d.ts +1 -0
  238. package/dist/types/LanguageId.js +3 -0
  239. package/dist/types/LeaveAdmin.d.ts +3 -0
  240. package/dist/types/LeaveAdmin.js +3 -0
  241. package/dist/types/ListCommentReports.d.ts +8 -0
  242. package/dist/types/ListCommentReports.js +2 -0
  243. package/dist/types/ListCommentReportsResponse.d.ts +4 -0
  244. package/dist/types/ListCommentReportsResponse.js +2 -0
  245. package/dist/types/ListCommunities.d.ts +9 -0
  246. package/dist/types/ListCommunities.js +2 -0
  247. package/dist/types/ListCommunitiesResponse.d.ts +4 -0
  248. package/dist/types/ListCommunitiesResponse.js +2 -0
  249. package/dist/types/ListPostReports.d.ts +8 -0
  250. package/dist/types/ListPostReports.js +2 -0
  251. package/dist/types/ListPostReportsResponse.d.ts +4 -0
  252. package/dist/types/ListPostReportsResponse.js +2 -0
  253. package/dist/types/ListPrivateMessageReports.d.ts +6 -0
  254. package/dist/types/ListPrivateMessageReports.js +3 -0
  255. package/dist/types/ListPrivateMessageReportsResponse.d.ts +4 -0
  256. package/dist/types/ListPrivateMessageReportsResponse.js +2 -0
  257. package/dist/types/ListRegistrationApplications.d.ts +6 -0
  258. package/dist/types/ListRegistrationApplications.js +3 -0
  259. package/dist/types/ListRegistrationApplicationsResponse.d.ts +4 -0
  260. package/dist/types/ListRegistrationApplicationsResponse.js +2 -0
  261. package/dist/types/ListingType.d.ts +1 -0
  262. package/dist/types/ListingType.js +3 -0
  263. package/dist/types/LocalSite.d.ts +31 -0
  264. package/dist/types/LocalSite.js +2 -0
  265. package/dist/types/LocalSiteId.d.ts +1 -0
  266. package/dist/types/LocalSiteId.js +3 -0
  267. package/dist/types/LocalSiteRateLimit.d.ts +19 -0
  268. package/dist/types/LocalSiteRateLimit.js +2 -0
  269. package/dist/types/LocalUser.d.ts +24 -0
  270. package/dist/types/LocalUser.js +2 -0
  271. package/dist/types/LocalUserId.d.ts +1 -0
  272. package/dist/types/LocalUserId.js +3 -0
  273. package/dist/types/LocalUserView.d.ts +8 -0
  274. package/dist/types/LocalUserView.js +2 -0
  275. package/dist/types/LockPost.d.ts +6 -0
  276. package/dist/types/LockPost.js +2 -0
  277. package/dist/types/Login.d.ts +5 -0
  278. package/dist/types/Login.js +3 -0
  279. package/dist/types/LoginResponse.d.ts +5 -0
  280. package/dist/types/LoginResponse.js +3 -0
  281. package/dist/types/MarkAllAsRead.d.ts +3 -0
  282. package/dist/types/MarkAllAsRead.js +3 -0
  283. package/dist/types/MarkCommentReplyAsRead.d.ts +6 -0
  284. package/dist/types/MarkCommentReplyAsRead.js +2 -0
  285. package/dist/types/MarkPersonMentionAsRead.d.ts +6 -0
  286. package/dist/types/MarkPersonMentionAsRead.js +2 -0
  287. package/dist/types/MarkPostAsRead.d.ts +6 -0
  288. package/dist/types/MarkPostAsRead.js +2 -0
  289. package/dist/types/MarkPrivateMessageAsRead.d.ts +6 -0
  290. package/dist/types/MarkPrivateMessageAsRead.js +2 -0
  291. package/dist/types/ModAdd.d.ts +8 -0
  292. package/dist/types/ModAdd.js +2 -0
  293. package/dist/types/ModAddCommunity.d.ts +10 -0
  294. package/dist/types/ModAddCommunity.js +2 -0
  295. package/dist/types/ModAddCommunityView.d.ts +9 -0
  296. package/dist/types/ModAddCommunityView.js +2 -0
  297. package/dist/types/ModAddView.d.ts +7 -0
  298. package/dist/types/ModAddView.js +2 -0
  299. package/dist/types/ModBan.d.ts +10 -0
  300. package/dist/types/ModBan.js +2 -0
  301. package/dist/types/ModBanFromCommunity.d.ts +12 -0
  302. package/dist/types/ModBanFromCommunity.js +2 -0
  303. package/dist/types/ModBanFromCommunityView.d.ts +9 -0
  304. package/dist/types/ModBanFromCommunityView.js +2 -0
  305. package/dist/types/ModBanView.d.ts +7 -0
  306. package/dist/types/ModBanView.js +2 -0
  307. package/dist/types/ModFeaturePost.d.ts +10 -0
  308. package/dist/types/ModFeaturePost.js +2 -0
  309. package/dist/types/ModFeaturePostView.d.ts +10 -0
  310. package/dist/types/ModFeaturePostView.js +2 -0
  311. package/dist/types/ModHideCommunity.d.ts +10 -0
  312. package/dist/types/ModHideCommunity.js +2 -0
  313. package/dist/types/ModHideCommunityView.d.ts +8 -0
  314. package/dist/types/ModHideCommunityView.js +2 -0
  315. package/dist/types/ModJoin.d.ts +4 -0
  316. package/dist/types/ModJoin.js +2 -0
  317. package/dist/types/ModJoinResponse.d.ts +3 -0
  318. package/dist/types/ModJoinResponse.js +3 -0
  319. package/dist/types/ModLockPost.d.ts +9 -0
  320. package/dist/types/ModLockPost.js +2 -0
  321. package/dist/types/ModLockPostView.d.ts +10 -0
  322. package/dist/types/ModLockPostView.js +2 -0
  323. package/dist/types/ModRemoveComment.d.ts +10 -0
  324. package/dist/types/ModRemoveComment.js +2 -0
  325. package/dist/types/ModRemoveCommentView.d.ts +13 -0
  326. package/dist/types/ModRemoveCommentView.js +2 -0
  327. package/dist/types/ModRemoveCommunity.d.ts +11 -0
  328. package/dist/types/ModRemoveCommunity.js +2 -0
  329. package/dist/types/ModRemoveCommunityView.d.ts +8 -0
  330. package/dist/types/ModRemoveCommunityView.js +2 -0
  331. package/dist/types/ModRemovePost.d.ts +10 -0
  332. package/dist/types/ModRemovePost.js +2 -0
  333. package/dist/types/ModRemovePostView.d.ts +10 -0
  334. package/dist/types/ModRemovePostView.js +2 -0
  335. package/dist/types/ModTransferCommunity.d.ts +9 -0
  336. package/dist/types/ModTransferCommunity.js +2 -0
  337. package/dist/types/ModTransferCommunityView.d.ts +9 -0
  338. package/dist/types/ModTransferCommunityView.js +2 -0
  339. package/dist/types/ModlogActionType.d.ts +1 -0
  340. package/dist/types/ModlogActionType.js +3 -0
  341. package/dist/types/ModlogListParams.d.ts +10 -0
  342. package/dist/types/ModlogListParams.js +2 -0
  343. package/dist/types/MyUserInfo.d.ts +14 -0
  344. package/dist/types/MyUserInfo.js +2 -0
  345. package/dist/types/PasswordChangeAfterReset.d.ts +5 -0
  346. package/dist/types/PasswordChangeAfterReset.js +3 -0
  347. package/dist/types/PasswordReset.d.ts +3 -0
  348. package/dist/types/PasswordReset.js +3 -0
  349. package/dist/types/PasswordResetResponse.d.ts +1 -0
  350. package/dist/types/PasswordResetResponse.js +3 -0
  351. package/dist/types/Person.d.ts +21 -0
  352. package/dist/types/Person.js +2 -0
  353. package/dist/types/PersonAggregates.d.ts +9 -0
  354. package/dist/types/PersonAggregates.js +2 -0
  355. package/dist/types/PersonBlockId.d.ts +1 -0
  356. package/dist/types/PersonBlockId.js +3 -0
  357. package/dist/types/PersonBlockView.d.ts +5 -0
  358. package/dist/types/PersonBlockView.js +2 -0
  359. package/dist/types/PersonId.d.ts +1 -0
  360. package/dist/types/PersonId.js +3 -0
  361. package/dist/types/PersonMention.d.ts +10 -0
  362. package/dist/types/PersonMention.js +2 -0
  363. package/dist/types/PersonMentionId.d.ts +1 -0
  364. package/dist/types/PersonMentionId.js +3 -0
  365. package/dist/types/PersonMentionResponse.d.ts +4 -0
  366. package/dist/types/PersonMentionResponse.js +2 -0
  367. package/dist/types/PersonMentionView.d.ts +21 -0
  368. package/dist/types/PersonMentionView.js +2 -0
  369. package/dist/types/PersonView.d.ts +6 -0
  370. package/dist/types/PersonView.js +2 -0
  371. package/dist/types/Post.d.ts +27 -0
  372. package/dist/types/Post.js +2 -0
  373. package/dist/types/PostAggregates.d.ts +14 -0
  374. package/dist/types/PostAggregates.js +2 -0
  375. package/dist/types/PostFeatureType.d.ts +1 -0
  376. package/dist/types/PostFeatureType.js +3 -0
  377. package/dist/types/PostId.d.ts +1 -0
  378. package/dist/types/PostId.js +3 -0
  379. package/dist/types/PostJoin.d.ts +4 -0
  380. package/dist/types/PostJoin.js +2 -0
  381. package/dist/types/PostJoinResponse.d.ts +3 -0
  382. package/dist/types/PostJoinResponse.js +3 -0
  383. package/dist/types/PostOrCommentId.d.ts +7 -0
  384. package/dist/types/PostOrCommentId.js +2 -0
  385. package/dist/types/PostReport.d.ts +16 -0
  386. package/dist/types/PostReport.js +2 -0
  387. package/dist/types/PostReportId.d.ts +1 -0
  388. package/dist/types/PostReportId.js +3 -0
  389. package/dist/types/PostReportResponse.d.ts +4 -0
  390. package/dist/types/PostReportResponse.js +2 -0
  391. package/dist/types/PostReportView.d.ts +16 -0
  392. package/dist/types/PostReportView.js +2 -0
  393. package/dist/types/PostResponse.d.ts +4 -0
  394. package/dist/types/PostResponse.js +2 -0
  395. package/dist/types/PostView.d.ts +18 -0
  396. package/dist/types/PostView.js +2 -0
  397. package/dist/types/PrivateMessage.d.ts +14 -0
  398. package/dist/types/PrivateMessage.js +2 -0
  399. package/dist/types/PrivateMessageId.d.ts +1 -0
  400. package/dist/types/PrivateMessageId.js +3 -0
  401. package/dist/types/PrivateMessageReport.d.ts +14 -0
  402. package/dist/types/PrivateMessageReport.js +2 -0
  403. package/dist/types/PrivateMessageReportId.d.ts +1 -0
  404. package/dist/types/PrivateMessageReportId.js +3 -0
  405. package/dist/types/PrivateMessageReportResponse.d.ts +4 -0
  406. package/dist/types/PrivateMessageReportResponse.js +2 -0
  407. package/dist/types/PrivateMessageReportView.d.ts +10 -0
  408. package/dist/types/PrivateMessageReportView.js +2 -0
  409. package/dist/types/PrivateMessageResponse.d.ts +4 -0
  410. package/dist/types/PrivateMessageResponse.js +2 -0
  411. package/dist/types/PrivateMessageView.d.ts +7 -0
  412. package/dist/types/PrivateMessageView.js +2 -0
  413. package/dist/types/PrivateMessagesResponse.d.ts +4 -0
  414. package/dist/types/PrivateMessagesResponse.js +2 -0
  415. package/dist/types/PurgeComment.d.ts +6 -0
  416. package/dist/types/PurgeComment.js +2 -0
  417. package/dist/types/PurgeCommunity.d.ts +6 -0
  418. package/dist/types/PurgeCommunity.js +2 -0
  419. package/dist/types/PurgeItemResponse.d.ts +3 -0
  420. package/dist/types/PurgeItemResponse.js +3 -0
  421. package/dist/types/PurgePerson.d.ts +6 -0
  422. package/dist/types/PurgePerson.js +2 -0
  423. package/dist/types/PurgePost.d.ts +6 -0
  424. package/dist/types/PurgePost.js +2 -0
  425. package/dist/types/Register.d.ts +11 -0
  426. package/dist/types/Register.js +3 -0
  427. package/dist/types/RegistrationApplication.d.ts +10 -0
  428. package/dist/types/RegistrationApplication.js +2 -0
  429. package/dist/types/RegistrationApplicationResponse.d.ts +4 -0
  430. package/dist/types/RegistrationApplicationResponse.js +2 -0
  431. package/dist/types/RegistrationApplicationView.d.ts +9 -0
  432. package/dist/types/RegistrationApplicationView.js +2 -0
  433. package/dist/types/RegistrationMode.d.ts +1 -0
  434. package/dist/types/RegistrationMode.js +3 -0
  435. package/dist/types/RemoveComment.d.ts +7 -0
  436. package/dist/types/RemoveComment.js +2 -0
  437. package/dist/types/RemoveCommunity.d.ts +8 -0
  438. package/dist/types/RemoveCommunity.js +2 -0
  439. package/dist/types/RemovePost.d.ts +7 -0
  440. package/dist/types/RemovePost.js +2 -0
  441. package/dist/types/ResolveCommentReport.d.ts +6 -0
  442. package/dist/types/ResolveCommentReport.js +2 -0
  443. package/dist/types/ResolveObject.d.ts +4 -0
  444. package/dist/types/ResolveObject.js +3 -0
  445. package/dist/types/ResolveObjectResponse.d.ts +10 -0
  446. package/dist/types/ResolveObjectResponse.js +2 -0
  447. package/dist/types/ResolvePostReport.d.ts +6 -0
  448. package/dist/types/ResolvePostReport.js +2 -0
  449. package/dist/types/ResolvePrivateMessageReport.d.ts +6 -0
  450. package/dist/types/ResolvePrivateMessageReport.js +2 -0
  451. package/dist/types/SaveComment.d.ts +6 -0
  452. package/dist/types/SaveComment.js +2 -0
  453. package/dist/types/SavePost.d.ts +6 -0
  454. package/dist/types/SavePost.js +2 -0
  455. package/dist/types/SaveUserSettings.d.ts +26 -0
  456. package/dist/types/SaveUserSettings.js +2 -0
  457. package/dist/types/Search.d.ts +17 -0
  458. package/dist/types/Search.js +2 -0
  459. package/dist/types/SearchResponse.d.ts +12 -0
  460. package/dist/types/SearchResponse.js +2 -0
  461. package/dist/types/SearchType.d.ts +1 -0
  462. package/dist/types/SearchType.js +3 -0
  463. package/dist/types/Site.d.ts +18 -0
  464. package/dist/types/Site.js +2 -0
  465. package/dist/types/SiteAggregates.d.ts +13 -0
  466. package/dist/types/SiteAggregates.js +2 -0
  467. package/dist/types/SiteId.d.ts +1 -0
  468. package/dist/types/SiteId.js +3 -0
  469. package/dist/types/SiteMetadata.d.ts +6 -0
  470. package/dist/types/SiteMetadata.js +3 -0
  471. package/dist/types/SiteResponse.d.ts +4 -0
  472. package/dist/types/SiteResponse.js +2 -0
  473. package/dist/types/SiteView.d.ts +10 -0
  474. package/dist/types/SiteView.js +2 -0
  475. package/dist/types/SortType.d.ts +1 -0
  476. package/dist/types/SortType.js +3 -0
  477. package/dist/types/SubscribedType.d.ts +1 -0
  478. package/dist/types/SubscribedType.js +3 -0
  479. package/dist/types/Tagline.d.ts +8 -0
  480. package/dist/types/Tagline.js +2 -0
  481. package/dist/types/TransferCommunity.d.ts +7 -0
  482. package/dist/types/TransferCommunity.js +2 -0
  483. package/dist/types/UserJoin.d.ts +3 -0
  484. package/dist/types/UserJoin.js +3 -0
  485. package/dist/types/UserJoinResponse.d.ts +3 -0
  486. package/dist/types/UserJoinResponse.js +3 -0
  487. package/dist/types/VerifyEmail.d.ts +3 -0
  488. package/dist/types/VerifyEmail.js +3 -0
  489. package/dist/types/VerifyEmailResponse.d.ts +1 -0
  490. package/dist/types/VerifyEmailResponse.js +3 -0
  491. package/dist/types/others.d.ts +113 -0
  492. package/dist/types/others.js +96 -0
  493. package/dist/utils.d.ts +0 -0
  494. package/dist/utils.js +0 -0
  495. package/dist/websocket.d.ts +142 -17
  496. package/dist/websocket.js +93 -21
  497. package/package.json +26 -24
  498. package/dist/interfaces/aggregates.d.ts +0 -90
  499. package/dist/interfaces/api/comment.d.ts +0 -115
  500. package/dist/interfaces/api/community.d.ts +0 -120
  501. package/dist/interfaces/api/index.d.ts +0 -6
  502. package/dist/interfaces/api/index.js +0 -18
  503. package/dist/interfaces/api/person.d.ts +0 -271
  504. package/dist/interfaces/api/post.d.ts +0 -130
  505. package/dist/interfaces/api/site.d.ts +0 -168
  506. package/dist/interfaces/api/websocket.d.ts +0 -27
  507. package/dist/interfaces/index.d.ts +0 -5
  508. package/dist/interfaces/index.js +0 -17
  509. package/dist/interfaces/others.d.ts +0 -186
  510. package/dist/interfaces/others.js +0 -151
  511. package/dist/interfaces/source.d.ts +0 -250
  512. package/dist/interfaces/views.d.ts +0 -173
  513. /package/dist/{interfaces/aggregates.js → types/AddAdmin.js} +0 -0
  514. /package/dist/{interfaces/api/comment.js → types/AddAdminResponse.js} +0 -0
  515. /package/dist/{interfaces/api/community.js → types/AddModToCommunity.js} +0 -0
  516. /package/dist/{interfaces/api/person.js → types/AddModToCommunityResponse.js} +0 -0
  517. /package/dist/{interfaces/api/post.js → types/AdminPurgeComment.js} +0 -0
  518. /package/dist/{interfaces/api/site.js → types/AdminPurgeCommentView.js} +0 -0
  519. /package/dist/{interfaces/api/websocket.js → types/AdminPurgeCommunity.js} +0 -0
  520. /package/dist/{interfaces/source.js → types/AdminPurgeCommunityView.js} +0 -0
  521. /package/dist/{interfaces/views.js → types/AdminPurgePerson.js} +0 -0
package/dist/http.d.ts CHANGED
@@ -1,14 +1,134 @@
1
- import { CommentReportResponse, CommentResponse, CreateComment, CreateCommentLike, CreateCommentReport, DeleteComment, EditComment, GetComments, GetCommentsResponse, ListCommentReports, ListCommentReportsResponse, MarkCommentAsRead, RemoveComment, ResolveCommentReport, SaveComment } from "./interfaces/api/comment";
2
- import { AddModToCommunity, AddModToCommunityResponse, BanFromCommunity, BanFromCommunityResponse, BlockCommunity, BlockCommunityResponse, CommunityResponse, CreateCommunity, DeleteCommunity, EditCommunity, FollowCommunity, GetCommunity, GetCommunityResponse, ListCommunities, ListCommunitiesResponse, RemoveCommunity, TransferCommunity } from "./interfaces/api/community";
3
- import { AddAdmin, AddAdminResponse, BannedPersonsResponse, BanPerson, BanPersonResponse, BlockPerson, BlockPersonResponse, ChangePassword, CreatePrivateMessage, DeleteAccount, DeleteAccountResponse, DeletePrivateMessage, EditPrivateMessage, GetBannedPersons, GetCaptchaResponse, GetPersonDetails, GetPersonDetailsResponse, GetPersonMentions, GetPersonMentionsResponse, GetPrivateMessages, GetReplies, GetRepliesResponse, GetReportCount, GetReportCountResponse, GetUnreadCount, GetUnreadCountResponse, Login, LoginResponse, MarkAllAsRead, MarkPersonMentionAsRead, MarkPrivateMessageAsRead, PasswordChange, PasswordReset, PasswordResetResponse, PersonMentionResponse, PrivateMessageResponse, PrivateMessagesResponse, Register, SaveUserSettings, VerifyEmail, VerifyEmailResponse } from "./interfaces/api/person";
4
- import { CreatePost, CreatePostLike, CreatePostReport, DeletePost, EditPost, GetPost, GetPostResponse, GetPosts, GetPostsResponse, GetSiteMetadata, GetSiteMetadataResponse, ListPostReports, ListPostReportsResponse, LockPost, PostReportResponse, PostResponse, RemovePost, ResolvePostReport, SavePost, StickyPost } from "./interfaces/api/post";
5
- import { ApproveRegistrationApplication, CreateSite, EditSite, GetModlog, GetModlogResponse, GetSite, GetSiteConfig, GetSiteConfigResponse, GetSiteResponse, GetUnreadRegistrationApplicationCount, GetUnreadRegistrationApplicationCountResponse, LeaveAdmin, ListRegistrationApplications, ListRegistrationApplicationsResponse, RegistrationApplicationResponse, ResolveObject, ResolveObjectResponse, SaveSiteConfig, Search, SearchResponse, SiteResponse } from "./interfaces/api/site";
1
+ import { AddAdmin } from "./types/AddAdmin";
2
+ import { AddAdminResponse } from "./types/AddAdminResponse";
3
+ import { AddModToCommunity } from "./types/AddModToCommunity";
4
+ import { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
5
+ import { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
6
+ import { BanFromCommunity } from "./types/BanFromCommunity";
7
+ import { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
8
+ import { BannedPersonsResponse } from "./types/BannedPersonsResponse";
9
+ import { BanPerson } from "./types/BanPerson";
10
+ import { BanPersonResponse } from "./types/BanPersonResponse";
11
+ import { BlockCommunity } from "./types/BlockCommunity";
12
+ import { BlockCommunityResponse } from "./types/BlockCommunityResponse";
13
+ import { BlockPerson } from "./types/BlockPerson";
14
+ import { BlockPersonResponse } from "./types/BlockPersonResponse";
15
+ import { ChangePassword } from "./types/ChangePassword";
16
+ import { CommentReportResponse } from "./types/CommentReportResponse";
17
+ import { CommentResponse } from "./types/CommentResponse";
18
+ import { CommunityResponse } from "./types/CommunityResponse";
19
+ import { CreateComment } from "./types/CreateComment";
20
+ import { CreateCommentLike } from "./types/CreateCommentLike";
21
+ import { CreateCommentReport } from "./types/CreateCommentReport";
22
+ import { CreateCommunity } from "./types/CreateCommunity";
23
+ import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
24
+ import { CreatePost } from "./types/CreatePost";
25
+ import { CreatePostLike } from "./types/CreatePostLike";
26
+ import { CreatePostReport } from "./types/CreatePostReport";
27
+ import { CreatePrivateMessage } from "./types/CreatePrivateMessage";
28
+ import { CreatePrivateMessageReport } from "./types/CreatePrivateMessageReport";
29
+ import { CreateSite } from "./types/CreateSite";
30
+ import { DeleteAccount } from "./types/DeleteAccount";
31
+ import { DeleteComment } from "./types/DeleteComment";
32
+ import { DeleteCommunity } from "./types/DeleteCommunity";
33
+ import { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
34
+ import { DeletePost } from "./types/DeletePost";
35
+ import { DeletePrivateMessage } from "./types/DeletePrivateMessage";
36
+ import { EditComment } from "./types/EditComment";
37
+ import { EditCommunity } from "./types/EditCommunity";
38
+ import { EditCustomEmoji } from "./types/EditCustomEmoji";
39
+ import { EditPost } from "./types/EditPost";
40
+ import { EditPrivateMessage } from "./types/EditPrivateMessage";
41
+ import { EditSite } from "./types/EditSite";
42
+ import { FeaturePost } from "./types/FeaturePost";
43
+ import { FollowCommunity } from "./types/FollowCommunity";
44
+ import { GetBannedPersons } from "./types/GetBannedPersons";
45
+ import { GetCaptchaResponse } from "./types/GetCaptchaResponse";
46
+ import { GetComment } from "./types/GetComment";
47
+ import { GetComments } from "./types/GetComments";
48
+ import { GetCommentsResponse } from "./types/GetCommentsResponse";
49
+ import { GetCommunity } from "./types/GetCommunity";
50
+ import { GetCommunityResponse } from "./types/GetCommunityResponse";
51
+ import { GetModlog } from "./types/GetModlog";
52
+ import { GetModlogResponse } from "./types/GetModlogResponse";
53
+ import { GetPersonDetails } from "./types/GetPersonDetails";
54
+ import { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
55
+ import { GetPersonMentions } from "./types/GetPersonMentions";
56
+ import { GetPersonMentionsResponse } from "./types/GetPersonMentionsResponse";
57
+ import { GetPost } from "./types/GetPost";
58
+ import { GetPostResponse } from "./types/GetPostResponse";
59
+ import { GetPosts } from "./types/GetPosts";
60
+ import { GetPostsResponse } from "./types/GetPostsResponse";
61
+ import { GetPrivateMessages } from "./types/GetPrivateMessages";
62
+ import { GetReplies } from "./types/GetReplies";
63
+ import { GetRepliesResponse } from "./types/GetRepliesResponse";
64
+ import { GetReportCount } from "./types/GetReportCount";
65
+ import { GetReportCountResponse } from "./types/GetReportCountResponse";
66
+ import { GetSite } from "./types/GetSite";
67
+ import { GetSiteMetadata } from "./types/GetSiteMetadata";
68
+ import { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse";
69
+ import { GetSiteResponse } from "./types/GetSiteResponse";
70
+ import { GetUnreadCount } from "./types/GetUnreadCount";
71
+ import { GetUnreadCountResponse } from "./types/GetUnreadCountResponse";
72
+ import { GetUnreadRegistrationApplicationCount } from "./types/GetUnreadRegistrationApplicationCount";
73
+ import { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse";
74
+ import { LeaveAdmin } from "./types/LeaveAdmin";
75
+ import { ListCommentReports } from "./types/ListCommentReports";
76
+ import { ListCommentReportsResponse } from "./types/ListCommentReportsResponse";
77
+ import { ListCommunities } from "./types/ListCommunities";
78
+ import { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
79
+ import { ListPostReports } from "./types/ListPostReports";
80
+ import { ListPostReportsResponse } from "./types/ListPostReportsResponse";
81
+ import { ListPrivateMessageReports } from "./types/ListPrivateMessageReports";
82
+ import { ListPrivateMessageReportsResponse } from "./types/ListPrivateMessageReportsResponse";
83
+ import { ListRegistrationApplications } from "./types/ListRegistrationApplications";
84
+ import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
85
+ import { LockPost } from "./types/LockPost";
86
+ import { Login } from "./types/Login";
87
+ import { LoginResponse } from "./types/LoginResponse";
88
+ import { MarkAllAsRead } from "./types/MarkAllAsRead";
89
+ import { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
90
+ import { MarkPersonMentionAsRead } from "./types/MarkPersonMentionAsRead";
91
+ import { MarkPostAsRead } from "./types/MarkPostAsRead";
92
+ import { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
93
+ import { UploadImage, UploadImageResponse } from "./types/others";
94
+ import { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
95
+ import { PasswordReset } from "./types/PasswordReset";
96
+ import { PersonMentionResponse } from "./types/PersonMentionResponse";
97
+ import { PostReportResponse } from "./types/PostReportResponse";
98
+ import { PostResponse } from "./types/PostResponse";
99
+ import { PrivateMessageReportResponse } from "./types/PrivateMessageReportResponse";
100
+ import { PrivateMessageResponse } from "./types/PrivateMessageResponse";
101
+ import { PrivateMessagesResponse } from "./types/PrivateMessagesResponse";
102
+ import { PurgeComment } from "./types/PurgeComment";
103
+ import { PurgeCommunity } from "./types/PurgeCommunity";
104
+ import { PurgeItemResponse } from "./types/PurgeItemResponse";
105
+ import { PurgePerson } from "./types/PurgePerson";
106
+ import { PurgePost } from "./types/PurgePost";
107
+ import { Register } from "./types/Register";
108
+ import { RegistrationApplicationResponse } from "./types/RegistrationApplicationResponse";
109
+ import { RemoveComment } from "./types/RemoveComment";
110
+ import { RemoveCommunity } from "./types/RemoveCommunity";
111
+ import { RemovePost } from "./types/RemovePost";
112
+ import { ResolveCommentReport } from "./types/ResolveCommentReport";
113
+ import { ResolveObject } from "./types/ResolveObject";
114
+ import { ResolveObjectResponse } from "./types/ResolveObjectResponse";
115
+ import { ResolvePostReport } from "./types/ResolvePostReport";
116
+ import { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
117
+ import { SaveComment } from "./types/SaveComment";
118
+ import { SavePost } from "./types/SavePost";
119
+ import { SaveUserSettings } from "./types/SaveUserSettings";
120
+ import { Search } from "./types/Search";
121
+ import { SearchResponse } from "./types/SearchResponse";
122
+ import { SiteResponse } from "./types/SiteResponse";
123
+ import { TransferCommunity } from "./types/TransferCommunity";
124
+ import { VerifyEmail } from "./types/VerifyEmail";
6
125
  /**
7
126
  * Helps build lemmy HTTP requests.
8
127
  */
9
128
  export declare class LemmyHttp {
10
129
  private apiUrl;
11
130
  private headers;
131
+ private pictrsUrl;
12
132
  /**
13
133
  * Generates a new instance of LemmyHttp.
14
134
  * @param baseUrl the base url, without the vX version: https://lemmy.ml -> goes to https://lemmy.ml/api/vX
@@ -19,296 +139,506 @@ export declare class LemmyHttp {
19
139
  });
20
140
  /**
21
141
  * Gets the site, and your user data.
142
+ *
143
+ * `HTTP.GET /site`
22
144
  */
23
145
  getSite(form: GetSite): Promise<GetSiteResponse>;
24
146
  /**
25
147
  * Create your site.
148
+ *
149
+ * `HTTP.POST /site`
26
150
  */
27
151
  createSite(form: CreateSite): Promise<SiteResponse>;
28
152
  /**
29
153
  * Edit your site.
154
+ *
155
+ * `HTTP.PUT /site`
30
156
  */
31
157
  editSite(form: EditSite): Promise<SiteResponse>;
32
158
  /**
33
159
  * Leave the Site admins.
160
+ *
161
+ * `HTTP.POST /user/leave_admin`
34
162
  */
35
163
  leaveAdmin(form: LeaveAdmin): Promise<GetSiteResponse>;
36
- /**
37
- * Get your site configuration.
38
- */
39
- getSiteConfig(form: GetSiteConfig): Promise<GetSiteConfigResponse>;
40
- /**
41
- * Save your site config.
42
- */
43
- saveSiteConfig(form: SaveSiteConfig): Promise<GetSiteConfigResponse>;
44
164
  /**
45
165
  * Get the modlog.
166
+ *
167
+ * `HTTP.GET /modlog`
46
168
  */
47
169
  getModlog(form: GetModlog): Promise<GetModlogResponse>;
48
170
  /**
49
171
  * Search lemmy.
172
+ *
173
+ * `HTTP.GET /search`
50
174
  */
51
175
  search(form: Search): Promise<SearchResponse>;
52
176
  /**
53
177
  * Fetch a non-local / federated object.
178
+ *
179
+ * `HTTP.GET /resolve_object`
54
180
  */
55
181
  resolveObject(form: ResolveObject): Promise<ResolveObjectResponse>;
56
182
  /**
57
183
  * Create a new community.
184
+ *
185
+ * `HTTP.POST /community`
58
186
  */
59
187
  createCommunity(form: CreateCommunity): Promise<CommunityResponse>;
60
188
  /**
61
189
  * Get / fetch a community.
190
+ *
191
+ * `HTTP.GET /community`
62
192
  */
63
193
  getCommunity(form: GetCommunity): Promise<GetCommunityResponse>;
64
194
  /**
65
195
  * Edit a community.
196
+ *
197
+ * `HTTP.PUT /community`
66
198
  */
67
199
  editCommunity(form: EditCommunity): Promise<CommunityResponse>;
68
200
  /**
69
201
  * List communities, with various filters.
202
+ *
203
+ * `HTTP.GET /community/list`
70
204
  */
71
205
  listCommunities(form: ListCommunities): Promise<ListCommunitiesResponse>;
72
206
  /**
73
207
  * Follow / subscribe to a community.
208
+ *
209
+ * `HTTP.POST /community/follow`
74
210
  */
75
211
  followCommunity(form: FollowCommunity): Promise<CommunityResponse>;
76
212
  /**
77
213
  * Block a community.
214
+ *
215
+ * `HTTP.POST /community/block`
78
216
  */
79
217
  blockCommunity(form: BlockCommunity): Promise<BlockCommunityResponse>;
80
218
  /**
81
219
  * Delete a community.
220
+ *
221
+ * `HTTP.POST /community/delete`
82
222
  */
83
223
  deleteCommunity(form: DeleteCommunity): Promise<CommunityResponse>;
84
224
  /**
85
225
  * A moderator remove for a community.
226
+ *
227
+ * `HTTP.POST /community/remove`
86
228
  */
87
229
  removeCommunity(form: RemoveCommunity): Promise<CommunityResponse>;
88
230
  /**
89
231
  * Transfer your community to an existing moderator.
232
+ *
233
+ * `HTTP.POST /community/transfer`
90
234
  */
91
235
  transferCommunity(form: TransferCommunity): Promise<GetCommunityResponse>;
92
236
  /**
93
237
  * Ban a user from a community.
238
+ *
239
+ * `HTTP.POST /community/ban_user`
94
240
  */
95
241
  banFromCommunity(form: BanFromCommunity): Promise<BanFromCommunityResponse>;
96
242
  /**
97
243
  * Add a moderator to your community.
244
+ *
245
+ * `HTTP.POST /community/mod`
98
246
  */
99
247
  addModToCommunity(form: AddModToCommunity): Promise<AddModToCommunityResponse>;
100
248
  /**
101
249
  * Create a post.
250
+ *
251
+ * `HTTP.POST /post`
102
252
  */
103
253
  createPost(form: CreatePost): Promise<PostResponse>;
104
254
  /**
105
255
  * Get / fetch a post.
256
+ *
257
+ * `HTTP.GET /post`
106
258
  */
107
259
  getPost(form: GetPost): Promise<GetPostResponse>;
108
260
  /**
109
261
  * Edit a post.
262
+ *
263
+ * `HTTP.PUT /post`
110
264
  */
111
265
  editPost(form: EditPost): Promise<PostResponse>;
112
266
  /**
113
267
  * Delete a post.
268
+ *
269
+ * `HTTP.POST /post/delete`
114
270
  */
115
271
  deletePost(form: DeletePost): Promise<PostResponse>;
116
272
  /**
117
273
  * A moderator remove for a post.
274
+ *
275
+ * `HTTP.POST /post/remove`
118
276
  */
119
277
  removePost(form: RemovePost): Promise<PostResponse>;
278
+ /**
279
+ * Mark a post as read.
280
+ *
281
+ * `HTTP.POST /post/mark_as_read`
282
+ */
283
+ markPostAsRead(form: MarkPostAsRead): Promise<PostResponse>;
120
284
  /**
121
285
  * A moderator can lock a post ( IE disable new comments ).
286
+ *
287
+ * `HTTP.POST /post/lock`
122
288
  */
123
289
  lockPost(form: LockPost): Promise<PostResponse>;
124
290
  /**
125
- * A moderator can sticky a post ( IE stick it to the top of a community ).
291
+ * A moderator can feature a community post ( IE stick it to the top of a community ).
292
+ *
293
+ * `HTTP.POST /post/feature`
126
294
  */
127
- stickyPost(form: StickyPost): Promise<PostResponse>;
295
+ featurePost(form: FeaturePost): Promise<PostResponse>;
128
296
  /**
129
297
  * Get / fetch posts, with various filters.
298
+ *
299
+ * `HTTP.GET /post/list`
130
300
  */
131
301
  getPosts(form: GetPosts): Promise<GetPostsResponse>;
132
302
  /**
133
303
  * Like / vote on a post.
304
+ *
305
+ * `HTTP.POST /post/like`
134
306
  */
135
307
  likePost(form: CreatePostLike): Promise<PostResponse>;
136
308
  /**
137
309
  * Save a post.
310
+ *
311
+ * `HTTP.PUT /post/save`
138
312
  */
139
313
  savePost(form: SavePost): Promise<PostResponse>;
140
314
  /**
141
315
  * Report a post.
316
+ *
317
+ * `HTTP.POST /post/report`
142
318
  */
143
319
  createPostReport(form: CreatePostReport): Promise<PostReportResponse>;
144
320
  /**
145
321
  * Resolve a post report. Only a mod can do this.
322
+ *
323
+ * `HTTP.PUT /post/report/resolve`
146
324
  */
147
325
  resolvePostReport(form: ResolvePostReport): Promise<PostReportResponse>;
148
326
  /**
149
327
  * List post reports.
328
+ *
329
+ * `HTTP.GET /post/report/list`
150
330
  */
151
331
  listPostReports(form: ListPostReports): Promise<ListPostReportsResponse>;
152
332
  /**
153
333
  * Fetch metadata for any given site.
334
+ *
335
+ * `HTTP.GET /post/site_metadata`
154
336
  */
155
337
  getSiteMetadata(form: GetSiteMetadata): Promise<GetSiteMetadataResponse>;
156
338
  /**
157
339
  * Create a comment.
340
+ *
341
+ * `HTTP.POST /comment`
158
342
  */
159
343
  createComment(form: CreateComment): Promise<CommentResponse>;
160
344
  /**
161
345
  * Edit a comment.
346
+ *
347
+ * `HTTP.PUT /comment`
162
348
  */
163
349
  editComment(form: EditComment): Promise<CommentResponse>;
164
350
  /**
165
351
  * Delete a comment.
352
+ *
353
+ * `HTTP.POST /comment/delete`
166
354
  */
167
355
  deleteComment(form: DeleteComment): Promise<CommentResponse>;
168
356
  /**
169
357
  * A moderator remove for a comment.
358
+ *
359
+ * `HTTP.POST /comment/remove`
170
360
  */
171
361
  removeComment(form: RemoveComment): Promise<CommentResponse>;
172
362
  /**
173
363
  * Mark a comment as read.
364
+ *
365
+ * `HTTP.POST /comment/mark_as_read`
174
366
  */
175
- markCommentAsRead(form: MarkCommentAsRead): Promise<CommentResponse>;
367
+ markCommentReplyAsRead(form: MarkCommentReplyAsRead): Promise<CommentResponse>;
176
368
  /**
177
369
  * Like / vote on a comment.
370
+ *
371
+ * `HTTP.POST /comment/like`
178
372
  */
179
373
  likeComment(form: CreateCommentLike): Promise<CommentResponse>;
180
374
  /**
181
375
  * Save a comment.
376
+ *
377
+ * `HTTP.PUT /comment/save`
182
378
  */
183
379
  saveComment(form: SaveComment): Promise<CommentResponse>;
184
380
  /**
185
381
  * Get / fetch comments.
382
+ *
383
+ * `HTTP.GET /comment/list`
186
384
  */
187
385
  getComments(form: GetComments): Promise<GetCommentsResponse>;
386
+ /**
387
+ * Get / fetch comment.
388
+ *
389
+ * `HTTP.GET /comment`
390
+ */
391
+ getComment(form: GetComment): Promise<CommentResponse>;
188
392
  /**
189
393
  * Report a comment.
394
+ *
395
+ * `HTTP.POST /comment/report`
190
396
  */
191
397
  createCommentReport(form: CreateCommentReport): Promise<CommentReportResponse>;
192
398
  /**
193
399
  * Resolve a comment report. Only a mod can do this.
400
+ *
401
+ * `HTTP.PUT /comment/report/resolve`
194
402
  */
195
403
  resolveCommentReport(form: ResolveCommentReport): Promise<CommentReportResponse>;
196
404
  /**
197
405
  * List comment reports.
406
+ *
407
+ * `HTTP.GET /comment/report/list`
198
408
  */
199
409
  listCommentReports(form: ListCommentReports): Promise<ListCommentReportsResponse>;
200
410
  /**
201
411
  * Get / fetch private messages.
412
+ *
413
+ * `HTTP.GET /private_message/list`
202
414
  */
203
415
  getPrivateMessages(form: GetPrivateMessages): Promise<PrivateMessagesResponse>;
204
416
  /**
205
417
  * Create a private message.
418
+ *
419
+ * `HTTP.POST /private_message`
206
420
  */
207
421
  createPrivateMessage(form: CreatePrivateMessage): Promise<PrivateMessageResponse>;
208
422
  /**
209
423
  * Edit a private message.
424
+ *
425
+ * `HTTP.PUT /private_message`
210
426
  */
211
427
  editPrivateMessage(form: EditPrivateMessage): Promise<PrivateMessageResponse>;
212
428
  /**
213
429
  * Delete a private message.
430
+ *
431
+ * `HTTP.POST /private_message/delete`
214
432
  */
215
433
  deletePrivateMessage(form: DeletePrivateMessage): Promise<PrivateMessageResponse>;
216
434
  /**
217
435
  * Mark a private message as read.
436
+ *
437
+ * `HTTP.POST /private_message/mark_as_read`
218
438
  */
219
439
  markPrivateMessageAsRead(form: MarkPrivateMessageAsRead): Promise<PrivateMessageResponse>;
440
+ /**
441
+ * Create a report for a private message.
442
+ *
443
+ * `HTTP.POST /private_message/report`
444
+ */
445
+ createPrivateMessageReport(form: CreatePrivateMessageReport): Promise<PrivateMessageReportResponse>;
446
+ /**
447
+ * Resolve a report for a private message.
448
+ *
449
+ * `HTTP.PUT /private_message/report/resolve`
450
+ */
451
+ resolvePrivateMessageReport(form: ResolvePrivateMessageReport): Promise<PrivateMessageReportResponse>;
452
+ /**
453
+ * List private message reports.
454
+ *
455
+ * `HTTP.GET /private_message/report/list`
456
+ */
457
+ listPrivateMessageReports(form: ListPrivateMessageReports): Promise<ListPrivateMessageReportsResponse>;
220
458
  /**
221
459
  * Register a new user.
460
+ *
461
+ * `HTTP.POST /user/register`
222
462
  */
223
463
  register(form: Register): Promise<LoginResponse>;
224
464
  /**
225
465
  * Log into lemmy.
466
+ *
467
+ * `HTTP.POST /user/login`
226
468
  */
227
469
  login(form: Login): Promise<LoginResponse>;
228
470
  /**
229
471
  * Get the details for a person.
472
+ *
473
+ * `HTTP.GET /user`
230
474
  */
231
475
  getPersonDetails(form: GetPersonDetails): Promise<GetPersonDetailsResponse>;
232
476
  /**
233
477
  * Get mentions for your user.
478
+ *
479
+ * `HTTP.GET /user/mention`
234
480
  */
235
481
  getPersonMentions(form: GetPersonMentions): Promise<GetPersonMentionsResponse>;
236
482
  /**
237
483
  * Mark a person mention as read.
484
+ *
485
+ * `HTTP.POST /user/mention/mark_as_read`
238
486
  */
239
487
  markPersonMentionAsRead(form: MarkPersonMentionAsRead): Promise<PersonMentionResponse>;
240
488
  /**
241
489
  * Get comment replies.
490
+ *
491
+ * `HTTP.GET /user/replies`
242
492
  */
243
493
  getReplies(form: GetReplies): Promise<GetRepliesResponse>;
244
494
  /**
245
495
  * Ban a person from your site.
496
+ *
497
+ * `HTTP.POST /user/ban`
246
498
  */
247
499
  banPerson(form: BanPerson): Promise<BanPersonResponse>;
248
500
  /**
249
501
  * Get a list of banned users
502
+ *
503
+ * `HTTP.GET /user/banned`
250
504
  */
251
505
  getBannedPersons(form: GetBannedPersons): Promise<BannedPersonsResponse>;
252
506
  /**
253
507
  * Block a person.
508
+ *
509
+ * `HTTP.POST /user/block`
254
510
  */
255
511
  blockPerson(form: BlockPerson): Promise<BlockPersonResponse>;
256
512
  /**
257
513
  * Fetch a Captcha.
514
+ *
515
+ * `HTTP.GET /user/get_captcha`
258
516
  */
259
517
  getCaptcha(): Promise<GetCaptchaResponse>;
260
518
  /**
261
519
  * Delete your account.
520
+ *
521
+ * `HTTP.POST /user/delete_account`
262
522
  */
263
- deleteAccount(form: DeleteAccount): Promise<DeleteAccountResponse>;
523
+ deleteAccount(form: DeleteAccount): Promise<null>;
264
524
  /**
265
525
  * Reset your password.
526
+ *
527
+ * `HTTP.POST /user/password_reset`
266
528
  */
267
- passwordReset(form: PasswordReset): Promise<PasswordResetResponse>;
529
+ passwordReset(form: PasswordReset): Promise<null>;
268
530
  /**
269
531
  * Change your password from an email / token based reset.
532
+ *
533
+ * `HTTP.POST /user/password_change`
270
534
  */
271
- passwordChange(form: PasswordChange): Promise<LoginResponse>;
535
+ passwordChangeAfterReset(form: PasswordChangeAfterReset): Promise<LoginResponse>;
272
536
  /**
273
537
  * Mark all replies as read.
538
+ *
539
+ * `HTTP.POST /user/mark_all_as_read`
274
540
  */
275
541
  markAllAsRead(form: MarkAllAsRead): Promise<GetRepliesResponse>;
276
542
  /**
277
543
  * Save your user settings.
544
+ *
545
+ * `HTTP.PUT /user/save_user_settings`
278
546
  */
279
547
  saveUserSettings(form: SaveUserSettings): Promise<LoginResponse>;
280
548
  /**
281
549
  * Change your user password.
550
+ *
551
+ * `HTTP.PUT /user/change_password`
282
552
  */
283
553
  changePassword(form: ChangePassword): Promise<LoginResponse>;
284
554
  /**
285
555
  * Get counts for your reports
556
+ *
557
+ * `HTTP.GET /user/report_count`
286
558
  */
287
559
  getReportCount(form: GetReportCount): Promise<GetReportCountResponse>;
288
560
  /**
289
561
  * Get your unread counts
562
+ *
563
+ * `HTTP.GET /user/unread_count`
290
564
  */
291
565
  getUnreadCount(form: GetUnreadCount): Promise<GetUnreadCountResponse>;
292
566
  /**
293
567
  * Verify your email
568
+ *
569
+ * `HTTP.POST /user/verify_email`
294
570
  */
295
- verifyEmail(form: VerifyEmail): Promise<VerifyEmailResponse>;
571
+ verifyEmail(form: VerifyEmail): Promise<null>;
296
572
  /**
297
573
  * Add an admin to your site.
574
+ *
575
+ * `HTTP.POST /admin/add`
298
576
  */
299
577
  addAdmin(form: AddAdmin): Promise<AddAdminResponse>;
300
578
  /**
301
579
  * Get the unread registration applications count.
580
+ *
581
+ * `HTTP.GET /admin/registration_application/count`
302
582
  */
303
583
  getUnreadRegistrationApplicationCount(form: GetUnreadRegistrationApplicationCount): Promise<GetUnreadRegistrationApplicationCountResponse>;
304
584
  /**
305
- * List the unread registration applications.
585
+ * List the registration applications.
586
+ *
587
+ * `HTTP.GET /admin/registration_application/list`
306
588
  */
307
589
  listRegistrationApplications(form: ListRegistrationApplications): Promise<ListRegistrationApplicationsResponse>;
308
590
  /**
309
591
  * Approve a registration application
592
+ *
593
+ * `HTTP.PUT /admin/registration_application/approve`
310
594
  */
311
595
  approveRegistrationApplication(form: ApproveRegistrationApplication): Promise<RegistrationApplicationResponse>;
596
+ /**
597
+ * Purge / Delete a person from the database.
598
+ *
599
+ * `HTTP.POST /admin/purge/person`
600
+ */
601
+ purgePerson(form: PurgePerson): Promise<PurgeItemResponse>;
602
+ /**
603
+ * Purge / Delete a community from the database.
604
+ *
605
+ * `HTTP.POST /admin/purge/community`
606
+ */
607
+ purgeCommunity(form: PurgeCommunity): Promise<PurgeItemResponse>;
608
+ /**
609
+ * Purge / Delete a post from the database.
610
+ *
611
+ * `HTTP.POST /admin/purge/post`
612
+ */
613
+ purgePost(form: PurgePost): Promise<PurgeItemResponse>;
614
+ /**
615
+ * Purge / Delete a comment from the database.
616
+ *
617
+ * `HTTP.POST /admin/purge/comment`
618
+ */
619
+ purgeComment(form: PurgeComment): Promise<PurgeItemResponse>;
620
+ /**
621
+ * Create a new custom emoji
622
+ *
623
+ * `HTTP.POST /custom_emoji`
624
+ */
625
+ createCustomEmoji(form: CreateCustomEmoji): Promise<unknown>;
626
+ /**
627
+ * Edit an existing custom emoji
628
+ *
629
+ * `HTTP.PUT /custom_emoji`
630
+ */
631
+ editCustomEmoji(form: EditCustomEmoji): Promise<unknown>;
632
+ /**
633
+ * Delete a custom emoji
634
+ *
635
+ * `HTTP.Post /custom_emoji/delete`
636
+ */
637
+ deleteCustomEmoji(form: DeleteCustomEmoji): Promise<unknown>;
638
+ /**
639
+ * Upload an image to the server.
640
+ */
641
+ uploadImage({ image, auth, }: UploadImage): Promise<UploadImageResponse>;
312
642
  private buildFullUrl;
313
643
  private wrapper;
314
644
  }