lemmy-js-client 0.20.0-private-community.7 → 0.20.0-reports-combined.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (330) hide show
  1. package/dist/http.d.ts +138 -139
  2. package/dist/http.js +254 -268
  3. package/dist/index.d.ts +19 -8
  4. package/dist/types/AddAdmin.d.ts +5 -2
  5. package/dist/types/AddAdminResponse.d.ts +5 -2
  6. package/dist/types/AddModToCommunity.d.ts +5 -2
  7. package/dist/types/AddModToCommunityResponse.d.ts +5 -2
  8. package/dist/types/AdminAllowInstance.d.ts +10 -0
  9. package/dist/types/AdminAllowInstanceParams.d.ts +5 -0
  10. package/dist/types/AdminAllowInstanceView.d.ts +11 -0
  11. package/dist/types/AdminBlockInstance.d.ts +11 -0
  12. package/dist/types/AdminBlockInstanceParams.d.ts +6 -0
  13. package/dist/types/AdminBlockInstanceView.d.ts +11 -0
  14. package/dist/types/AdminPurgeComment.d.ts +5 -2
  15. package/dist/types/AdminPurgeCommentView.d.ts +5 -2
  16. package/dist/types/AdminPurgeCommunity.d.ts +5 -2
  17. package/dist/types/AdminPurgeCommunityView.d.ts +5 -2
  18. package/dist/types/AdminPurgePerson.d.ts +5 -2
  19. package/dist/types/AdminPurgePersonView.d.ts +5 -2
  20. package/dist/types/AdminPurgePost.d.ts +5 -2
  21. package/dist/types/AdminPurgePostView.d.ts +5 -2
  22. package/dist/types/ApproveCommunityPendingFollower.d.ts +2 -2
  23. package/dist/types/ApproveRegistrationApplication.d.ts +5 -2
  24. package/dist/types/AuthenticateWithOauth.d.ts +14 -3
  25. package/dist/types/AuthenticateWithOauth.js +0 -1
  26. package/dist/types/BanFromCommunity.d.ts +14 -2
  27. package/dist/types/BanFromCommunityResponse.d.ts +5 -2
  28. package/dist/types/BanPerson.d.ts +14 -2
  29. package/dist/types/BanPersonResponse.d.ts +5 -2
  30. package/dist/types/BannedPersonsResponse.d.ts +5 -2
  31. package/dist/types/BlockCommunity.d.ts +5 -2
  32. package/dist/types/BlockCommunityResponse.d.ts +5 -2
  33. package/dist/types/BlockPerson.d.ts +5 -2
  34. package/dist/types/BlockPersonResponse.d.ts +5 -2
  35. package/dist/types/CaptchaResponse.d.ts +14 -2
  36. package/dist/types/ChangePassword.d.ts +9 -5
  37. package/dist/types/ChangePassword.js +0 -1
  38. package/dist/types/Comment.d.ts +26 -3
  39. package/dist/types/CommentAggregates.d.ts +10 -2
  40. package/dist/types/CommentId.d.ts +3 -0
  41. package/dist/types/CommentReply.d.ts +5 -2
  42. package/dist/types/CommentReplyId.d.ts +3 -0
  43. package/dist/types/CommentReplyResponse.d.ts +5 -2
  44. package/dist/types/CommentReplyView.d.ts +5 -2
  45. package/dist/types/CommentReport.d.ts +5 -2
  46. package/dist/types/CommentReportId.d.ts +3 -0
  47. package/dist/types/CommentReportResponse.d.ts +5 -2
  48. package/dist/types/CommentReportView.d.ts +5 -2
  49. package/dist/types/CommentResponse.d.ts +5 -2
  50. package/dist/types/CommentSortType.d.ts +3 -0
  51. package/dist/types/CommentView.d.ts +5 -2
  52. package/dist/types/Community.d.ts +47 -6
  53. package/dist/types/CommunityAggregates.d.ts +17 -2
  54. package/dist/types/CommunityFollowerView.d.ts +5 -2
  55. package/dist/types/CommunityId.d.ts +3 -0
  56. package/dist/types/CommunityModeratorView.d.ts +5 -2
  57. package/dist/types/CommunityResponse.d.ts +5 -2
  58. package/dist/types/CommunitySortType.d.ts +4 -0
  59. package/dist/types/CommunitySortType.js +3 -0
  60. package/dist/types/CommunityView.d.ts +5 -2
  61. package/dist/types/CommunityVisibility.d.ts +3 -0
  62. package/dist/types/CreateComment.d.ts +5 -2
  63. package/dist/types/CreateCommentLike.d.ts +8 -2
  64. package/dist/types/CreateCommentReport.d.ts +5 -2
  65. package/dist/types/CreateCommunity.d.ts +30 -2
  66. package/dist/types/CreateCustomEmoji.d.ts +5 -2
  67. package/dist/types/CreateOAuthProvider.d.ts +6 -2
  68. package/dist/types/CreatePost.d.ts +20 -2
  69. package/dist/types/CreatePostLike.d.ts +8 -2
  70. package/dist/types/CreatePostReport.d.ts +5 -2
  71. package/dist/types/CreatePrivateMessage.d.ts +5 -2
  72. package/dist/types/CreatePrivateMessageReport.d.ts +5 -2
  73. package/dist/types/CreateSite.d.ts +5 -4
  74. package/dist/types/CreateTagline.d.ts +5 -2
  75. package/dist/types/CustomEmoji.d.ts +7 -3
  76. package/dist/types/CustomEmojiId.d.ts +3 -0
  77. package/dist/types/CustomEmojiKeyword.d.ts +5 -2
  78. package/dist/types/CustomEmojiResponse.d.ts +5 -2
  79. package/dist/types/CustomEmojiView.d.ts +5 -2
  80. package/dist/types/DbUrl.d.ts +1 -0
  81. package/dist/types/DbUrl.js +3 -0
  82. package/dist/types/DeleteAccount.d.ts +7 -3
  83. package/dist/types/DeleteAccount.js +0 -1
  84. package/dist/types/DeleteComment.d.ts +5 -2
  85. package/dist/types/DeleteCommunity.d.ts +5 -2
  86. package/dist/types/DeleteCustomEmoji.d.ts +5 -2
  87. package/dist/types/DeleteOAuthProvider.d.ts +5 -2
  88. package/dist/types/DeletePost.d.ts +5 -2
  89. package/dist/types/DeletePrivateMessage.d.ts +5 -2
  90. package/dist/types/DeleteTagline.d.ts +5 -2
  91. package/dist/types/DistinguishComment.d.ts +5 -2
  92. package/dist/types/EditComment.d.ts +5 -2
  93. package/dist/types/EditCommunity.d.ts +27 -2
  94. package/dist/types/EditCustomEmoji.d.ts +5 -2
  95. package/dist/types/EditOAuthProvider.d.ts +6 -2
  96. package/dist/types/EditPost.d.ts +17 -2
  97. package/dist/types/EditPrivateMessage.d.ts +5 -2
  98. package/dist/types/EditSite.d.ts +120 -4
  99. package/dist/types/FeaturePost.d.ts +5 -2
  100. package/dist/types/FederatedInstances.d.ts +5 -2
  101. package/dist/types/FederationBlockList.d.ts +7 -0
  102. package/dist/types/FederationError.d.ts +10 -0
  103. package/dist/types/FederationError.js +3 -0
  104. package/dist/types/FederationMode.d.ts +3 -0
  105. package/dist/types/FollowCommunity.d.ts +5 -2
  106. package/dist/types/GenerateTotpSecretResponse.d.ts +4 -3
  107. package/dist/types/GenerateTotpSecretResponse.js +0 -1
  108. package/dist/types/GetCaptchaResponse.d.ts +8 -2
  109. package/dist/types/GetComment.d.ts +5 -2
  110. package/dist/types/GetComments.d.ts +5 -2
  111. package/dist/types/GetCommentsResponse.d.ts +5 -2
  112. package/dist/types/GetCommunity.d.ts +8 -2
  113. package/dist/types/GetCommunityPendingFollowsCount.d.ts +2 -2
  114. package/dist/types/GetCommunityPendingFollowsCountResponse.d.ts +2 -2
  115. package/dist/types/GetCommunityResponse.d.ts +5 -2
  116. package/dist/types/GetFederatedInstancesResponse.d.ts +8 -2
  117. package/dist/types/GetModlog.d.ts +5 -2
  118. package/dist/types/GetModlogResponse.d.ts +9 -2
  119. package/dist/types/GetPersonDetails.d.ts +10 -2
  120. package/dist/types/GetPersonDetailsResponse.d.ts +5 -2
  121. package/dist/types/GetPersonMentions.d.ts +5 -2
  122. package/dist/types/GetPersonMentionsResponse.d.ts +5 -2
  123. package/dist/types/GetPost.d.ts +5 -2
  124. package/dist/types/GetPostResponse.d.ts +8 -2
  125. package/dist/types/GetPosts.d.ts +23 -2
  126. package/dist/types/GetPostsResponse.d.ts +8 -2
  127. package/dist/types/GetPrivateMessages.d.ts +5 -2
  128. package/dist/types/GetRandomCommunity.d.ts +5 -2
  129. package/dist/types/GetRegistrationApplication.d.ts +5 -2
  130. package/dist/types/GetReplies.d.ts +5 -2
  131. package/dist/types/GetRepliesResponse.d.ts +5 -2
  132. package/dist/types/GetReportCount.d.ts +5 -2
  133. package/dist/types/GetReportCountResponse.d.ts +6 -7
  134. package/dist/types/GetReportCountResponse.js +1 -0
  135. package/dist/types/GetSiteMetadata.d.ts +5 -2
  136. package/dist/types/GetSiteMetadataResponse.d.ts +5 -2
  137. package/dist/types/GetSiteResponse.d.ts +17 -2
  138. package/dist/types/GetUnreadCountResponse.d.ts +5 -2
  139. package/dist/types/GetUnreadRegistrationApplicationCountResponse.d.ts +5 -2
  140. package/dist/types/HideCommunity.d.ts +5 -2
  141. package/dist/types/HidePost.d.ts +6 -3
  142. package/dist/types/ImageDetails.d.ts +4 -3
  143. package/dist/types/ImageDetails.js +0 -1
  144. package/dist/types/Instance.d.ts +5 -2
  145. package/dist/types/InstanceId.d.ts +3 -0
  146. package/dist/types/InstanceWithFederationState.d.ts +7 -3
  147. package/dist/types/Language.d.ts +5 -2
  148. package/dist/types/LanguageId.d.ts +3 -0
  149. package/dist/types/LemmyErrorType.d.ts +21 -69
  150. package/dist/types/LemmyErrorType.js +0 -1
  151. package/dist/types/LinkMetadata.d.ts +9 -5
  152. package/dist/types/LinkMetadata.js +0 -1
  153. package/dist/types/ListCommentLikes.d.ts +5 -2
  154. package/dist/types/ListCommentLikesResponse.d.ts +5 -2
  155. package/dist/types/ListCommunities.d.ts +7 -4
  156. package/dist/types/ListCommunitiesResponse.d.ts +5 -2
  157. package/dist/types/ListCommunityPendingFollows.d.ts +9 -6
  158. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +2 -2
  159. package/dist/types/ListCustomEmojis.d.ts +5 -2
  160. package/dist/types/ListCustomEmojisResponse.d.ts +5 -2
  161. package/dist/types/ListLoginsResponse.d.ts +2 -2
  162. package/dist/types/ListMedia.d.ts +5 -2
  163. package/dist/types/ListMediaResponse.d.ts +2 -2
  164. package/dist/types/ListPostLikes.d.ts +5 -2
  165. package/dist/types/ListPostLikesResponse.d.ts +5 -2
  166. package/dist/types/ListRegistrationApplications.d.ts +8 -2
  167. package/dist/types/ListRegistrationApplicationsResponse.d.ts +5 -2
  168. package/dist/types/ListReports.d.ts +17 -0
  169. package/dist/types/ListReportsResponse.d.ts +7 -0
  170. package/dist/types/ListReportsResponse.js +2 -0
  171. package/dist/types/ListTaglines.d.ts +5 -2
  172. package/dist/types/ListTaglinesResponse.d.ts +5 -2
  173. package/dist/types/ListingType.d.ts +3 -0
  174. package/dist/types/LocalImage.d.ts +2 -2
  175. package/dist/types/LocalImageView.d.ts +5 -2
  176. package/dist/types/LocalSite.d.ts +78 -2
  177. package/dist/types/LocalSiteId.d.ts +3 -0
  178. package/dist/types/LocalSiteRateLimit.d.ts +5 -2
  179. package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
  180. package/dist/types/LocalUser.d.ts +58 -3
  181. package/dist/types/LocalUserId.d.ts +3 -0
  182. package/dist/types/LocalUserView.d.ts +5 -2
  183. package/dist/types/LocalUserVoteDisplayMode.d.ts +5 -2
  184. package/dist/types/LockPost.d.ts +5 -2
  185. package/dist/types/Login.d.ts +11 -4
  186. package/dist/types/Login.js +0 -1
  187. package/dist/types/LoginResponse.d.ts +17 -3
  188. package/dist/types/LoginResponse.js +0 -1
  189. package/dist/types/LoginToken.d.ts +12 -2
  190. package/dist/types/MarkCommentReplyAsRead.d.ts +5 -2
  191. package/dist/types/MarkManyPostsAsRead.d.ts +7 -0
  192. package/dist/types/MarkManyPostsAsRead.js +2 -0
  193. package/dist/types/MarkPersonMentionAsRead.d.ts +5 -2
  194. package/dist/types/MarkPostAsRead.d.ts +6 -3
  195. package/dist/types/MarkPrivateMessageAsRead.d.ts +5 -2
  196. package/dist/types/ModAdd.d.ts +5 -2
  197. package/dist/types/ModAddCommunity.d.ts +5 -2
  198. package/dist/types/ModAddCommunityView.d.ts +5 -2
  199. package/dist/types/ModAddView.d.ts +5 -2
  200. package/dist/types/ModBan.d.ts +5 -2
  201. package/dist/types/ModBanFromCommunity.d.ts +5 -2
  202. package/dist/types/ModBanFromCommunityView.d.ts +5 -2
  203. package/dist/types/ModBanView.d.ts +5 -2
  204. package/dist/types/ModFeaturePost.d.ts +5 -2
  205. package/dist/types/ModFeaturePostView.d.ts +5 -2
  206. package/dist/types/ModHideCommunity.d.ts +5 -2
  207. package/dist/types/ModHideCommunityView.d.ts +5 -2
  208. package/dist/types/ModLockPost.d.ts +5 -2
  209. package/dist/types/ModLockPostView.d.ts +5 -2
  210. package/dist/types/ModRemoveComment.d.ts +5 -2
  211. package/dist/types/ModRemoveCommentView.d.ts +5 -2
  212. package/dist/types/ModRemoveCommunity.d.ts +5 -2
  213. package/dist/types/ModRemoveCommunityView.d.ts +5 -2
  214. package/dist/types/ModRemovePost.d.ts +5 -2
  215. package/dist/types/ModRemovePostView.d.ts +5 -2
  216. package/dist/types/ModTransferCommunity.d.ts +5 -2
  217. package/dist/types/ModTransferCommunityView.d.ts +5 -2
  218. package/dist/types/ModlogActionType.d.ts +4 -1
  219. package/dist/types/ModlogListParams.d.ts +5 -2
  220. package/dist/types/MyUserInfo.d.ts +5 -2
  221. package/dist/types/OAuthAccount.d.ts +5 -2
  222. package/dist/types/OAuthProvider.d.ts +48 -2
  223. package/dist/types/OAuthProviderId.d.ts +3 -0
  224. package/dist/types/OpenGraphData.d.ts +8 -4
  225. package/dist/types/OpenGraphData.js +0 -1
  226. package/dist/types/PaginationCursor.d.ts +6 -0
  227. package/dist/types/PasswordChangeAfterReset.d.ts +9 -5
  228. package/dist/types/PasswordChangeAfterReset.js +0 -1
  229. package/dist/types/PasswordReset.d.ts +7 -3
  230. package/dist/types/PasswordReset.js +0 -1
  231. package/dist/types/PendingFollow.d.ts +2 -2
  232. package/dist/types/Person.d.ts +42 -5
  233. package/dist/types/PersonAggregates.d.ts +5 -2
  234. package/dist/types/PersonId.d.ts +3 -0
  235. package/dist/types/PersonMention.d.ts +5 -2
  236. package/dist/types/PersonMentionId.d.ts +3 -0
  237. package/dist/types/PersonMentionResponse.d.ts +5 -2
  238. package/dist/types/PersonMentionView.d.ts +5 -2
  239. package/dist/types/PersonView.d.ts +5 -2
  240. package/dist/types/Post.d.ts +58 -6
  241. package/dist/types/PostAggregates.d.ts +10 -2
  242. package/dist/types/PostFeatureType.d.ts +3 -0
  243. package/dist/types/PostId.d.ts +3 -0
  244. package/dist/types/PostListingMode.d.ts +3 -0
  245. package/dist/types/PostReport.d.ts +16 -3
  246. package/dist/types/PostReportId.d.ts +3 -0
  247. package/dist/types/PostReportResponse.d.ts +5 -2
  248. package/dist/types/PostReportView.d.ts +5 -2
  249. package/dist/types/PostResponse.d.ts +2 -2
  250. package/dist/types/PostSortType.d.ts +3 -0
  251. package/dist/types/PostView.d.ts +5 -2
  252. package/dist/types/PrivateMessage.d.ts +7 -3
  253. package/dist/types/PrivateMessageId.d.ts +3 -0
  254. package/dist/types/PrivateMessageReport.d.ts +8 -2
  255. package/dist/types/PrivateMessageReportId.d.ts +3 -0
  256. package/dist/types/PrivateMessageReportResponse.d.ts +5 -2
  257. package/dist/types/PrivateMessageReportView.d.ts +5 -2
  258. package/dist/types/PrivateMessageResponse.d.ts +5 -2
  259. package/dist/types/PrivateMessageView.d.ts +5 -2
  260. package/dist/types/PrivateMessagesResponse.d.ts +5 -2
  261. package/dist/types/PurgeComment.d.ts +5 -2
  262. package/dist/types/PurgeCommunity.d.ts +5 -2
  263. package/dist/types/PurgePerson.d.ts +5 -2
  264. package/dist/types/PurgePost.d.ts +5 -2
  265. package/dist/types/ReadableFederationState.d.ts +15 -3
  266. package/dist/types/Register.d.ts +24 -5
  267. package/dist/types/Register.js +0 -1
  268. package/dist/types/RegistrationApplication.d.ts +5 -2
  269. package/dist/types/RegistrationApplicationId.d.ts +3 -0
  270. package/dist/types/RegistrationApplicationResponse.d.ts +5 -2
  271. package/dist/types/RegistrationApplicationView.d.ts +5 -2
  272. package/dist/types/RegistrationMode.d.ts +3 -0
  273. package/dist/types/RemoveComment.d.ts +5 -2
  274. package/dist/types/RemoveCommunity.d.ts +5 -2
  275. package/dist/types/RemovePost.d.ts +5 -2
  276. package/dist/types/ReportCombined.d.ts +14 -0
  277. package/dist/types/ReportCombined.js +2 -0
  278. package/dist/types/ReportCombinedId.d.ts +4 -0
  279. package/dist/types/ReportCombinedId.js +3 -0
  280. package/dist/types/ReportCombinedPaginationCursor.d.ts +4 -0
  281. package/dist/types/ReportCombinedPaginationCursor.js +3 -0
  282. package/dist/types/ReportCombinedView.d.ts +10 -0
  283. package/dist/types/ReportCombinedView.js +2 -0
  284. package/dist/types/ResolveCommentReport.d.ts +5 -2
  285. package/dist/types/ResolveObject.d.ts +8 -2
  286. package/dist/types/ResolveObjectResponse.d.ts +5 -2
  287. package/dist/types/ResolvePostReport.d.ts +5 -2
  288. package/dist/types/ResolvePrivateMessageReport.d.ts +5 -2
  289. package/dist/types/SaveComment.d.ts +5 -2
  290. package/dist/types/SavePost.d.ts +5 -2
  291. package/dist/types/SaveUserSettings.d.ts +94 -3
  292. package/dist/types/Search.d.ts +5 -2
  293. package/dist/types/SearchResponse.d.ts +5 -2
  294. package/dist/types/SearchType.d.ts +3 -0
  295. package/dist/types/SensitiveString.d.ts +1 -0
  296. package/dist/types/SensitiveString.js +3 -0
  297. package/dist/types/Site.d.ts +35 -6
  298. package/dist/types/SiteAggregates.d.ts +17 -2
  299. package/dist/types/SiteId.d.ts +3 -0
  300. package/dist/types/SiteResponse.d.ts +8 -2
  301. package/dist/types/SiteView.d.ts +5 -2
  302. package/dist/types/SubscribedType.d.ts +3 -0
  303. package/dist/types/SuccessResponse.d.ts +5 -2
  304. package/dist/types/Tagline.d.ts +5 -2
  305. package/dist/types/TaglineId.d.ts +3 -0
  306. package/dist/types/TaglineResponse.d.ts +2 -2
  307. package/dist/types/TransferCommunity.d.ts +5 -2
  308. package/dist/types/UpdateTagline.d.ts +5 -2
  309. package/dist/types/UpdateTotp.d.ts +2 -2
  310. package/dist/types/UpdateTotpResponse.d.ts +2 -2
  311. package/dist/types/{BlockInstance.d.ts → UserBlockInstanceParams.d.ts} +5 -2
  312. package/dist/types/UserBlockInstanceParams.js +2 -0
  313. package/dist/types/VerifyEmail.d.ts +5 -2
  314. package/dist/types/VoteView.d.ts +5 -2
  315. package/package.json +3 -3
  316. package/dist/types/BlockInstanceResponse.d.ts +0 -3
  317. package/dist/types/ListCommentReports.d.ts +0 -9
  318. package/dist/types/ListCommentReportsResponse.d.ts +0 -4
  319. package/dist/types/ListPostReports.d.ts +0 -9
  320. package/dist/types/ListPostReportsResponse.d.ts +0 -4
  321. package/dist/types/ListPrivateMessageReports.d.ts +0 -5
  322. package/dist/types/ListPrivateMessageReportsResponse.d.ts +0 -4
  323. /package/dist/types/{BlockInstance.js → AdminAllowInstance.js} +0 -0
  324. /package/dist/types/{BlockInstanceResponse.js → AdminAllowInstanceParams.js} +0 -0
  325. /package/dist/types/{ListCommentReports.js → AdminAllowInstanceView.js} +0 -0
  326. /package/dist/types/{ListCommentReportsResponse.js → AdminBlockInstance.js} +0 -0
  327. /package/dist/types/{ListPrivateMessageReports.js → AdminBlockInstanceParams.js} +0 -0
  328. /package/dist/types/{ListPostReports.js → AdminBlockInstanceView.js} +0 -0
  329. /package/dist/types/{ListPostReportsResponse.js → FederationBlockList.js} +0 -0
  330. /package/dist/types/{ListPrivateMessageReportsResponse.js → ListReports.js} +0 -0
