lemmy-js-client 0.20.0-alpha.7 → 0.20.0-instance-blocks.2

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