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.js CHANGED
@@ -58,32 +58,32 @@ class LemmyHttp {
58
58
  *
59
59
  * `HTTP.GET /site`
60
60
  */
61
- getSite() {
62
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/site", {});
61
+ getSite(options) {
62
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/site", {}, options);
63
63
  }
64
64
  /**
65
65
  * Create your site.
66
66
  *
67
67
  * `HTTP.POST /site`
68
68
  */
69
- createSite(form) {
70
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site", form);
69
+ createSite(form, options) {
70
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site", form, options);
71
71
  }
72
72
  /**
73
73
  * Edit your site.
74
74
  *
75
75
  * `HTTP.PUT /site`
76
76
  */
77
- editSite(form) {
78
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/site", form);
77
+ editSite(form, options) {
78
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/site", form, options);
79
79
  }
80
80
  /**
81
81
  * Leave the Site admins.
82
82
  *
83
83
  * `HTTP.POST /user/leave_admin`
84
84
  */
85
- leaveAdmin() {
86
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/leave_admin", {});
85
+ leaveAdmin(options) {
86
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/leave_admin", {}, options);
87
87
  }
88
88
  /**
89
89
  * Generate a TOTP / two-factor secret.
@@ -92,8 +92,8 @@ class LemmyHttp {
92
92
  *
93
93
  * `HTTP.POST /user/totp/generate`
94
94
  */
95
- generateTotpSecret() {
96
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/totp/generate", {});
95
+ generateTotpSecret(options) {
96
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/totp/generate", {}, options);
97
97
  }
98
98
  /**
99
99
  * Export a backup of your user settings, including your saved content,
@@ -101,48 +101,48 @@ class LemmyHttp {
101
101
  *
102
102
  * `HTTP.GET /user/export_settings`
103
103
  */
104
- exportSettings() {
105
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/export_settings", {});
104
+ exportSettings(options) {
105
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/export_settings", {}, options);
106
106
  }
107
107
  /**
108
108
  * Import a backup of your user settings.
109
109
  *
110
110
  * `HTTP.POST /user/import_settings`
111
111
  */
112
- importSettings(form) {
113
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/import_settings", form);
112
+ importSettings(form, options) {
113
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/import_settings", form, options);
114
114
  }
115
115
  /**
116
116
  * List login tokens for your user
117
117
  *
118
118
  * `HTTP.GET /user/list_logins`
119
119
  */
120
- listLogins() {
121
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/list_logins", {});
120
+ listLogins(options) {
121
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/list_logins", {}, options);
122
122
  }
123
123
  /**
124
124
  * Returns an error message if your auth token is invalid
125
125
  *
126
126
  * `HTTP.GET /user/validate_auth`
127
127
  */
128
- validateAuth() {
129
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/validate_auth", {});
128
+ validateAuth(options) {
129
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/validate_auth", {}, options);
130
130
  }
131
131
  /**
132
132
  * List all the media for your user
133
133
  *
134
134
  * `HTTP.GET /account/list_media`
135
135
  */
136
- listMedia(form = {}) {
137
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_media", form);
136
+ listMedia(form = {}, options) {
137
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_media", form, options);
138
138
  }
139
139
  /**
140
140
  * List all the media known to your instance.
141
141
  *
142
142
  * `HTTP.GET /admin/list_all_media`
143
143
  */
144
- listAllMedia(form = {}) {
145
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/list_all_media", form);
144
+ listAllMedia(form = {}, options) {
145
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/list_all_media", form, options);
146
146
  }
147
147
  /**
148
148
  * Enable / Disable TOTP / two-factor authentication.
@@ -153,816 +153,812 @@ class LemmyHttp {
153
153
  *
154
154
  * `HTTP.POST /user/totp/update`
155
155
  */
156
- updateTotp(form) {
157
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/totp/update", form);
156
+ updateTotp(form, options) {
157
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/totp/update", form, options);
158
158
  }
159
159
  /**
160
160
  * Get the modlog.
161
161
  *
162
162
  * `HTTP.GET /modlog`
163
163
  */
164
- getModlog(form = {}) {
165
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/modlog", form);
164
+ getModlog(form = {}, options) {
165
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/modlog", form, options);
166
166
  }
167
167
  /**
168
168
  * Search lemmy.
169
169
  *
170
170
  * `HTTP.GET /search`
171
171
  */
172
- search(form) {
173
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/search", form);
172
+ search(form, options) {
173
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/search", form, options);
174
174
  }
175
175
  /**
176
176
  * Fetch a non-local / federated object.
177
177
  *
178
178
  * `HTTP.GET /resolve_object`
179
179
  */
180
- resolveObject(form) {
181
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/resolve_object", form);
180
+ resolveObject(form, options) {
181
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/resolve_object", form, options);
182
182
  }
183
183
  /**
184
184
  * Create a new community.
185
185
  *
186
186
  * `HTTP.POST /community`
187
187
  */
188
- createCommunity(form) {
189
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community", form);
188
+ createCommunity(form, options) {
189
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community", form, options);
190
190
  }
191
191
  /**
192
192
  * Get / fetch a community.
193
193
  *
194
194
  * `HTTP.GET /community`
195
195
  */
196
- getCommunity(form = {}) {
197
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community", form);
196
+ getCommunity(form = {}, options) {
197
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community", form, options);
198
198
  }
199
199
  /**
200
200
  * Edit a community.
201
201
  *
202
202
  * `HTTP.PUT /community`
203
203
  */
204
- editCommunity(form) {
205
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community", form);
204
+ editCommunity(form, options) {
205
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community", form, options);
206
206
  }
207
207
  /**
208
208
  * List communities, with various filters.
209
209
  *
210
210
  * `HTTP.GET /community/list`
211
211
  */
212
- listCommunities(form = {}) {
213
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/list", form);
212
+ listCommunities(form = {}, options) {
213
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/list", form, options);
214
214
  }
215
215
  /**
216
216
  * Follow / subscribe to a community.
217
217
  *
218
218
  * `HTTP.POST /community/follow`
219
219
  */
220
- followCommunity(form) {
221
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/follow", form);
220
+ followCommunity(form, options) {
221
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/follow", form, options);
222
222
  }
223
- getCommunityPendingFollowsCount(community_id) {
223
+ getCommunityPendingFollowsCount(community_id, options) {
224
224
  const form = { community_id };
225
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", form);
225
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", form, options);
226
226
  }
227
- listCommunityPendingFollows(form) {
228
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/list", form);
227
+ listCommunityPendingFollows(form, options) {
228
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/list", form, options);
229
229
  }
230
- approveCommunityPendingFollow(form) {
231
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/pending_follows/approve", form);
230
+ approveCommunityPendingFollow(form, options) {
231
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/pending_follows/approve", form, options);
232
232
  }
233
233
  /**
234
234
  * Block a community.
235
235
  *
236
236
  * `HTTP.POST /community/block`
237
237
  */
238
- blockCommunity(form) {
239
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/block", form);
238
+ blockCommunity(form, options) {
239
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/block", form, options);
240
240
  }
241
241
  /**
242
242
  * Delete a community.
243
243
  *
244
244
  * `HTTP.POST /community/delete`
245
245
  */
246
- deleteCommunity(form) {
247
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/delete", form);
246
+ deleteCommunity(form, options) {
247
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/delete", form, options);
248
248
  }
249
249
  /**
250
250
  * Hide a community from public / "All" view. Admins only.
251
251
  *
252
252
  * `HTTP.PUT /community/hide`
253
253
  */
254
- hideCommunity(form) {
255
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/hide", form);
254
+ hideCommunity(form, options) {
255
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/hide", form, options);
256
256
  }
257
257
  /**
258
258
  * A moderator remove for a community.
259
259
  *
260
260
  * `HTTP.POST /community/remove`
261
261
  */
262
- removeCommunity(form) {
263
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/remove", form);
262
+ removeCommunity(form, options) {
263
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/remove", form, options);
264
264
  }
265
265
  /**
266
266
  * Transfer your community to an existing moderator.
267
267
  *
268
268
  * `HTTP.POST /community/transfer`
269
269
  */
270
- transferCommunity(form) {
271
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/transfer", form);
270
+ transferCommunity(form, options) {
271
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/transfer", form, options);
272
272
  }
273
273
  /**
274
274
  * Ban a user from a community.
275
275
  *
276
276
  * `HTTP.POST /community/ban_user`
277
277
  */
278
- banFromCommunity(form) {
279
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/ban_user", form);
278
+ banFromCommunity(form, options) {
279
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/ban_user", form, options);
280
280
  }
281
281
  /**
282
282
  * Add a moderator to your community.
283
283
  *
284
284
  * `HTTP.POST /community/mod`
285
285
  */
286
- addModToCommunity(form) {
287
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/mod", form);
286
+ addModToCommunity(form, options) {
287
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/mod", form, options);
288
288
  }
289
289
  /**
290
290
  * Get a random community.
291
291
  *
292
292
  * `HTTP.GET /community/random`
293
293
  */
294
- getRandomCommunity(form) {
295
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/random", form);
294
+ getRandomCommunity(form, options) {
295
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/random", form, options);
296
296
  }
297
297
  /**
298
298
  * Create a post.
299
299
  *
300
300
  * `HTTP.POST /post`
301
301
  */
302
- createPost(form) {
303
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post", form);
302
+ createPost(form, options) {
303
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post", form, options);
304
304
  }
305
305
  /**
306
306
  * Get / fetch a post.
307
307
  *
308
308
  * `HTTP.GET /post`
309
309
  */
310
- getPost(form = {}) {
311
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post", form);
310
+ getPost(form = {}, options) {
311
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post", form, options);
312
312
  }
313
313
  /**
314
314
  * Edit a post.
315
315
  *
316
316
  * `HTTP.PUT /post`
317
317
  */
318
- editPost(form) {
319
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post", form);
318
+ editPost(form, options) {
319
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post", form, options);
320
320
  }
321
321
  /**
322
322
  * Delete a post.
323
323
  *
324
324
  * `HTTP.POST /post/delete`
325
325
  */
326
- deletePost(form) {
327
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/delete", form);
326
+ deletePost(form, options) {
327
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/delete", form, options);
328
328
  }
329
329
  /**
330
330
  * A moderator remove for a post.
331
331
  *
332
332
  * `HTTP.POST /post/remove`
333
333
  */
334
- removePost(form) {
335
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/remove", form);
334
+ removePost(form, options) {
335
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/remove", form, options);
336
336
  }
337
337
  /**
338
338
  * Mark a post as read.
339
339
  *
340
340
  * `HTTP.POST /post/mark_as_read`
341
341
  */
342
- markPostAsRead(form) {
343
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read", form);
342
+ markPostAsRead(form, options) {
343
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read", form, options);
344
344
  }
345
345
  /**
346
346
  * Hide a post from list views.
347
347
  *
348
348
  * `HTTP.POST /post/hide`
349
349
  */
350
- hidePost(form) {
351
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/hide", form);
350
+ hidePost(form, options) {
351
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/hide", form, options);
352
352
  }
353
353
  /**
354
354
  * A moderator can lock a post ( IE disable new comments ).
355
355
  *
356
356
  * `HTTP.POST /post/lock`
357
357
  */
358
- lockPost(form) {
359
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/lock", form);
358
+ lockPost(form, options) {
359
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/lock", form, options);
360
360
  }
361
361
  /**
362
362
  * A moderator can feature a community post ( IE stick it to the top of a community ).
363
363
  *
364
364
  * `HTTP.POST /post/feature`
365
365
  */
366
- featurePost(form) {
367
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/feature", form);
366
+ featurePost(form, options) {
367
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/feature", form, options);
368
368
  }
369
369
  /**
370
370
  * Get / fetch posts, with various filters.
371
371
  *
372
372
  * `HTTP.GET /post/list`
373
373
  */
374
- getPosts(form = {}) {
375
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/list", form);
374
+ getPosts(form = {}, options) {
375
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/list", form, options);
376
376
  }
377
377
  /**
378
378
  * Like / vote on a post.
379
379
  *
380
380
  * `HTTP.POST /post/like`
381
381
  */
382
- likePost(form) {
383
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/like", form);
382
+ likePost(form, options) {
383
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/like", form, options);
384
384
  }
385
385
  /**
386
386
  * List a post's likes. Admin-only.
387
387
  *
388
388
  * `HTTP.GET /post/like/list`
389
389
  */
390
- listPostLikes(form) {
391
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/like/list", form);
390
+ listPostLikes(form, options) {
391
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/like/list", form, options);
392
392
  }
393
393
  /**
394
394
  * Save a post.
395
395
  *
396
396
  * `HTTP.PUT /post/save`
397
397
  */
398
- savePost(form) {
399
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/save", form);
398
+ savePost(form, options) {
399
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/save", form, options);
400
400
  }
401
401
  /**
402
402
  * Report a post.
403
403
  *
404
404
  * `HTTP.POST /post/report`
405
405
  */
406
- createPostReport(form) {
407
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/report", form);
406
+ createPostReport(form, options) {
407
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/report", form, options);
408
408
  }
409
409
  /**
410
410
  * Resolve a post report. Only a mod can do this.
411
411
  *
412
412
  * `HTTP.PUT /post/report/resolve`
413
413
  */
414
- resolvePostReport(form) {
415
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/report/resolve", form);
416
- }
417
- /**
418
- * List post reports.
419
- *
420
- * `HTTP.GET /post/report/list`
421
- */
422
- listPostReports(form) {
423
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/report/list", form);
414
+ resolvePostReport(form, options) {
415
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/report/resolve", form, options);
424
416
  }
425
417
  /**
426
418
  * Fetch metadata for any given site.
427
419
  *
428
420
  * `HTTP.GET /post/site_metadata`
429
421
  */
430
- getSiteMetadata(form) {
431
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/site_metadata", form);
422
+ getSiteMetadata(form, options) {
423
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/site_metadata", form, options);
432
424
  }
433
425
  /**
434
426
  * Create a comment.
435
427
  *
436
428
  * `HTTP.POST /comment`
437
429
  */
438
- createComment(form) {
439
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment", form);
430
+ createComment(form, options) {
431
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment", form, options);
440
432
  }
441
433
  /**
442
434
  * Edit a comment.
443
435
  *
444
436
  * `HTTP.PUT /comment`
445
437
  */
446
- editComment(form) {
447
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment", form);
438
+ editComment(form, options) {
439
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment", form, options);
448
440
  }
449
441
  /**
450
442
  * Delete a comment.
451
443
  *
452
444
  * `HTTP.POST /comment/delete`
453
445
  */
454
- deleteComment(form) {
455
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/delete", form);
446
+ deleteComment(form, options) {
447
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/delete", form, options);
456
448
  }
457
449
  /**
458
450
  * A moderator remove for a comment.
459
451
  *
460
452
  * `HTTP.POST /comment/remove`
461
453
  */
462
- removeComment(form) {
463
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/remove", form);
454
+ removeComment(form, options) {
455
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/remove", form, options);
464
456
  }
465
457
  /**
466
458
  * Mark a comment as read.
467
459
  *
468
460
  * `HTTP.POST /comment/mark_as_read`
469
461
  */
470
- markCommentReplyAsRead(form) {
471
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/mark_as_read", form);
462
+ markCommentReplyAsRead(form, options) {
463
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/mark_as_read", form, options);
472
464
  }
473
465
  /**
474
466
  * Like / vote on a comment.
475
467
  *
476
468
  * `HTTP.POST /comment/like`
477
469
  */
478
- likeComment(form) {
479
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/like", form);
470
+ likeComment(form, options) {
471
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/like", form, options);
480
472
  }
481
473
  /**
482
474
  * List a comment's likes. Admin-only.
483
475
  *
484
476
  * `HTTP.GET /comment/like/list`
485
477
  */
486
- listCommentLikes(form) {
487
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/like/list", form);
478
+ listCommentLikes(form, options) {
479
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/like/list", form, options);
488
480
  }
489
481
  /**
490
482
  * Save a comment.
491
483
  *
492
484
  * `HTTP.PUT /comment/save`
493
485
  */
494
- saveComment(form) {
495
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/save", form);
486
+ saveComment(form, options) {
487
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/save", form, options);
496
488
  }
497
489
  /**
498
490
  * Distinguishes a comment (speak as moderator)
499
491
  *
500
492
  * `HTTP.POST /comment/distinguish`
501
493
  */
502
- distinguishComment(form) {
503
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/distinguish", form);
494
+ distinguishComment(form, options) {
495
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/distinguish", form, options);
504
496
  }
505
497
  /**
506
498
  * Get / fetch comments.
507
499
  *
508
500
  * `HTTP.GET /comment/list`
509
501
  */
510
- getComments(form = {}) {
511
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list", form);
502
+ getComments(form = {}, options) {
503
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list", form, options);
512
504
  }
513
505
  /**
514
506
  * Get / fetch comment.
515
507
  *
516
508
  * `HTTP.GET /comment`
517
509
  */
518
- getComment(form) {
519
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment", form);
510
+ getComment(form, options) {
511
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment", form, options);
520
512
  }
521
513
  /**
522
514
  * Report a comment.
523
515
  *
524
516
  * `HTTP.POST /comment/report`
525
517
  */
526
- createCommentReport(form) {
527
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/report", form);
518
+ createCommentReport(form, options) {
519
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/report", form, options);
528
520
  }
529
521
  /**
530
522
  * Resolve a comment report. Only a mod can do this.
531
523
  *
532
524
  * `HTTP.PUT /comment/report/resolve`
533
525
  */
534
- resolveCommentReport(form) {
535
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/report/resolve", form);
536
- }
537
- /**
538
- * List comment reports.
539
- *
540
- * `HTTP.GET /comment/report/list`
541
- */
542
- listCommentReports(form) {
543
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/report/list", form);
526
+ resolveCommentReport(form, options) {
527
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/report/resolve", form, options);
544
528
  }
545
529
  /**
546
530
  * Get / fetch private messages.
547
531
  *
548
532
  * `HTTP.GET /private_message/list`
549
533
  */
550
- getPrivateMessages(form) {
551
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/private_message/list", form);
534
+ getPrivateMessages(form, options) {
535
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/private_message/list", form, options);
552
536
  }
553
537
  /**
554
538
  * Create a private message.
555
539
  *
556
540
  * `HTTP.POST /private_message`
557
541
  */
558
- createPrivateMessage(form) {
559
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message", form);
542
+ createPrivateMessage(form, options) {
543
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message", form, options);
560
544
  }
561
545
  /**
562
546
  * Edit a private message.
563
547
  *
564
548
  * `HTTP.PUT /private_message`
565
549
  */
566
- editPrivateMessage(form) {
567
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message", form);
550
+ editPrivateMessage(form, options) {
551
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message", form, options);
568
552
  }
569
553
  /**
570
554
  * Delete a private message.
571
555
  *
572
556
  * `HTTP.POST /private_message/delete`
573
557
  */
574
- deletePrivateMessage(form) {
575
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/delete", form);
558
+ deletePrivateMessage(form, options) {
559
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/delete", form, options);
576
560
  }
577
561
  /**
578
562
  * Mark a private message as read.
579
563
  *
580
564
  * `HTTP.POST /private_message/mark_as_read`
581
565
  */
582
- markPrivateMessageAsRead(form) {
583
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/mark_as_read", form);
566
+ markPrivateMessageAsRead(form, options) {
567
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/mark_as_read", form, options);
584
568
  }
585
569
  /**
586
570
  * Create a report for a private message.
587
571
  *
588
572
  * `HTTP.POST /private_message/report`
589
573
  */
590
- createPrivateMessageReport(form) {
591
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/report", form);
574
+ createPrivateMessageReport(form, options) {
575
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/report", form, options);
592
576
  }
593
577
  /**
594
578
  * Resolve a report for a private message.
595
579
  *
596
580
  * `HTTP.PUT /private_message/report/resolve`
597
581
  */
598
- resolvePrivateMessageReport(form) {
599
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message/report/resolve", form);
600
- }
601
- /**
602
- * List private message reports.
603
- *
604
- * `HTTP.GET /private_message/report/list`
605
- */
606
- listPrivateMessageReports(form) {
607
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/private_message/report/list", form);
582
+ resolvePrivateMessageReport(form, options) {
583
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message/report/resolve", form, options);
608
584
  }
609
585
  /**
610
586
  * Register a new user.
611
587
  *
612
588
  * `HTTP.POST /user/register`
613
589
  */
614
- register(form) {
615
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/register", form);
590
+ register(form, options) {
591
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/register", form, options);
616
592
  }
617
593
  /**
618
594
  * Log into lemmy.
619
595
  *
620
596
  * `HTTP.POST /user/login`
621
597
  */
622
- login(form) {
623
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/login", form);
598
+ login(form, options) {
599
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/login", form, options);
624
600
  }
625
601
  /**
626
602
  * Invalidate the currently used auth token.
627
603
  *
628
604
  * `HTTP.POST /user/logout`
629
605
  */
630
- logout() {
631
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/logout", {});
606
+ logout(options) {
607
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/logout", {}, options);
632
608
  }
633
609
  /**
634
610
  * Get the details for a person.
635
611
  *
636
612
  * `HTTP.GET /user`
637
613
  */
638
- getPersonDetails(form = {}) {
639
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user", form);
614
+ getPersonDetails(form = {}, options) {
615
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user", form, options);
640
616
  }
641
617
  /**
642
618
  * Get mentions for your user.
643
619
  *
644
620
  * `HTTP.GET /user/mention`
645
621
  */
646
- getPersonMentions(form) {
647
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/mention", form);
622
+ getPersonMentions(form, options) {
623
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/mention", form, options);
648
624
  }
649
625
  /**
650
626
  * Mark a person mention as read.
651
627
  *
652
628
  * `HTTP.POST /user/mention/mark_as_read`
653
629
  */
654
- markPersonMentionAsRead(form) {
655
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/mention/mark_as_read", form);
630
+ markPersonMentionAsRead(form, options) {
631
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/mention/mark_as_read", form, options);
656
632
  }
657
633
  /**
658
634
  * Get comment replies.
659
635
  *
660
636
  * `HTTP.GET /user/replies`
661
637
  */
662
- getReplies(form) {
663
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/replies", form);
638
+ getReplies(form, options) {
639
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/replies", form, options);
664
640
  }
665
641
  /**
666
642
  * Ban a person from your site.
667
643
  *
668
644
  * `HTTP.POST /user/ban`
669
645
  */
670
- banPerson(form) {
671
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/ban", form);
646
+ banPerson(form, options) {
647
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/ban", form, options);
672
648
  }
673
649
  /**
674
650
  * Get a list of banned users
675
651
  *
676
652
  * `HTTP.GET /user/banned`
677
653
  */
678
- getBannedPersons() {
679
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/banned", {});
654
+ getBannedPersons(options) {
655
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/banned", {}, options);
680
656
  }
681
657
  /**
682
658
  * Block a person.
683
659
  *
684
660
  * `HTTP.POST /user/block`
685
661
  */
686
- blockPerson(form) {
687
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/block", form);
662
+ blockPerson(form, options) {
663
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/block", form, options);
688
664
  }
689
665
  /**
690
666
  * Fetch a Captcha.
691
667
  *
692
668
  * `HTTP.GET /user/get_captcha`
693
669
  */
694
- getCaptcha() {
695
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/get_captcha", {});
670
+ getCaptcha(options) {
671
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/get_captcha", {}, options);
696
672
  }
697
673
  /**
698
674
  * Delete your account.
699
675
  *
700
676
  * `HTTP.POST /user/delete_account`
701
677
  */
702
- deleteAccount(form) {
703
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/delete_account", form);
678
+ deleteAccount(form, options) {
679
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/delete_account", form, options);
704
680
  }
705
681
  /**
706
682
  * Reset your password.
707
683
  *
708
684
  * `HTTP.POST /user/password_reset`
709
685
  */
710
- passwordReset(form) {
711
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/password_reset", form);
686
+ passwordReset(form, options) {
687
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/password_reset", form, options);
712
688
  }
713
689
  /**
714
690
  * Change your password from an email / token based reset.
715
691
  *
716
692
  * `HTTP.POST /user/password_change`
717
693
  */
718
- passwordChangeAfterReset(form) {
719
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/password_change", form);
694
+ passwordChangeAfterReset(form, options) {
695
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/password_change", form, options);
720
696
  }
721
697
  /**
722
698
  * Mark all replies as read.
723
699
  *
724
700
  * `HTTP.POST /user/mark_all_as_read`
725
701
  */
726
- markAllAsRead() {
727
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/mark_all_as_read", {});
702
+ markAllAsRead(options) {
703
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/mark_all_as_read", {}, options);
728
704
  }
729
705
  /**
730
706
  * Save your user settings.
731
707
  *
732
708
  * `HTTP.PUT /user/save_user_settings`
733
709
  */
734
- saveUserSettings(form) {
735
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/user/save_user_settings", form);
710
+ saveUserSettings(form, options) {
711
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/user/save_user_settings", form, options);
736
712
  }
737
713
  /**
738
714
  * Change your user password.
739
715
  *
740
716
  * `HTTP.PUT /user/change_password`
741
717
  */
742
- changePassword(form) {
743
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/user/change_password", form);
718
+ changePassword(form, options) {
719
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/user/change_password", form, options);
744
720
  }
745
721
  /**
746
722
  * Get counts for your reports
747
723
  *
748
724
  * `HTTP.GET /user/report_count`
749
725
  */
750
- getReportCount(form) {
751
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/report_count", form);
726
+ getReportCount(form, options) {
727
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/report_count", form, options);
752
728
  }
753
729
  /**
754
730
  * Get your unread counts
755
731
  *
756
732
  * `HTTP.GET /user/unread_count`
757
733
  */
758
- getUnreadCount() {
759
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/unread_count", {});
734
+ getUnreadCount(options) {
735
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/unread_count", {}, options);
760
736
  }
761
737
  /**
762
738
  * Verify your email
763
739
  *
764
740
  * `HTTP.POST /user/verify_email`
765
741
  */
766
- verifyEmail(form) {
767
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/verify_email", form);
742
+ verifyEmail(form, options) {
743
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/verify_email", form, options);
768
744
  }
769
745
  /**
770
746
  * Add an admin to your site.
771
747
  *
772
748
  * `HTTP.POST /admin/add`
773
749
  */
774
- addAdmin(form) {
775
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/add", form);
750
+ addAdmin(form, options) {
751
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/add", form, options);
776
752
  }
777
753
  /**
778
754
  * Get the unread registration applications count.
779
755
  *
780
756
  * `HTTP.GET /admin/registration_application/count`
781
757
  */
782
- getUnreadRegistrationApplicationCount() {
783
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/count", {});
758
+ getUnreadRegistrationApplicationCount(options) {
759
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/count", {}, options);
784
760
  }
785
761
  /**
786
762
  * List the registration applications.
787
763
  *
788
764
  * `HTTP.GET /admin/registration_application/list`
789
765
  */
790
- listRegistrationApplications(form) {
791
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/list", form);
766
+ listRegistrationApplications(form, options) {
767
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/list", form, options);
792
768
  }
793
769
  /**
794
770
  * Approve a registration application
795
771
  *
796
772
  * `HTTP.PUT /admin/registration_application/approve`
797
773
  */
798
- approveRegistrationApplication(form) {
799
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/registration_application/approve", form);
774
+ approveRegistrationApplication(form, options) {
775
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/registration_application/approve", form, options);
800
776
  }
801
777
  /**
802
778
  * Get the application a user submitted when they first registered their account
803
779
  *
804
780
  * `HTTP.GET /admin/registration_application`
805
781
  */
806
- getRegistrationApplication(form) {
807
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application", form);
782
+ getRegistrationApplication(form, options) {
783
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application", form, options);
808
784
  }
809
785
  /**
810
786
  * Purge / Delete a person from the database.
811
787
  *
812
788
  * `HTTP.POST /admin/purge/person`
813
789
  */
814
- purgePerson(form) {
815
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/person", form);
790
+ purgePerson(form, options) {
791
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/person", form, options);
816
792
  }
817
793
  /**
818
794
  * Purge / Delete a community from the database.
819
795
  *
820
796
  * `HTTP.POST /admin/purge/community`
821
797
  */
822
- purgeCommunity(form) {
823
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/community", form);
798
+ purgeCommunity(form, options) {
799
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/community", form, options);
824
800
  }
825
801
  /**
826
802
  * Purge / Delete a post from the database.
827
803
  *
828
804
  * `HTTP.POST /admin/purge/post`
829
805
  */
830
- purgePost(form) {
831
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/post", form);
806
+ purgePost(form, options) {
807
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/post", form, options);
832
808
  }
833
809
  /**
834
810
  * Purge / Delete a comment from the database.
835
811
  *
836
812
  * `HTTP.POST /admin/purge/comment`
837
813
  */
838
- purgeComment(form) {
839
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/comment", form);
814
+ purgeComment(form, options) {
815
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/comment", form, options);
840
816
  }
841
817
  /**
842
818
  * Create a new custom emoji
843
819
  *
844
820
  * `HTTP.POST /custom_emoji`
845
821
  */
846
- createCustomEmoji(form) {
847
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji", form);
822
+ createCustomEmoji(form, options) {
823
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji", form, options);
848
824
  }
849
825
  /**
850
826
  * Edit an existing custom emoji
851
827
  *
852
828
  * `HTTP.PUT /custom_emoji`
853
829
  */
854
- editCustomEmoji(form) {
855
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/custom_emoji", form);
830
+ editCustomEmoji(form, options) {
831
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/custom_emoji", form, options);
856
832
  }
857
833
  /**
858
834
  * Delete a custom emoji
859
835
  *
860
836
  * `HTTP.Post /custom_emoji/delete`
861
837
  */
862
- deleteCustomEmoji(form) {
863
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form);
838
+ deleteCustomEmoji(form, options) {
839
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form, options);
864
840
  }
865
841
  /**
866
842
  * List custom emojis
867
843
  *
868
844
  * `HTTP.GET /custom_emoji/list`
869
845
  */
870
- listCustomEmojis(form) {
871
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/custom_emoji/list", form);
846
+ listCustomEmojis(form, options) {
847
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/custom_emoji/list", form, options);
872
848
  }
873
849
  /**
874
850
  * Create a new tagline
875
851
  *
876
852
  * `HTTP.POST /admin/tagline`
877
853
  */
878
- createTagline(form) {
879
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline", form);
854
+ createTagline(form, options) {
855
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline", form, options);
880
856
  }
881
857
  /**
882
858
  * Edit an existing tagline
883
859
  *
884
860
  * `HTTP.PUT /admin/tagline`
885
861
  */
886
- editTagline(form) {
887
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/tagline", form);
862
+ editTagline(form, options) {
863
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/tagline", form, options);
888
864
  }
889
865
  /**
890
866
  * Delete a tagline
891
867
  *
892
868
  * `HTTP.Post /admin/tagline/delete`
893
869
  */
894
- deleteTagline(form) {
895
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline/delete", form);
870
+ deleteTagline(form, options) {
871
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline/delete", form, options);
896
872
  }
897
873
  /**
898
874
  * List taglines
899
875
  *
900
876
  * `HTTP.GET /admin/tagline/list`
901
877
  */
902
- listTaglines(form) {
903
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/tagline/list", form);
878
+ listTaglines(form, options) {
879
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/tagline/list", form, options);
904
880
  }
905
881
  /**
906
882
  * Create a new oauth provider method
907
883
  *
908
884
  * `HTTP.POST /oauth_provider`
909
885
  */
910
- createOAuthProvider(form) {
911
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider", form);
886
+ createOAuthProvider(form, options) {
887
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider", form, options);
912
888
  }
913
889
  /**
914
890
  * Edit an existing oauth provider method
915
891
  *
916
892
  * `HTTP.PUT /oauth_provider`
917
893
  */
918
- editOAuthProvider(form) {
919
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/oauth_provider", form);
894
+ editOAuthProvider(form, options) {
895
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/oauth_provider", form, options);
920
896
  }
921
897
  /**
922
898
  * Delete an oauth provider method
923
899
  *
924
900
  * `HTTP.Post /oauth_provider/delete`
925
901
  */
926
- deleteOAuthProvider(form) {
927
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider/delete", form);
902
+ deleteOAuthProvider(form, options) {
903
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider/delete", form, options);
928
904
  }
929
905
  /**
930
906
  * Authenticate with OAuth
931
907
  *
932
908
  * `HTTP.Post /oauth/authenticate`
933
909
  */
934
- authenticateWithOAuth(form) {
935
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth/authenticate", form);
910
+ authenticateWithOAuth(form, options) {
911
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth/authenticate", form, options);
936
912
  }
937
913
  /**
938
914
  * Fetch federated instances.
939
915
  *
940
916
  * `HTTP.Get /federated_instances`
941
917
  */
942
- getFederatedInstances() {
943
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", {});
918
+ getFederatedInstances(options) {
919
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", {}, options);
944
920
  }
945
921
  /**
946
- * Block an instance.
922
+ * List post reports.
923
+ *
924
+ * `HTTP.GET /report/list`
925
+ */
926
+ listReports(form, options) {
927
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/report/list", form, options);
928
+ }
929
+ /**
930
+ * Block an instance as user.
947
931
  *
948
932
  * `HTTP.Post /site/block`
949
933
  */
950
- blockInstance(form) {
951
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site/block", form);
934
+ userBlockInstance(form, options) {
935
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site/block", form, options);
936
+ }
937
+ /**
938
+ * Globally block an instance as admin.
939
+ *
940
+ * `HTTP.Post /admin/block_instance`
941
+ */
942
+ adminBlockInstance(form, options) {
943
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/block_instance", form, options);
944
+ }
945
+ /**
946
+ * Globally allow an instance as admin.
947
+ *
948
+ * `HTTP.Post /admin/allow_instance`
949
+ */
950
+ adminAllowInstance(form, options) {
951
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/allow_instance", form, options);
952
952
  }
953
953
  /**
954
954
  * Upload an image to the server.
955
955
  */
956
- uploadImage(_a) {
957
- return __awaiter(this, arguments, void 0, function* ({ image }) {
956
+ uploadImage(_a, options_1) {
957
+ return __awaiter(this, arguments, void 0, function* ({ image }, options) {
958
958
  const formData = createFormData(image);
959
959
  let url = undefined;
960
960
  let delete_url = undefined;
961
- const response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_pictrsUrl, "f"), {
962
- method: HttpType.Post,
963
- body: formData,
964
- headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f"),
965
- });
961
+ const response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_pictrsUrl, "f"), Object.assign(Object.assign({}, options), { method: HttpType.Post, body: formData, headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f") }));
966
962
  if (response.status === 413) {
967
963
  return { msg: "too_large" };
968
964
  }
@@ -979,13 +975,10 @@ class LemmyHttp {
979
975
  /**
980
976
  * Delete a pictrs image
981
977
  */
982
- deleteImage(_a) {
983
- return __awaiter(this, arguments, void 0, function* ({ token, filename }) {
978
+ deleteImage(_a, options_1) {
979
+ return __awaiter(this, arguments, void 0, function* ({ token, filename }, options) {
984
980
  const deleteUrl = `${__classPrivateFieldGet(this, _LemmyHttp_pictrsUrl, "f")}/delete/${token}/${filename}`;
985
- const response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, deleteUrl, {
986
- method: HttpType.Get,
987
- headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f"),
988
- });
981
+ const response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, deleteUrl, Object.assign(Object.assign({}, options), { method: HttpType.Get, headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f") }));
989
982
  return response.status == 204;
990
983
  });
991
984
  }
@@ -999,23 +992,16 @@ class LemmyHttp {
999
992
  exports.LemmyHttp = LemmyHttp;
1000
993
  _LemmyHttp_apiUrl = new WeakMap(), _LemmyHttp_headers = new WeakMap(), _LemmyHttp_pictrsUrl = new WeakMap(), _LemmyHttp_fetchFunction = new WeakMap(), _LemmyHttp_instances = new WeakSet(), _LemmyHttp_buildFullUrl = function _LemmyHttp_buildFullUrl(endpoint) {
1001
994
  return `${__classPrivateFieldGet(this, _LemmyHttp_apiUrl, "f")}${endpoint}`;
1002
- }, _LemmyHttp_wrapper = function _LemmyHttp_wrapper(type_, endpoint, form) {
995
+ }, _LemmyHttp_wrapper = function _LemmyHttp_wrapper(type_, endpoint, form, options) {
1003
996
  return __awaiter(this, void 0, void 0, function* () {
1004
997
  var _a;
1005
998
  let response;
1006
999
  if (type_ === HttpType.Get) {
1007
1000
  const getUrl = `${__classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, endpoint)}?${encodeGetParams(form)}`;
1008
- response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, getUrl, {
1009
- method: HttpType.Get,
1010
- headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f"),
1011
- });
1001
+ response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, getUrl, Object.assign(Object.assign({}, options), { method: HttpType.Get, headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f") }));
1012
1002
  }
1013
1003
  else {
1014
- response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, endpoint), {
1015
- method: type_,
1016
- headers: Object.assign({ "Content-Type": "application/json" }, __classPrivateFieldGet(this, _LemmyHttp_headers, "f")),
1017
- body: JSON.stringify(form),
1018
- });
1004
+ response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, endpoint), Object.assign(Object.assign({}, options), { method: type_, headers: Object.assign({ "Content-Type": "application/json" }, __classPrivateFieldGet(this, _LemmyHttp_headers, "f")), body: JSON.stringify(form) }));
1019
1005
  }
1020
1006
  let json = undefined;
1021
1007
  try {