package/dist/http.d.ts CHANGED
@@ -75,14 +75,8 @@ import { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse";
75
75
  import { GetSiteResponse } from "./types/GetSiteResponse";
76
76
  import { GetUnreadCountResponse } from "./types/GetUnreadCountResponse";
77
77
  import { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse";
78
- import { ListCommentReports } from "./types/ListCommentReports";
79
- import { ListCommentReportsResponse } from "./types/ListCommentReportsResponse";
80
78
  import { ListCommunities } from "./types/ListCommunities";
81
79
  import { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
82
- import { ListPostReports } from "./types/ListPostReports";
83
- import { ListPostReportsResponse } from "./types/ListPostReportsResponse";
84
- import { ListPrivateMessageReports } from "./types/ListPrivateMessageReports";
85
- import { ListPrivateMessageReportsResponse } from "./types/ListPrivateMessageReportsResponse";
86
80
  import { ListRegistrationApplications } from "./types/ListRegistrationApplications";
87
81
  import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
88
82
  import { LockPost } from "./types/LockPost";
@@ -124,8 +118,6 @@ import { TransferCommunity } from "./types/TransferCommunity";
124
118
  import { VerifyEmail } from "./types/VerifyEmail";
125
119
  import { DeleteImage, UploadImage, UploadImageResponse } from "./other_types";
126
120
  import { HideCommunity } from "./types/HideCommunity";
127
- import { BlockInstance } from "./types/BlockInstance";
128
- import { BlockInstanceResponse } from "./types/BlockInstanceResponse";
129
121
  import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
130
122
  import { UpdateTotp } from "./types/UpdateTotp";
131
123
  import { UpdateTotpResponse } from "./types/UpdateTotpResponse";
@@ -154,6 +146,12 @@ import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPen
154
146
  import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
155
147
  import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
156
148
  import { CommunityId } from "./types/CommunityId";
149
+ import { ListReports } from "./types/ListReports";
150
+ import { ListReportsResponse } from "./types/ListReportsResponse";
151
+ import { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
152
+ import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
153
+ import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
154
+ type RequestOptions = Pick<RequestInit, "signal">;
157
155
  /**
158
156
  * Helps build lemmy HTTP requests.
159
157
  */
@@ -175,25 +173,25 @@ export declare class LemmyHttp {
175
173
  *
176
174
  * `HTTP.GET /site`
177
175
  */
178
- getSite(): Promise<GetSiteResponse>;
176
+ getSite(options?: RequestOptions): Promise<GetSiteResponse>;
179
177
  /**
180
178
  * Create your site.
181
179
  *
182
180
  * `HTTP.POST /site`
183
181
  */
184
- createSite(form: CreateSite): Promise<SiteResponse>;
182
+ createSite(form: CreateSite, options?: RequestOptions): Promise<SiteResponse>;
185
183
  /**
186
184
  * Edit your site.
187
185
  *
188
186
  * `HTTP.PUT /site`
189
187
  */
190
- editSite(form: EditSite): Promise<SiteResponse>;
188
+ editSite(form: EditSite, options?: RequestOptions): Promise<SiteResponse>;
191
189
  /**
192
190
  * Leave the Site admins.
193
191
  *
194
192
  * `HTTP.POST /user/leave_admin`
195
193
  */
196
- leaveAdmin(): Promise<GetSiteResponse>;
194
+ leaveAdmin(options?: RequestOptions): Promise<GetSiteResponse>;
197
195
  /**
198
196
  * Generate a TOTP / two-factor secret.
199
197
  *
@@ -201,44 +199,44 @@ export declare class LemmyHttp {
201
199
  *
202
200
  * `HTTP.POST /user/totp/generate`
203
201
  */
204
- generateTotpSecret(): Promise<GenerateTotpSecretResponse>;
202
+ generateTotpSecret(options?: RequestOptions): Promise<GenerateTotpSecretResponse>;
205
203
  /**
206
204
  * Export a backup of your user settings, including your saved content,
207
205
  * followed communities, and blocks.
208
206
  *
209
207
  * `HTTP.GET /user/export_settings`
210
208
  */
211
- exportSettings(): Promise<string>;
209
+ exportSettings(options?: RequestOptions): Promise<string>;
212
210
  /**
213
211
  * Import a backup of your user settings.
214
212
  *
215
213
  * `HTTP.POST /user/import_settings`
216
214
  */
217
- importSettings(form: any): Promise<SuccessResponse>;
215
+ importSettings(form: any, options?: RequestOptions): Promise<SuccessResponse>;
218
216
  /**
219
217
  * List login tokens for your user
220
218
  *
221
219
  * `HTTP.GET /user/list_logins`
222
220
  */
223
- listLogins(): Promise<LoginToken[]>;
221
+ listLogins(options?: RequestOptions): Promise<LoginToken[]>;
224
222
  /**
225
223
  * Returns an error message if your auth token is invalid
226
224
  *
227
225
  * `HTTP.GET /user/validate_auth`
228
226
  */
229
- validateAuth(): Promise<SuccessResponse>;
227
+ validateAuth(options?: RequestOptions): Promise<SuccessResponse>;
230
228
  /**
231
229
  * List all the media for your user
232
230
  *
233
231
  * `HTTP.GET /account/list_media`
234
232
  */
235
- listMedia(form?: ListMedia): Promise<ListMediaResponse>;
233
+ listMedia(form?: ListMedia, options?: RequestOptions): Promise<ListMediaResponse>;
236
234
  /**
237
235
  * List all the media known to your instance.
238
236
  *
239
237
  * `HTTP.GET /admin/list_all_media`
240
238
  */
241
- listAllMedia(form?: ListMedia): Promise<ListMediaResponse>;
239
+ listAllMedia(form?: ListMedia, options?: RequestOptions): Promise<ListMediaResponse>;
242
240
  /**
243
241
  * Enable / Disable TOTP / two-factor authentication.
244
242
  *
@@ -248,606 +246,606 @@ export declare class LemmyHttp {
248
246
  *
249
247
  * `HTTP.POST /user/totp/update`
250
248
  */
251
- updateTotp(form: UpdateTotp): Promise<UpdateTotpResponse>;
249
+ updateTotp(form: UpdateTotp, options?: RequestOptions): Promise<UpdateTotpResponse>;
252
250
  /**
253
251
  * Get the modlog.
254
252
  *
255
253
  * `HTTP.GET /modlog`
256
254
  */
257
- getModlog(form?: GetModlog): Promise<GetModlogResponse>;
255
+ getModlog(form?: GetModlog, options?: RequestOptions): Promise<GetModlogResponse>;
258
256
  /**
259
257
  * Search lemmy.
260
258
  *
261
259
  * `HTTP.GET /search`
262
260
  */
263
- search(form: Search): Promise<SearchResponse>;
261
+ search(form: Search, options?: RequestOptions): Promise<SearchResponse>;
264
262
  /**
265
263
  * Fetch a non-local / federated object.
266
264
  *
267
265
  * `HTTP.GET /resolve_object`
268
266
  */
269
- resolveObject(form: ResolveObject): Promise<ResolveObjectResponse>;
267
+ resolveObject(form: ResolveObject, options?: RequestOptions): Promise<ResolveObjectResponse>;
270
268
  /**
271
269
  * Create a new community.
272
270
  *
273
271
  * `HTTP.POST /community`
274
272
  */
275
- createCommunity(form: CreateCommunity): Promise<CommunityResponse>;
273
+ createCommunity(form: CreateCommunity, options?: RequestOptions): Promise<CommunityResponse>;
276
274
  /**
277
275
  * Get / fetch a community.
278
276
  *
279
277
  * `HTTP.GET /community`
280
278
  */
281
- getCommunity(form?: GetCommunity): Promise<GetCommunityResponse>;
279
+ getCommunity(form?: GetCommunity, options?: RequestOptions): Promise<GetCommunityResponse>;
282
280
  /**
283
281
  * Edit a community.
284
282
  *
285
283
  * `HTTP.PUT /community`
286
284
  */
287
- editCommunity(form: EditCommunity): Promise<CommunityResponse>;
285
+ editCommunity(form: EditCommunity, options?: RequestOptions): Promise<CommunityResponse>;
288
286
  /**
289
287
  * List communities, with various filters.
290
288
  *
291
289
  * `HTTP.GET /community/list`
292
290
  */
293
- listCommunities(form?: ListCommunities): Promise<ListCommunitiesResponse>;
291
+ listCommunities(form?: ListCommunities, options?: RequestOptions): Promise<ListCommunitiesResponse>;
294
292
  /**
295
293
  * Follow / subscribe to a community.
296
294
  *
297
295
  * `HTTP.POST /community/follow`
298
296
  */
299
- followCommunity(form: FollowCommunity): Promise<CommunityResponse>;
300
- getCommunityPendingFollowsCount(community_id: CommunityId): Promise<GetCommunityPendingFollowsCountResponse>;
301
- listCommunityPendingFollows(form: ListCommunityPendingFollows): Promise<ListCommunityPendingFollowsResponse>;
302
- approveCommunityPendingFollow(form: ApproveCommunityPendingFollower): Promise<SuccessResponse>;
297
+ followCommunity(form: FollowCommunity, options?: RequestOptions): Promise<CommunityResponse>;
298
+ getCommunityPendingFollowsCount(community_id: CommunityId, options?: RequestOptions): Promise<GetCommunityPendingFollowsCountResponse>;
299
+ listCommunityPendingFollows(form: ListCommunityPendingFollows, options?: RequestOptions): Promise<ListCommunityPendingFollowsResponse>;
300
+ approveCommunityPendingFollow(form: ApproveCommunityPendingFollower, options?: RequestOptions): Promise<SuccessResponse>;
303
301
  /**
304
302
  * Block a community.
305
303
  *
306
304
  * `HTTP.POST /community/block`
307
305
  */
308
- blockCommunity(form: BlockCommunity): Promise<BlockCommunityResponse>;
306
+ blockCommunity(form: BlockCommunity, options?: RequestOptions): Promise<BlockCommunityResponse>;
309
307
  /**
310
308
  * Delete a community.
311
309
  *
312
310
  * `HTTP.POST /community/delete`
313
311
  */
314
- deleteCommunity(form: DeleteCommunity): Promise<CommunityResponse>;
312
+ deleteCommunity(form: DeleteCommunity, options?: RequestOptions): Promise<CommunityResponse>;
315
313
  /**
316
314
  * Hide a community from public / "All" view. Admins only.
317
315
  *
318
316
  * `HTTP.PUT /community/hide`
319
317
  */
320
- hideCommunity(form: HideCommunity): Promise<SuccessResponse>;
318
+ hideCommunity(form: HideCommunity, options?: RequestOptions): Promise<SuccessResponse>;
321
319
  /**
322
320
  * A moderator remove for a community.
323
321
  *
324
322
  * `HTTP.POST /community/remove`
325
323
  */
326
- removeCommunity(form: RemoveCommunity): Promise<CommunityResponse>;
324
+ removeCommunity(form: RemoveCommunity, options?: RequestOptions): Promise<CommunityResponse>;
327
325
  /**
328
326
  * Transfer your community to an existing moderator.
329
327
  *
330
328
  * `HTTP.POST /community/transfer`
331
329
  */
332
- transferCommunity(form: TransferCommunity): Promise<GetCommunityResponse>;
330
+ transferCommunity(form: TransferCommunity, options?: RequestOptions): Promise<GetCommunityResponse>;
333
331
  /**
334
332
  * Ban a user from a community.
335
333
  *
336
334
  * `HTTP.POST /community/ban_user`
337
335
  */
338
- banFromCommunity(form: BanFromCommunity): Promise<BanFromCommunityResponse>;
336
+ banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<BanFromCommunityResponse>;
339
337
  /**
340
338
  * Add a moderator to your community.
341
339
  *
342
340
  * `HTTP.POST /community/mod`
343
341
  */
344
- addModToCommunity(form: AddModToCommunity): Promise<AddModToCommunityResponse>;
342
+ addModToCommunity(form: AddModToCommunity, options?: RequestOptions): Promise<AddModToCommunityResponse>;
345
343
  /**
346
344
  * Get a random community.
347
345
  *
348
346
  * `HTTP.GET /community/random`
349
347
  */
350
- getRandomCommunity(form: GetRandomCommunity): Promise<CommunityResponse>;
348
+ getRandomCommunity(form: GetRandomCommunity, options?: RequestOptions): Promise<CommunityResponse>;
351
349
  /**
352
350
  * Create a post.
353
351
  *
354
352
  * `HTTP.POST /post`
355
353
  */
356
- createPost(form: CreatePost): Promise<PostResponse>;
354
+ createPost(form: CreatePost, options?: RequestOptions): Promise<PostResponse>;
357
355
  /**
358
356
  * Get / fetch a post.
359
357
  *
360
358
  * `HTTP.GET /post`
361
359
  */
362
- getPost(form?: GetPost): Promise<GetPostResponse>;
360
+ getPost(form?: GetPost, options?: RequestOptions): Promise<GetPostResponse>;
363
361
  /**
364
362
  * Edit a post.
365
363
  *
366
364
  * `HTTP.PUT /post`
367
365
  */
368
- editPost(form: EditPost): Promise<PostResponse>;
366
+ editPost(form: EditPost, options?: RequestOptions): Promise<PostResponse>;
369
367
  /**
370
368
  * Delete a post.
371
369
  *
372
370
  * `HTTP.POST /post/delete`
373
371
  */
374
- deletePost(form: DeletePost): Promise<PostResponse>;
372
+ deletePost(form: DeletePost, options?: RequestOptions): Promise<PostResponse>;
375
373
  /**
376
374
  * A moderator remove for a post.
377
375
  *
378
376
  * `HTTP.POST /post/remove`
379
377
  */
380
- removePost(form: RemovePost): Promise<PostResponse>;
378
+ removePost(form: RemovePost, options?: RequestOptions): Promise<PostResponse>;
381
379
  /**
382
380
  * Mark a post as read.
383
381
  *
384
382
  * `HTTP.POST /post/mark_as_read`
385
383
  */
386
- markPostAsRead(form: MarkPostAsRead): Promise<SuccessResponse>;
384
+ markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<SuccessResponse>;
387
385
  /**
388
386
  * Hide a post from list views.
389
387
  *
390
388
  * `HTTP.POST /post/hide`
391
389
  */
392
- hidePost(form: HidePost): Promise<SuccessResponse>;
390
+ hidePost(form: HidePost, options?: RequestOptions): Promise<SuccessResponse>;
393
391
  /**
394
392
  * A moderator can lock a post ( IE disable new comments ).
395
393
  *
396
394
  * `HTTP.POST /post/lock`
397
395
  */
398
- lockPost(form: LockPost): Promise<PostResponse>;
396
+ lockPost(form: LockPost, options?: RequestOptions): Promise<PostResponse>;
399
397
  /**
400
398
  * A moderator can feature a community post ( IE stick it to the top of a community ).
401
399
  *
402
400
  * `HTTP.POST /post/feature`
403
401
  */
404
- featurePost(form: FeaturePost): Promise<PostResponse>;
402
+ featurePost(form: FeaturePost, options?: RequestOptions): Promise<PostResponse>;
405
403
  /**
406
404
  * Get / fetch posts, with various filters.
407
405
  *
408
406
  * `HTTP.GET /post/list`
409
407
  */
410
- getPosts(form?: GetPosts): Promise<GetPostsResponse>;
408
+ getPosts(form?: GetPosts, options?: RequestOptions): Promise<GetPostsResponse>;
411
409
  /**
412
410
  * Like / vote on a post.
413
411
  *
414
412
  * `HTTP.POST /post/like`
415
413
  */
416
- likePost(form: CreatePostLike): Promise<PostResponse>;
414
+ likePost(form: CreatePostLike, options?: RequestOptions): Promise<PostResponse>;
417
415
  /**
418
416
  * List a post's likes. Admin-only.
419
417
  *
420
418
  * `HTTP.GET /post/like/list`
421
419
  */
422
- listPostLikes(form: ListPostLikes): Promise<ListPostLikesResponse>;
420
+ listPostLikes(form: ListPostLikes, options?: RequestOptions): Promise<ListPostLikesResponse>;
423
421
  /**
424
422
  * Save a post.
425
423
  *
426
424
  * `HTTP.PUT /post/save`
427
425
  */
428
- savePost(form: SavePost): Promise<PostResponse>;
426
+ savePost(form: SavePost, options?: RequestOptions): Promise<PostResponse>;
429
427
  /**
430
428
  * Report a post.
431
429
  *
432
430
  * `HTTP.POST /post/report`
433
431
  */
434
- createPostReport(form: CreatePostReport): Promise<PostReportResponse>;
432
+ createPostReport(form: CreatePostReport, options?: RequestOptions): Promise<PostReportResponse>;
435
433
  /**
436
434
  * Resolve a post report. Only a mod can do this.
437
435
  *
438
436
  * `HTTP.PUT /post/report/resolve`
439
437
  */
440
- resolvePostReport(form: ResolvePostReport): Promise<PostReportResponse>;
441
- /**
442
- * List post reports.
443
- *
444
- * `HTTP.GET /post/report/list`
445
- */
446
- listPostReports(form: ListPostReports): Promise<ListPostReportsResponse>;
438
+ resolvePostReport(form: ResolvePostReport, options?: RequestOptions): Promise<PostReportResponse>;
447
439
  /**
448
440
  * Fetch metadata for any given site.
449
441
  *
450
442
  * `HTTP.GET /post/site_metadata`
451
443
  */
452
- getSiteMetadata(form: GetSiteMetadata): Promise<GetSiteMetadataResponse>;
444
+ getSiteMetadata(form: GetSiteMetadata, options?: RequestOptions): Promise<GetSiteMetadataResponse>;
453
445
  /**
454
446
  * Create a comment.
455
447
  *
456
448
  * `HTTP.POST /comment`
457
449
  */
458
- createComment(form: CreateComment): Promise<CommentResponse>;
450
+ createComment(form: CreateComment, options?: RequestOptions): Promise<CommentResponse>;
459
451
  /**
460
452
  * Edit a comment.
461
453
  *
462
454
  * `HTTP.PUT /comment`
463
455
  */
464
- editComment(form: EditComment): Promise<CommentResponse>;
456
+ editComment(form: EditComment, options?: RequestOptions): Promise<CommentResponse>;
465
457
  /**
466
458
  * Delete a comment.
467
459
  *
468
460
  * `HTTP.POST /comment/delete`
469
461
  */
470
- deleteComment(form: DeleteComment): Promise<CommentResponse>;
462
+ deleteComment(form: DeleteComment, options?: RequestOptions): Promise<CommentResponse>;
471
463
  /**
472
464
  * A moderator remove for a comment.
473
465
  *
474
466
  * `HTTP.POST /comment/remove`
475
467
  */
476
- removeComment(form: RemoveComment): Promise<CommentResponse>;
468
+ removeComment(form: RemoveComment, options?: RequestOptions): Promise<CommentResponse>;
477
469
  /**
478
470
  * Mark a comment as read.
479
471
  *
480
472
  * `HTTP.POST /comment/mark_as_read`
481
473
  */
482
- markCommentReplyAsRead(form: MarkCommentReplyAsRead): Promise<CommentReplyResponse>;
474
+ markCommentReplyAsRead(form: MarkCommentReplyAsRead, options?: RequestOptions): Promise<CommentReplyResponse>;
483
475
  /**
484
476
  * Like / vote on a comment.
485
477
  *
486
478
  * `HTTP.POST /comment/like`
487
479
  */
488
- likeComment(form: CreateCommentLike): Promise<CommentResponse>;
480
+ likeComment(form: CreateCommentLike, options?: RequestOptions): Promise<CommentResponse>;
489
481
  /**
490
482
  * List a comment's likes. Admin-only.
491
483
  *
492
484
  * `HTTP.GET /comment/like/list`
493
485
  */
494
- listCommentLikes(form: ListCommentLikes): Promise<ListCommentLikesResponse>;
486
+ listCommentLikes(form: ListCommentLikes, options?: RequestOptions): Promise<ListCommentLikesResponse>;
495
487
  /**
496
488
  * Save a comment.
497
489
  *
498
490
  * `HTTP.PUT /comment/save`
499
491
  */
500
- saveComment(form: SaveComment): Promise<CommentResponse>;
492
+ saveComment(form: SaveComment, options?: RequestOptions): Promise<CommentResponse>;
501
493
  /**
502
494
  * Distinguishes a comment (speak as moderator)
503
495
  *
504
496
  * `HTTP.POST /comment/distinguish`
505
497
  */
506
- distinguishComment(form: DistinguishComment): Promise<CommentResponse>;
498
+ distinguishComment(form: DistinguishComment, options?: RequestOptions): Promise<CommentResponse>;
507
499
  /**
508
500
  * Get / fetch comments.
509
501
  *
510
502
  * `HTTP.GET /comment/list`
511
503
  */
512
- getComments(form?: GetComments): Promise<GetCommentsResponse>;
504
+ getComments(form?: GetComments, options?: RequestOptions): Promise<GetCommentsResponse>;
513
505
  /**
514
506
  * Get / fetch comment.
515
507
  *
516
508
  * `HTTP.GET /comment`
517
509
  */
518
- getComment(form: GetComment): Promise<CommentResponse>;
510
+ getComment(form: GetComment, options?: RequestOptions): Promise<CommentResponse>;
519
511
  /**
520
512
  * Report a comment.
521
513
  *
522
514
  * `HTTP.POST /comment/report`
523
515
  */
524
- createCommentReport(form: CreateCommentReport): Promise<CommentReportResponse>;
516
+ createCommentReport(form: CreateCommentReport, options?: RequestOptions): Promise<CommentReportResponse>;
525
517
  /**
526
518
  * Resolve a comment report. Only a mod can do this.
527
519
  *
528
520
  * `HTTP.PUT /comment/report/resolve`
529
521
  */
530
- resolveCommentReport(form: ResolveCommentReport): Promise<CommentReportResponse>;
531
- /**
532
- * List comment reports.
533
- *
534
- * `HTTP.GET /comment/report/list`
535
- */
536
- listCommentReports(form: ListCommentReports): Promise<ListCommentReportsResponse>;
522
+ resolveCommentReport(form: ResolveCommentReport, options?: RequestOptions): Promise<CommentReportResponse>;
537
523
  /**
538
524
  * Get / fetch private messages.
539
525
  *
540
526
  * `HTTP.GET /private_message/list`
541
527
  */
542
- getPrivateMessages(form: GetPrivateMessages): Promise<PrivateMessagesResponse>;
528
+ getPrivateMessages(form: GetPrivateMessages, options?: RequestOptions): Promise<PrivateMessagesResponse>;
543
529
  /**
544
530
  * Create a private message.
545
531
  *
546
532
  * `HTTP.POST /private_message`
547
533
  */
548
- createPrivateMessage(form: CreatePrivateMessage): Promise<PrivateMessageResponse>;
534
+ createPrivateMessage(form: CreatePrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse>;
549
535
  /**
550
536
  * Edit a private message.
551
537
  *
552
538
  * `HTTP.PUT /private_message`
553
539
  */
554
- editPrivateMessage(form: EditPrivateMessage): Promise<PrivateMessageResponse>;
540
+ editPrivateMessage(form: EditPrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse>;
555
541
  /**
556
542
  * Delete a private message.
557
543
  *
558
544
  * `HTTP.POST /private_message/delete`
559
545
  */
560
- deletePrivateMessage(form: DeletePrivateMessage): Promise<PrivateMessageResponse>;
546
+ deletePrivateMessage(form: DeletePrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse>;
561
547
  /**
562
548
  * Mark a private message as read.
563
549
  *
564
550
  * `HTTP.POST /private_message/mark_as_read`
565
551
  */
566
- markPrivateMessageAsRead(form: MarkPrivateMessageAsRead): Promise<PrivateMessageResponse>;
552
+ markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<PrivateMessageResponse>;
567
553
  /**
568
554
  * Create a report for a private message.
569
555
  *
570
556
  * `HTTP.POST /private_message/report`
571
557
  */
572
- createPrivateMessageReport(form: CreatePrivateMessageReport): Promise<PrivateMessageReportResponse>;
558
+ createPrivateMessageReport(form: CreatePrivateMessageReport, options?: RequestOptions): Promise<PrivateMessageReportResponse>;
573
559
  /**
574
560
  * Resolve a report for a private message.
575
561
  *
576
562
  * `HTTP.PUT /private_message/report/resolve`
577
563
  */
578
- resolvePrivateMessageReport(form: ResolvePrivateMessageReport): Promise<PrivateMessageReportResponse>;
579
- /**
580
- * List private message reports.
581
- *
582
- * `HTTP.GET /private_message/report/list`
583
- */
584
- listPrivateMessageReports(form: ListPrivateMessageReports): Promise<ListPrivateMessageReportsResponse>;
564
+ resolvePrivateMessageReport(form: ResolvePrivateMessageReport, options?: RequestOptions): Promise<PrivateMessageReportResponse>;
585
565
  /**
586
566
  * Register a new user.
587
567
  *
588
568
  * `HTTP.POST /user/register`
589
569
  */
590
- register(form: Register): Promise<LoginResponse>;
570
+ register(form: Register, options?: RequestOptions): Promise<LoginResponse>;
591
571
  /**
592
572
  * Log into lemmy.
593
573
  *
594
574
  * `HTTP.POST /user/login`
595
575
  */
596
- login(form: Login): Promise<LoginResponse>;
576
+ login(form: Login, options?: RequestOptions): Promise<LoginResponse>;
597
577
  /**
598
578
  * Invalidate the currently used auth token.
599
579
  *
600
580
  * `HTTP.POST /user/logout`
601
581
  */
602
- logout(): Promise<SuccessResponse>;
582
+ logout(options?: RequestOptions): Promise<SuccessResponse>;
603
583
  /**
604
584
  * Get the details for a person.
605
585
  *
606
586
  * `HTTP.GET /user`
607
587
  */
608
- getPersonDetails(form?: GetPersonDetails): Promise<GetPersonDetailsResponse>;
588
+ getPersonDetails(form?: GetPersonDetails, options?: RequestOptions): Promise<GetPersonDetailsResponse>;
609
589
  /**
610
590
  * Get mentions for your user.
611
591
  *
612
592
  * `HTTP.GET /user/mention`
613
593
  */
614
- getPersonMentions(form: GetPersonMentions): Promise<GetPersonMentionsResponse>;
594
+ getPersonMentions(form: GetPersonMentions, options?: RequestOptions): Promise<GetPersonMentionsResponse>;
615
595
  /**
616
596
  * Mark a person mention as read.
617
597
  *
618
598
  * `HTTP.POST /user/mention/mark_as_read`
619
599
  */
620
- markPersonMentionAsRead(form: MarkPersonMentionAsRead): Promise<PersonMentionResponse>;
600
+ markPersonMentionAsRead(form: MarkPersonMentionAsRead, options?: RequestOptions): Promise<PersonMentionResponse>;
621
601
  /**
622
602
  * Get comment replies.
623
603
  *
624
604
  * `HTTP.GET /user/replies`
625
605
  */
626
- getReplies(form: GetReplies): Promise<GetRepliesResponse>;
606
+ getReplies(form: GetReplies, options?: RequestOptions): Promise<GetRepliesResponse>;
627
607
  /**
628
608
  * Ban a person from your site.
629
609
  *
630
610
  * `HTTP.POST /user/ban`
631
611
  */
632
- banPerson(form: BanPerson): Promise<BanPersonResponse>;
612
+ banPerson(form: BanPerson, options?: RequestOptions): Promise<BanPersonResponse>;
633
613
  /**
634
614
  * Get a list of banned users
635
615
  *
636
616
  * `HTTP.GET /user/banned`
637
617
  */
638
- getBannedPersons(): Promise<BannedPersonsResponse>;
618
+ getBannedPersons(options?: RequestOptions): Promise<BannedPersonsResponse>;
639
619
  /**
640
620
  * Block a person.
641
621
  *
642
622
  * `HTTP.POST /user/block`
643
623
  */
644
- blockPerson(form: BlockPerson): Promise<BlockPersonResponse>;
624
+ blockPerson(form: BlockPerson, options?: RequestOptions): Promise<BlockPersonResponse>;
645
625
  /**
646
626
  * Fetch a Captcha.
647
627
  *
648
628
  * `HTTP.GET /user/get_captcha`
649
629
  */
650
- getCaptcha(): Promise<GetCaptchaResponse>;
630
+ getCaptcha(options?: RequestOptions): Promise<GetCaptchaResponse>;
651
631
  /**
652
632
  * Delete your account.
653
633
  *
654
634
  * `HTTP.POST /user/delete_account`
655
635
  */
656
- deleteAccount(form: DeleteAccount): Promise<SuccessResponse>;
636
+ deleteAccount(form: DeleteAccount, options?: RequestOptions): Promise<SuccessResponse>;
657
637
  /**
658
638
  * Reset your password.
659
639
  *
660
640
  * `HTTP.POST /user/password_reset`
661
641
  */
662
- passwordReset(form: PasswordReset): Promise<SuccessResponse>;
642
+ passwordReset(form: PasswordReset, options?: RequestOptions): Promise<SuccessResponse>;
663
643
  /**
664
644
  * Change your password from an email / token based reset.
665
645
  *
666
646
  * `HTTP.POST /user/password_change`
667
647
  */
668
- passwordChangeAfterReset(form: PasswordChangeAfterReset): Promise<SuccessResponse>;
648
+ passwordChangeAfterReset(form: PasswordChangeAfterReset, options?: RequestOptions): Promise<SuccessResponse>;
669
649
  /**
670
650
  * Mark all replies as read.
671
651
  *
672
652
  * `HTTP.POST /user/mark_all_as_read`
673
653
  */
674
- markAllAsRead(): Promise<GetRepliesResponse>;
654
+ markAllAsRead(options?: RequestOptions): Promise<GetRepliesResponse>;
675
655
  /**
676
656
  * Save your user settings.
677
657
  *
678
658
  * `HTTP.PUT /user/save_user_settings`
679
659
  */
680
- saveUserSettings(form: SaveUserSettings): Promise<SuccessResponse>;
660
+ saveUserSettings(form: SaveUserSettings, options?: RequestOptions): Promise<SuccessResponse>;
681
661
  /**
682
662
  * Change your user password.
683
663
  *
684
664
  * `HTTP.PUT /user/change_password`
685
665
  */
686
- changePassword(form: ChangePassword): Promise<LoginResponse>;
666
+ changePassword(form: ChangePassword, options?: RequestOptions): Promise<LoginResponse>;
687
667
  /**
688
668
  * Get counts for your reports
689
669
  *
690
670
  * `HTTP.GET /user/report_count`
691
671
  */
692
- getReportCount(form: GetReportCount): Promise<GetReportCountResponse>;
672
+ getReportCount(form: GetReportCount, options?: RequestOptions): Promise<GetReportCountResponse>;
693
673
  /**
694
674
  * Get your unread counts
695
675
  *
696
676
  * `HTTP.GET /user/unread_count`
697
677
  */
698
- getUnreadCount(): Promise<GetUnreadCountResponse>;
678
+ getUnreadCount(options?: RequestOptions): Promise<GetUnreadCountResponse>;
699
679
  /**
700
680
  * Verify your email
701
681
  *
702
682
  * `HTTP.POST /user/verify_email`
703
683
  */
704
- verifyEmail(form: VerifyEmail): Promise<SuccessResponse>;
684
+ verifyEmail(form: VerifyEmail, options?: RequestOptions): Promise<SuccessResponse>;
705
685
  /**
706
686
  * Add an admin to your site.
707
687
  *
708
688
  * `HTTP.POST /admin/add`
709
689
  */
710
- addAdmin(form: AddAdmin): Promise<AddAdminResponse>;
690
+ addAdmin(form: AddAdmin, options?: RequestOptions): Promise<AddAdminResponse>;
711
691
  /**
712
692
  * Get the unread registration applications count.
713
693
  *
714
694
  * `HTTP.GET /admin/registration_application/count`
715
695
  */
716
- getUnreadRegistrationApplicationCount(): Promise<GetUnreadRegistrationApplicationCountResponse>;
696
+ getUnreadRegistrationApplicationCount(options?: RequestOptions): Promise<GetUnreadRegistrationApplicationCountResponse>;
717
697
  /**
718
698
  * List the registration applications.
719
699
  *
720
700
  * `HTTP.GET /admin/registration_application/list`
721
701
  */
722
- listRegistrationApplications(form: ListRegistrationApplications): Promise<ListRegistrationApplicationsResponse>;
702
+ listRegistrationApplications(form: ListRegistrationApplications, options?: RequestOptions): Promise<ListRegistrationApplicationsResponse>;
723
703
  /**
724
704
  * Approve a registration application
725
705
  *
726
706
  * `HTTP.PUT /admin/registration_application/approve`
727
707
  */
728
- approveRegistrationApplication(form: ApproveRegistrationApplication): Promise<RegistrationApplicationResponse>;
708
+ approveRegistrationApplication(form: ApproveRegistrationApplication, options?: RequestOptions): Promise<RegistrationApplicationResponse>;
729
709
  /**
730
710
  * Get the application a user submitted when they first registered their account
731
711
  *
732
712
  * `HTTP.GET /admin/registration_application`
733
713
  */
734
- getRegistrationApplication(form: GetRegistrationApplication): Promise<RegistrationApplicationResponse>;
714
+ getRegistrationApplication(form: GetRegistrationApplication, options?: RequestOptions): Promise<RegistrationApplicationResponse>;
735
715
  /**
736
716
  * Purge / Delete a person from the database.
737
717
  *
738
718
  * `HTTP.POST /admin/purge/person`
739
719
  */
740
- purgePerson(form: PurgePerson): Promise<SuccessResponse>;
720
+ purgePerson(form: PurgePerson, options?: RequestOptions): Promise<SuccessResponse>;
741
721
  /**
742
722
  * Purge / Delete a community from the database.
743
723
  *
744
724
  * `HTTP.POST /admin/purge/community`
745
725
  */
746
- purgeCommunity(form: PurgeCommunity): Promise<SuccessResponse>;
726
+ purgeCommunity(form: PurgeCommunity, options?: RequestOptions): Promise<SuccessResponse>;
747
727
  /**
748
728
  * Purge / Delete a post from the database.
749
729
  *
750
730
  * `HTTP.POST /admin/purge/post`
751
731
  */
752
- purgePost(form: PurgePost): Promise<SuccessResponse>;
732
+ purgePost(form: PurgePost, options?: RequestOptions): Promise<SuccessResponse>;
753
733
  /**
754
734
  * Purge / Delete a comment from the database.
755
735
  *
756
736
  * `HTTP.POST /admin/purge/comment`
757
737
  */
758
- purgeComment(form: PurgeComment): Promise<SuccessResponse>;
738
+ purgeComment(form: PurgeComment, options?: RequestOptions): Promise<SuccessResponse>;
759
739
  /**
760
740
  * Create a new custom emoji
761
741
  *
762
742
  * `HTTP.POST /custom_emoji`
763
743
  */
764
- createCustomEmoji(form: CreateCustomEmoji): Promise<CustomEmojiResponse>;
744
+ createCustomEmoji(form: CreateCustomEmoji, options?: RequestOptions): Promise<CustomEmojiResponse>;
765
745
  /**
766
746
  * Edit an existing custom emoji
767
747
  *
768
748
  * `HTTP.PUT /custom_emoji`
769
749
  */
770
- editCustomEmoji(form: EditCustomEmoji): Promise<CustomEmojiResponse>;
750
+ editCustomEmoji(form: EditCustomEmoji, options?: RequestOptions): Promise<CustomEmojiResponse>;
771
751
  /**
772
752
  * Delete a custom emoji
773
753
  *
774
754
  * `HTTP.Post /custom_emoji/delete`
775
755
  */
776
- deleteCustomEmoji(form: DeleteCustomEmoji): Promise<SuccessResponse>;
756
+ deleteCustomEmoji(form: DeleteCustomEmoji, options?: RequestOptions): Promise<SuccessResponse>;
777
757
  /**
778
758
  * List custom emojis
779
759
  *
780
760
  * `HTTP.GET /custom_emoji/list`
781
761
  */
782
- listCustomEmojis(form: ListCustomEmojis): Promise<ListCustomEmojisResponse>;
762
+ listCustomEmojis(form: ListCustomEmojis, options?: RequestOptions): Promise<ListCustomEmojisResponse>;
783
763
  /**
784
764
  * Create a new tagline
785
765
  *
786
766
  * `HTTP.POST /admin/tagline`
787
767
  */
788
- createTagline(form: CreateTagline): Promise<TaglineResponse>;
768
+ createTagline(form: CreateTagline, options?: RequestOptions): Promise<TaglineResponse>;
789
769
  /**
790
770
  * Edit an existing tagline
791
771
  *
792
772
  * `HTTP.PUT /admin/tagline`
793
773
  */
794
- editTagline(form: UpdateTagline): Promise<TaglineResponse>;
774
+ editTagline(form: UpdateTagline, options?: RequestOptions): Promise<TaglineResponse>;
795
775
  /**
796
776
  * Delete a tagline
797
777
  *
798
778
  * `HTTP.Post /admin/tagline/delete`
799
779
  */
800
- deleteTagline(form: DeleteTagline): Promise<SuccessResponse>;
780
+ deleteTagline(form: DeleteTagline, options?: RequestOptions): Promise<SuccessResponse>;
801
781
  /**
802
782
  * List taglines
803
783
  *
804
784
  * `HTTP.GET /admin/tagline/list`
805
785
  */
806
- listTaglines(form: ListTaglines): Promise<ListTaglinesResponse>;
786
+ listTaglines(form: ListTaglines, options?: RequestOptions): Promise<ListTaglinesResponse>;
807
787
  /**
808
788
  * Create a new oauth provider method
809
789
  *
810
790
  * `HTTP.POST /oauth_provider`
811
791
  */
812
- createOAuthProvider(form: CreateOAuthProvider): Promise<OAuthProvider>;
792
+ createOAuthProvider(form: CreateOAuthProvider, options?: RequestOptions): Promise<OAuthProvider>;
813
793
  /**
814
794
  * Edit an existing oauth provider method
815
795
  *
816
796
  * `HTTP.PUT /oauth_provider`
817
797
  */
818
- editOAuthProvider(form: EditOAuthProvider): Promise<OAuthProvider>;
798
+ editOAuthProvider(form: EditOAuthProvider, options?: RequestOptions): Promise<OAuthProvider>;
819
799
  /**
820
800
  * Delete an oauth provider method
821
801
  *
822
802
  * `HTTP.Post /oauth_provider/delete`
823
803
  */
824
- deleteOAuthProvider(form: DeleteOAuthProvider): Promise<SuccessResponse>;
804
+ deleteOAuthProvider(form: DeleteOAuthProvider, options?: RequestOptions): Promise<SuccessResponse>;
825
805
  /**
826
806
  * Authenticate with OAuth
827
807
  *
828
808
  * `HTTP.Post /oauth/authenticate`
829
809
  */
830
- authenticateWithOAuth(form: AuthenticateWithOauth): Promise<LoginResponse>;
810
+ authenticateWithOAuth(form: AuthenticateWithOauth, options?: RequestOptions): Promise<LoginResponse>;
831
811
  /**
832
812
  * Fetch federated instances.
833
813
  *
834
814
  * `HTTP.Get /federated_instances`
835
815
  */
836
- getFederatedInstances(): Promise<GetFederatedInstancesResponse>;
816
+ getFederatedInstances(options?: RequestOptions): Promise<GetFederatedInstancesResponse>;
837
817
  /**
838
- * Block an instance.
818
+ * List post reports.
819
+ *
820
+ * `HTTP.GET /report/list`
821
+ */
822
+ listReports(form: ListReports, options?: RequestOptions): Promise<ListReportsResponse>;
823
+ /**
824
+ * Block an instance as user.
839
825
  *
840
826
  * `HTTP.Post /site/block`
841
827
  */
842
- blockInstance(form: BlockInstance): Promise<BlockInstanceResponse>;
828
+ userBlockInstance(form: UserBlockInstanceParams, options?: RequestOptions): Promise<SuccessResponse>;
829
+ /**
830
+ * Globally block an instance as admin.
831
+ *
832
+ * `HTTP.Post /admin/block_instance`
833
+ */
834
+ adminBlockInstance(form: AdminBlockInstanceParams, options?: RequestOptions): Promise<SuccessResponse>;
835
+ /**
836
+ * Globally allow an instance as admin.
837
+ *
838
+ * `HTTP.Post /admin/allow_instance`
839
+ */
840
+ adminAllowInstance(form: AdminAllowInstanceParams, options?: RequestOptions): Promise<SuccessResponse>;
843
841
  /**
844
842
  * Upload an image to the server.
845
843
  */
846
- uploadImage({ image }: UploadImage): Promise<UploadImageResponse>;
844
+ uploadImage({ image }: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
847
845
  /**
848
846
  * Delete a pictrs image
849
847
  */
850
- deleteImage({ token, filename }: DeleteImage): Promise<boolean>;
848
+ deleteImage({ token, filename }: DeleteImage, options?: RequestOptions): Promise<boolean>;
851
849
  /**
852
850
  * Set the headers (can be used to set the auth header)
853
851
  */
@@ -855,3 +853,4 @@ export declare class LemmyHttp {
855
853
  [key: string]: string;
856
854
  }): void;
857
855
  }
856
+ export {};