lemmy-js-client 1.0.0-rename-rate-limit-columns.1 → 1.0.0-rename-paged-response-data.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/README.md +6 -0
  2. package/dist/http.d.ts +94 -82
  3. package/dist/http.js +133 -84
  4. package/dist/index.d.ts +37 -98
  5. package/dist/index.js +3 -0
  6. package/dist/other_types.d.ts +5 -5
  7. package/dist/types/AdminAllowInstanceParams.d.ts +1 -1
  8. package/dist/types/AdminBlockInstanceParams.d.ts +7 -2
  9. package/dist/types/AdminListUsers.d.ts +0 -1
  10. package/dist/types/AllLemmyErrors.d.ts +1 -0
  11. package/dist/types/AllLemmyErrors.js +117 -0
  12. package/dist/types/AuthenticateWithOauth.d.ts +4 -0
  13. package/dist/types/BanFromCommunity.d.ts +1 -1
  14. package/dist/types/BanPerson.d.ts +1 -1
  15. package/dist/types/ChangePassword.d.ts +4 -0
  16. package/dist/types/Comment.d.ts +4 -0
  17. package/dist/types/CommentActions.d.ts +6 -6
  18. package/dist/types/CommentReportView.d.ts +5 -0
  19. package/dist/types/CommentResponse.d.ts +0 -2
  20. package/dist/types/CommentSlimView.d.ts +0 -2
  21. package/dist/types/CommentSortType.d.ts +1 -1
  22. package/dist/types/CommentView.d.ts +2 -2
  23. package/dist/types/CommunityActions.d.ts +6 -4
  24. package/dist/types/CommunityFollowerState.d.ts +1 -1
  25. package/dist/types/CommunityNotificationsMode.d.ts +4 -0
  26. package/dist/types/CommunityReportView.d.ts +6 -0
  27. package/dist/types/CommunitySortType.d.ts +1 -1
  28. package/dist/types/CommunityView.d.ts +0 -2
  29. package/dist/types/CommunityVisibility.d.ts +1 -1
  30. package/dist/types/CreateCommentLike.d.ts +2 -2
  31. package/dist/types/CreateCommunityTag.d.ts +3 -1
  32. package/dist/types/CreateCustomEmoji.d.ts +2 -1
  33. package/dist/types/CreateCustomEmoji.js +0 -1
  34. package/dist/types/CreatePostLike.d.ts +2 -2
  35. package/dist/types/CreateSite.d.ts +0 -1
  36. package/dist/types/EditCustomEmoji.d.ts +7 -5
  37. package/dist/types/EditSite.d.ts +4 -4
  38. package/dist/types/ExportDataResponse.d.ts +13 -0
  39. package/dist/types/FederatedInstanceView.d.ts +12 -0
  40. package/dist/types/FederationAllowList.d.ts +4 -0
  41. package/dist/types/FederationBlockList.d.ts +0 -2
  42. package/dist/types/FederationBlockList.js +1 -0
  43. package/dist/types/FederationMode.d.ts +1 -1
  44. package/dist/types/FederationQueueState.d.ts +18 -0
  45. package/dist/types/GetComments.d.ts +0 -1
  46. package/dist/types/GetFederatedInstances.d.ts +8 -0
  47. package/dist/types/GetFederatedInstancesKind.d.ts +1 -0
  48. package/dist/types/GetModlog.d.ts +2 -3
  49. package/dist/types/GetMultiCommunity.d.ts +2 -1
  50. package/dist/types/GetPersonDetailsResponse.d.ts +2 -0
  51. package/dist/types/GetPosts.d.ts +1 -1
  52. package/dist/types/GetSiteResponse.d.ts +6 -0
  53. package/dist/types/HideCommunity.d.ts +1 -1
  54. package/dist/types/InstanceActions.d.ts +6 -2
  55. package/dist/types/LemmyErrorType.d.ts +23 -147
  56. package/dist/types/LikeType.d.ts +1 -1
  57. package/dist/types/LinkMetadata.d.ts +4 -0
  58. package/dist/types/ListCommentLikes.d.ts +0 -1
  59. package/dist/types/ListCommunities.d.ts +0 -1
  60. package/dist/types/ListCommunityPendingFollows.d.ts +1 -2
  61. package/dist/types/ListMedia.d.ts +0 -1
  62. package/dist/types/ListMultiCommunities.d.ts +12 -1
  63. package/dist/types/{ListInbox.d.ts → ListNotifications.d.ts} +3 -4
  64. package/dist/types/ListPersonContent.d.ts +0 -1
  65. package/dist/types/ListPersonHidden.d.ts +0 -1
  66. package/dist/types/ListPersonLiked.d.ts +0 -1
  67. package/dist/types/ListPersonRead.d.ts +0 -1
  68. package/dist/types/ListPersonSaved.d.ts +0 -1
  69. package/dist/types/ListPostLikes.d.ts +0 -1
  70. package/dist/types/ListRegistrationApplications.d.ts +0 -1
  71. package/dist/types/ListReports.d.ts +0 -1
  72. package/dist/types/ListTaglines.d.ts +0 -1
  73. package/dist/types/ListingType.d.ts +1 -1
  74. package/dist/types/LocalSite.d.ts +1 -6
  75. package/dist/types/LocalUser.d.ts +11 -13
  76. package/dist/types/LocalUserView.d.ts +1 -0
  77. package/dist/types/LockComment.d.ts +9 -0
  78. package/dist/types/LockPost.d.ts +1 -1
  79. package/dist/types/Login.d.ts +4 -0
  80. package/dist/types/MarkManyPostsAsRead.d.ts +1 -0
  81. package/dist/types/MarkNotificationAsRead.d.ts +8 -0
  82. package/dist/types/ModEditPost.d.ts +10 -0
  83. package/dist/types/Modlog.d.ts +10 -0
  84. package/dist/types/ModlogId.d.ts +1 -0
  85. package/dist/types/ModlogKind.d.ts +4 -0
  86. package/dist/types/ModlogView.d.ts +15 -0
  87. package/dist/types/MultiCommunity.d.ts +3 -0
  88. package/dist/types/MultiCommunityEntry.d.ts +6 -0
  89. package/dist/types/MultiCommunityListingType.d.ts +4 -0
  90. package/dist/types/MultiCommunityResponse.d.ts +4 -0
  91. package/dist/types/MultiCommunitySortType.d.ts +1 -0
  92. package/dist/types/MultiCommunityView.d.ts +2 -0
  93. package/dist/types/MyUserInfo.d.ts +4 -1
  94. package/dist/types/Notification.d.ts +18 -0
  95. package/dist/types/NotificationData.d.ts +13 -0
  96. package/dist/types/NotificationDataType.d.ts +4 -0
  97. package/dist/types/NotificationId.d.ts +1 -0
  98. package/dist/types/NotificationType.d.ts +4 -0
  99. package/dist/types/NotificationView.d.ts +6 -0
  100. package/dist/types/OpenGraphData.d.ts +4 -0
  101. package/dist/types/PagedResponse.d.ts +11 -0
  102. package/dist/types/PaginationCursor.d.ts +5 -1
  103. package/dist/types/PendingFollowerView.d.ts +9 -0
  104. package/dist/types/PersonActions.d.ts +12 -0
  105. package/dist/types/PersonContentCombinedView.d.ts +2 -2
  106. package/dist/types/PersonContentType.d.ts +1 -1
  107. package/dist/types/PersonLikedCombinedView.d.ts +2 -2
  108. package/dist/types/PersonResponse.d.ts +7 -0
  109. package/dist/types/PersonSavedCombinedView.d.ts +2 -2
  110. package/dist/types/PersonView.d.ts +2 -1
  111. package/dist/types/PluginMetadata.d.ts +2 -2
  112. package/dist/types/Post.d.ts +6 -4
  113. package/dist/types/PostActions.d.ts +13 -11
  114. package/dist/types/PostActions.js +0 -1
  115. package/dist/types/PostFeatureType.d.ts +1 -1
  116. package/dist/types/PostListingMode.d.ts +1 -1
  117. package/dist/types/PostNotificationsMode.d.ts +4 -0
  118. package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
  119. package/dist/types/PostReportView.d.ts +5 -0
  120. package/dist/types/PostSortType.d.ts +1 -1
  121. package/dist/types/PostView.d.ts +2 -2
  122. package/dist/types/PrivateMessage.d.ts +0 -1
  123. package/dist/types/PrivateMessageReportView.d.ts +3 -0
  124. package/dist/types/PurgeComment.d.ts +1 -1
  125. package/dist/types/PurgeCommunity.d.ts +1 -1
  126. package/dist/types/PurgePerson.d.ts +1 -1
  127. package/dist/types/PurgePost.d.ts +1 -1
  128. package/dist/types/ReadableFederationState.d.ts +1 -1
  129. package/dist/types/Register.d.ts +4 -0
  130. package/dist/types/RegistrationApplication.d.ts +1 -0
  131. package/dist/types/RegistrationMode.d.ts +1 -1
  132. package/dist/types/RemoveComment.d.ts +1 -1
  133. package/dist/types/RemoveCommunity.d.ts +1 -1
  134. package/dist/types/RemovePost.d.ts +1 -1
  135. package/dist/types/ReportCombinedView.d.ts +4 -4
  136. package/dist/types/ReportType.d.ts +1 -1
  137. package/dist/types/SaveUserSettings.d.ts +9 -5
  138. package/dist/types/Search.d.ts +4 -1
  139. package/dist/types/SearchCombinedView.d.ts +5 -5
  140. package/dist/types/SearchResponse.d.ts +11 -1
  141. package/dist/types/SearchSortType.d.ts +1 -1
  142. package/dist/types/SearchType.d.ts +1 -1
  143. package/dist/types/Tag.d.ts +6 -14
  144. package/dist/types/TagsView.d.ts +1 -1
  145. package/dist/types/UntranslatedError.d.ts +14 -0
  146. package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
  147. package/dist/types/UpdateCommunityTag.d.ts +3 -2
  148. package/dist/types/UpdatePostNotifications.d.ts +9 -0
  149. package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
  150. package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
  151. package/dist/types/UserSettingsBackup.d.ts +29 -0
  152. package/dist/types/VoteShow.d.ts +1 -1
  153. package/dist/types/VoteView.d.ts +5 -1
  154. package/package.json +7 -6
  155. package/dist/types/AdminAllowInstance.d.ts +0 -11
  156. package/dist/types/AdminAllowInstanceId.d.ts +0 -1
  157. package/dist/types/AdminAllowInstanceView.d.ts +0 -11
  158. package/dist/types/AdminBlockInstance.d.ts +0 -12
  159. package/dist/types/AdminBlockInstanceId.d.ts +0 -1
  160. package/dist/types/AdminBlockInstanceView.d.ts +0 -11
  161. package/dist/types/AdminListUsersResponse.d.ts +0 -10
  162. package/dist/types/AdminPurgeComment.d.ts +0 -13
  163. package/dist/types/AdminPurgeCommentId.d.ts +0 -1
  164. package/dist/types/AdminPurgeCommentView.d.ts +0 -11
  165. package/dist/types/AdminPurgeCommunity.d.ts +0 -11
  166. package/dist/types/AdminPurgeCommunityId.d.ts +0 -1
  167. package/dist/types/AdminPurgeCommunityView.d.ts +0 -9
  168. package/dist/types/AdminPurgePerson.d.ts +0 -11
  169. package/dist/types/AdminPurgePersonId.d.ts +0 -1
  170. package/dist/types/AdminPurgePersonView.d.ts +0 -9
  171. package/dist/types/AdminPurgePost.d.ts +0 -13
  172. package/dist/types/AdminPurgePostId.d.ts +0 -1
  173. package/dist/types/AdminPurgePostView.d.ts +0 -11
  174. package/dist/types/BanFromCommunityResponse.d.ts +0 -8
  175. package/dist/types/BanPersonResponse.d.ts +0 -8
  176. package/dist/types/BlockCommunityResponse.d.ts +0 -8
  177. package/dist/types/BlockPersonResponse.d.ts +0 -8
  178. package/dist/types/CommentReply.d.ts +0 -13
  179. package/dist/types/CommentReplyId.d.ts +0 -4
  180. package/dist/types/CommentReplyView.d.ts +0 -31
  181. package/dist/types/FederatedInstances.d.ts +0 -9
  182. package/dist/types/FederationError.d.ts +0 -10
  183. package/dist/types/GetCommentsResponse.d.ts +0 -10
  184. package/dist/types/GetCommentsSlimResponse.d.ts +0 -10
  185. package/dist/types/GetCommunityPendingFollowsCount.d.ts +0 -4
  186. package/dist/types/GetFederatedInstancesResponse.d.ts +0 -10
  187. package/dist/types/GetModlogResponse.d.ts +0 -13
  188. package/dist/types/GetModlogResponse.js +0 -2
  189. package/dist/types/GetPostsResponse.d.ts +0 -13
  190. package/dist/types/GetPostsResponse.js +0 -2
  191. package/dist/types/InboxCombinedView.d.ts +0 -13
  192. package/dist/types/InboxCombinedView.js +0 -2
  193. package/dist/types/InboxDataType.d.ts +0 -4
  194. package/dist/types/ListCommentLikesResponse.d.ts +0 -13
  195. package/dist/types/ListCommentLikesResponse.js +0 -2
  196. package/dist/types/ListCommunitiesResponse.d.ts +0 -13
  197. package/dist/types/ListCommunitiesResponse.js +0 -2
  198. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +0 -10
  199. package/dist/types/ListCommunityPendingFollowsResponse.js +0 -2
  200. package/dist/types/ListInbox.js +0 -2
  201. package/dist/types/ListInboxResponse.d.ts +0 -13
  202. package/dist/types/ListInboxResponse.js +0 -2
  203. package/dist/types/ListMediaResponse.d.ts +0 -10
  204. package/dist/types/ListMediaResponse.js +0 -2
  205. package/dist/types/ListMultiCommunitiesResponse.d.ts +0 -4
  206. package/dist/types/ListMultiCommunitiesResponse.js +0 -2
  207. package/dist/types/ListPersonContentResponse.d.ts +0 -13
  208. package/dist/types/ListPersonContentResponse.js +0 -2
  209. package/dist/types/ListPersonHiddenResponse.d.ts +0 -13
  210. package/dist/types/ListPersonHiddenResponse.js +0 -2
  211. package/dist/types/ListPersonLikedResponse.d.ts +0 -13
  212. package/dist/types/ListPersonLikedResponse.js +0 -2
  213. package/dist/types/ListPersonReadResponse.d.ts +0 -13
  214. package/dist/types/ListPersonReadResponse.js +0 -2
  215. package/dist/types/ListPersonSavedResponse.d.ts +0 -13
  216. package/dist/types/ListPersonSavedResponse.js +0 -2
  217. package/dist/types/ListPostLikesResponse.d.ts +0 -13
  218. package/dist/types/ListPostLikesResponse.js +0 -2
  219. package/dist/types/ListRegistrationApplicationsResponse.d.ts +0 -13
  220. package/dist/types/ListRegistrationApplicationsResponse.js +0 -2
  221. package/dist/types/ListReportsResponse.d.ts +0 -13
  222. package/dist/types/ListReportsResponse.js +0 -2
  223. package/dist/types/ListTaglinesResponse.d.ts +0 -13
  224. package/dist/types/ListTaglinesResponse.js +0 -2
  225. package/dist/types/MarkCommentReplyAsRead.d.ts +0 -8
  226. package/dist/types/MarkCommentReplyAsRead.js +0 -2
  227. package/dist/types/MarkPersonCommentMentionAsRead.d.ts +0 -8
  228. package/dist/types/MarkPersonCommentMentionAsRead.js +0 -2
  229. package/dist/types/MarkPersonPostMentionAsRead.d.ts +0 -8
  230. package/dist/types/MarkPersonPostMentionAsRead.js +0 -2
  231. package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -8
  232. package/dist/types/MarkPrivateMessageAsRead.js +0 -2
  233. package/dist/types/ModAdd.d.ts +0 -12
  234. package/dist/types/ModAdd.js +0 -2
  235. package/dist/types/ModAddCommunity.d.ts +0 -14
  236. package/dist/types/ModAddCommunity.js +0 -2
  237. package/dist/types/ModAddCommunityId.d.ts +0 -1
  238. package/dist/types/ModAddCommunityView.d.ts +0 -12
  239. package/dist/types/ModAddCommunityView.js +0 -2
  240. package/dist/types/ModAddId.d.ts +0 -1
  241. package/dist/types/ModAddView.d.ts +0 -10
  242. package/dist/types/ModAddView.js +0 -2
  243. package/dist/types/ModBan.d.ts +0 -16
  244. package/dist/types/ModBan.js +0 -2
  245. package/dist/types/ModBanFromCommunity.d.ts +0 -16
  246. package/dist/types/ModBanFromCommunity.js +0 -2
  247. package/dist/types/ModBanFromCommunityId.d.ts +0 -1
  248. package/dist/types/ModBanFromCommunityView.d.ts +0 -12
  249. package/dist/types/ModBanFromCommunityView.js +0 -2
  250. package/dist/types/ModBanId.d.ts +0 -1
  251. package/dist/types/ModBanId.js +0 -3
  252. package/dist/types/ModBanView.d.ts +0 -10
  253. package/dist/types/ModBanView.js +0 -2
  254. package/dist/types/ModChangeCommunityVisibility.d.ts +0 -11
  255. package/dist/types/ModChangeCommunityVisibility.js +0 -2
  256. package/dist/types/ModChangeCommunityVisibilityId.d.ts +0 -1
  257. package/dist/types/ModChangeCommunityVisibilityId.js +0 -3
  258. package/dist/types/ModChangeCommunityVisibilityView.d.ts +0 -11
  259. package/dist/types/ModChangeCommunityVisibilityView.js +0 -2
  260. package/dist/types/ModFeaturePost.d.ts +0 -14
  261. package/dist/types/ModFeaturePost.js +0 -2
  262. package/dist/types/ModFeaturePostId.d.ts +0 -1
  263. package/dist/types/ModFeaturePostId.js +0 -3
  264. package/dist/types/ModFeaturePostView.d.ts +0 -14
  265. package/dist/types/ModFeaturePostView.js +0 -2
  266. package/dist/types/ModLockPost.d.ts +0 -14
  267. package/dist/types/ModLockPost.js +0 -2
  268. package/dist/types/ModLockPostId.d.ts +0 -1
  269. package/dist/types/ModLockPostId.js +0 -3
  270. package/dist/types/ModLockPostView.d.ts +0 -14
  271. package/dist/types/ModLockPostView.js +0 -2
  272. package/dist/types/ModRemoveComment.d.ts +0 -14
  273. package/dist/types/ModRemoveComment.js +0 -2
  274. package/dist/types/ModRemoveCommentId.d.ts +0 -1
  275. package/dist/types/ModRemoveCommentId.js +0 -3
  276. package/dist/types/ModRemoveCommentView.d.ts +0 -16
  277. package/dist/types/ModRemoveCommentView.js +0 -2
  278. package/dist/types/ModRemoveCommunity.d.ts +0 -14
  279. package/dist/types/ModRemoveCommunity.js +0 -2
  280. package/dist/types/ModRemoveCommunityId.d.ts +0 -1
  281. package/dist/types/ModRemoveCommunityId.js +0 -3
  282. package/dist/types/ModRemoveCommunityView.d.ts +0 -11
  283. package/dist/types/ModRemoveCommunityView.js +0 -2
  284. package/dist/types/ModRemovePost.d.ts +0 -14
  285. package/dist/types/ModRemovePost.js +0 -2
  286. package/dist/types/ModRemovePostId.d.ts +0 -1
  287. package/dist/types/ModRemovePostId.js +0 -3
  288. package/dist/types/ModRemovePostView.d.ts +0 -14
  289. package/dist/types/ModRemovePostView.js +0 -2
  290. package/dist/types/ModTransferCommunity.d.ts +0 -13
  291. package/dist/types/ModTransferCommunity.js +0 -2
  292. package/dist/types/ModTransferCommunityId.d.ts +0 -1
  293. package/dist/types/ModTransferCommunityId.js +0 -3
  294. package/dist/types/ModTransferCommunityView.d.ts +0 -12
  295. package/dist/types/ModTransferCommunityView.js +0 -2
  296. package/dist/types/ModlogActionType.d.ts +0 -4
  297. package/dist/types/ModlogActionType.js +0 -3
  298. package/dist/types/ModlogCombinedView.d.ts +0 -52
  299. package/dist/types/ModlogCombinedView.js +0 -2
  300. package/dist/types/PersonCommentMention.d.ts +0 -13
  301. package/dist/types/PersonCommentMention.js +0 -2
  302. package/dist/types/PersonCommentMentionId.d.ts +0 -4
  303. package/dist/types/PersonCommentMentionId.js +0 -3
  304. package/dist/types/PersonCommentMentionView.d.ts +0 -29
  305. package/dist/types/PersonCommentMentionView.js +0 -2
  306. package/dist/types/PersonPostMention.d.ts +0 -13
  307. package/dist/types/PersonPostMention.js +0 -2
  308. package/dist/types/PersonPostMentionId.d.ts +0 -4
  309. package/dist/types/PersonPostMentionId.js +0 -3
  310. package/dist/types/PersonPostMentionView.d.ts +0 -31
  311. package/dist/types/PersonPostMentionView.js +0 -2
  312. package/dist/types/UserBlockInstanceParams.js +0 -2
  313. /package/dist/types/{AdminAllowInstanceId.js → CommunityNotificationsMode.js} +0 -0
  314. /package/dist/types/{AdminAllowInstance.js → ExportDataResponse.js} +0 -0
  315. /package/dist/types/{AdminAllowInstanceView.js → FederatedInstanceView.js} +0 -0
  316. /package/dist/types/{AdminBlockInstanceId.js → FederationAllowList.js} +0 -0
  317. /package/dist/types/{AdminBlockInstance.js → FederationQueueState.js} +0 -0
  318. /package/dist/types/{AdminBlockInstanceView.js → GetFederatedInstances.js} +0 -0
  319. /package/dist/types/{AdminPurgeCommentId.js → GetFederatedInstancesKind.js} +0 -0
  320. /package/dist/types/{AdminListUsersResponse.js → ListNotifications.js} +0 -0
  321. /package/dist/types/{AdminPurgeComment.js → LockComment.js} +0 -0
  322. /package/dist/types/{AdminPurgeCommentView.js → MarkNotificationAsRead.js} +0 -0
  323. /package/dist/types/{AdminPurgeCommunity.js → ModEditPost.js} +0 -0
  324. /package/dist/types/{AdminPurgeCommunityView.js → Modlog.js} +0 -0
  325. /package/dist/types/{AdminPurgeCommunityId.js → ModlogId.js} +0 -0
  326. /package/dist/types/{AdminPurgePersonId.js → ModlogKind.js} +0 -0
  327. /package/dist/types/{AdminPurgePerson.js → ModlogView.js} +0 -0
  328. /package/dist/types/{AdminPurgePersonView.js → MultiCommunityEntry.js} +0 -0
  329. /package/dist/types/{AdminPurgePostId.js → MultiCommunityListingType.js} +0 -0
  330. /package/dist/types/{AdminPurgePost.js → MultiCommunityResponse.js} +0 -0
  331. /package/dist/types/{CommentReplyId.js → MultiCommunitySortType.js} +0 -0
  332. /package/dist/types/{AdminPurgePostView.js → Notification.js} +0 -0
  333. /package/dist/types/{BanFromCommunityResponse.js → NotificationData.js} +0 -0
  334. /package/dist/types/{FederationError.js → NotificationDataType.js} +0 -0
  335. /package/dist/types/{InboxDataType.js → NotificationId.js} +0 -0
  336. /package/dist/types/{ModAddCommunityId.js → NotificationType.js} +0 -0
  337. /package/dist/types/{BanPersonResponse.js → NotificationView.js} +0 -0
  338. /package/dist/types/{BlockCommunityResponse.js → PagedResponse.js} +0 -0
  339. /package/dist/types/{BlockPersonResponse.js → PendingFollowerView.js} +0 -0
  340. /package/dist/types/{CommentReply.js → PersonResponse.js} +0 -0
  341. /package/dist/types/{ModAddId.js → PostNotificationsMode.js} +0 -0
  342. /package/dist/types/{CommentReplyView.js → PostOrCommentOrPrivateMessage.js} +0 -0
  343. /package/dist/types/{ModBanFromCommunityId.js → UntranslatedError.js} +0 -0
  344. /package/dist/types/{FederatedInstances.js → UpdateCommunityNotifications.js} +0 -0
  345. /package/dist/types/{GetCommentsResponse.js → UpdatePostNotifications.js} +0 -0
  346. /package/dist/types/{GetCommentsSlimResponse.js → UserBlockInstanceCommunitiesParams.js} +0 -0
  347. /package/dist/types/{GetCommunityPendingFollowsCount.js → UserBlockInstancePersonsParams.js} +0 -0
  348. /package/dist/types/{GetFederatedInstancesResponse.js → UserSettingsBackup.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -5,47 +5,22 @@ export { AddAdmin } from "./types/AddAdmin";
5
5
  export { AddAdminResponse } from "./types/AddAdminResponse";
6
6
  export { AddModToCommunity } from "./types/AddModToCommunity";
7
7
  export { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
8
- export { AdminAllowInstance } from "./types/AdminAllowInstance";
9
- export { AdminAllowInstanceId } from "./types/AdminAllowInstanceId";
10
8
  export { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
11
- export { AdminAllowInstanceView } from "./types/AdminAllowInstanceView";
12
- export { AdminBlockInstance } from "./types/AdminBlockInstance";
13
- export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
14
9
  export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
15
- export { AdminBlockInstanceView } from "./types/AdminBlockInstanceView";
16
10
  export { AdminListUsers } from "./types/AdminListUsers";
17
- export { AdminListUsersResponse } from "./types/AdminListUsersResponse";
18
- export { AdminPurgeComment } from "./types/AdminPurgeComment";
19
- export { AdminPurgeCommentId } from "./types/AdminPurgeCommentId";
20
- export { AdminPurgeCommentView } from "./types/AdminPurgeCommentView";
21
- export { AdminPurgeCommunity } from "./types/AdminPurgeCommunity";
22
- export { AdminPurgeCommunityId } from "./types/AdminPurgeCommunityId";
23
- export { AdminPurgeCommunityView } from "./types/AdminPurgeCommunityView";
24
- export { AdminPurgePerson } from "./types/AdminPurgePerson";
25
- export { AdminPurgePersonId } from "./types/AdminPurgePersonId";
26
- export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
27
- export { AdminPurgePost } from "./types/AdminPurgePost";
28
- export { AdminPurgePostId } from "./types/AdminPurgePostId";
29
- export { AdminPurgePostView } from "./types/AdminPurgePostView";
11
+ export { AllLemmyErrors } from "./types/AllLemmyErrors";
30
12
  export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
31
13
  export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
32
14
  export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
33
15
  export { BanFromCommunity } from "./types/BanFromCommunity";
34
- export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
35
16
  export { BanPerson } from "./types/BanPerson";
36
- export { BanPersonResponse } from "./types/BanPersonResponse";
37
17
  export { BlockCommunity } from "./types/BlockCommunity";
38
- export { BlockCommunityResponse } from "./types/BlockCommunityResponse";
39
18
  export { BlockPerson } from "./types/BlockPerson";
40
- export { BlockPersonResponse } from "./types/BlockPersonResponse";
41
19
  export { CaptchaResponse } from "./types/CaptchaResponse";
42
20
  export { ChangePassword } from "./types/ChangePassword";
43
21
  export { Comment } from "./types/Comment";
44
22
  export { CommentActions } from "./types/CommentActions";
45
23
  export { CommentId } from "./types/CommentId";
46
- export { CommentReply } from "./types/CommentReply";
47
- export { CommentReplyId } from "./types/CommentReplyId";
48
- export { CommentReplyView } from "./types/CommentReplyView";
49
24
  export { CommentReport } from "./types/CommentReport";
50
25
  export { CommentReportId } from "./types/CommentReportId";
51
26
  export { CommentReportResponse } from "./types/CommentReportResponse";
@@ -61,6 +36,7 @@ export { CommunityFollowerView } from "./types/CommunityFollowerView";
61
36
  export { CommunityId } from "./types/CommunityId";
62
37
  export { CommunityIdQuery } from "./types/CommunityIdQuery";
63
38
  export { CommunityModeratorView } from "./types/CommunityModeratorView";
39
+ export { CommunityNotificationsMode } from "./types/CommunityNotificationsMode";
64
40
  export { CommunityReport } from "./types/CommunityReport";
65
41
  export { CommunityReportId } from "./types/CommunityReportId";
66
42
  export { CommunityReportResponse } from "./types/CommunityReportResponse";
@@ -110,26 +86,25 @@ export { EditOAuthProvider } from "./types/EditOAuthProvider";
110
86
  export { EditPost } from "./types/EditPost";
111
87
  export { EditPrivateMessage } from "./types/EditPrivateMessage";
112
88
  export { EditSite } from "./types/EditSite";
89
+ export { ExportDataResponse } from "./types/ExportDataResponse";
113
90
  export { FeaturePost } from "./types/FeaturePost";
114
- export { FederatedInstances } from "./types/FederatedInstances";
91
+ export { FederatedInstanceView } from "./types/FederatedInstanceView";
92
+ export { FederationAllowList } from "./types/FederationAllowList";
115
93
  export { FederationBlockList } from "./types/FederationBlockList";
116
- export { FederationError } from "./types/FederationError";
117
94
  export { FederationMode } from "./types/FederationMode";
95
+ export { FederationQueueState } from "./types/FederationQueueState";
118
96
  export { FollowCommunity } from "./types/FollowCommunity";
119
97
  export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
120
98
  export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
121
99
  export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
122
100
  export { GetComment } from "./types/GetComment";
123
101
  export { GetComments } from "./types/GetComments";
124
- export { GetCommentsResponse } from "./types/GetCommentsResponse";
125
- export { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
126
102
  export { GetCommunity } from "./types/GetCommunity";
127
- export { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
128
103
  export { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
129
104
  export { GetCommunityResponse } from "./types/GetCommunityResponse";
130
- export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
105
+ export { GetFederatedInstances } from "./types/GetFederatedInstances";
106
+ export { GetFederatedInstancesKind } from "./types/GetFederatedInstancesKind";
131
107
  export { GetModlog } from "./types/GetModlog";
132
- export { GetModlogResponse } from "./types/GetModlogResponse";
133
108
  export { GetMultiCommunity } from "./types/GetMultiCommunity";
134
109
  export { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
135
110
  export { GetPersonDetails } from "./types/GetPersonDetails";
@@ -137,7 +112,6 @@ export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
137
112
  export { GetPost } from "./types/GetPost";
138
113
  export { GetPostResponse } from "./types/GetPostResponse";
139
114
  export { GetPosts } from "./types/GetPosts";
140
- export { GetPostsResponse } from "./types/GetPostsResponse";
141
115
  export { GetRandomCommunity } from "./types/GetRandomCommunity";
142
116
  export { GetRegistrationApplication } from "./types/GetRegistrationApplication";
143
117
  export { GetReportCount } from "./types/GetReportCount";
@@ -152,8 +126,6 @@ export { HidePost } from "./types/HidePost";
152
126
  export { ImageDetails } from "./types/ImageDetails";
153
127
  export { ImageGetParams } from "./types/ImageGetParams";
154
128
  export { ImageProxyParams } from "./types/ImageProxyParams";
155
- export { InboxCombinedView } from "./types/InboxCombinedView";
156
- export { InboxDataType } from "./types/InboxDataType";
157
129
  export { Instance } from "./types/Instance";
158
130
  export { InstanceActions } from "./types/InstanceActions";
159
131
  export { InstanceId } from "./types/InstanceId";
@@ -164,38 +136,23 @@ export { LemmyErrorType } from "./types/LemmyErrorType";
164
136
  export { LikeType } from "./types/LikeType";
165
137
  export { LinkMetadata } from "./types/LinkMetadata";
166
138
  export { ListCommentLikes } from "./types/ListCommentLikes";
167
- export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
168
139
  export { ListCommunities } from "./types/ListCommunities";
169
- export { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
170
140
  export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
171
- export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
172
141
  export { ListCustomEmojis } from "./types/ListCustomEmojis";
173
142
  export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
174
- export { ListInbox } from "./types/ListInbox";
175
- export { ListInboxResponse } from "./types/ListInboxResponse";
176
143
  export { ListLoginsResponse } from "./types/ListLoginsResponse";
177
144
  export { ListMedia } from "./types/ListMedia";
178
- export { ListMediaResponse } from "./types/ListMediaResponse";
179
145
  export { ListMultiCommunities } from "./types/ListMultiCommunities";
180
- export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
146
+ export { ListNotifications } from "./types/ListNotifications";
181
147
  export { ListPersonContent } from "./types/ListPersonContent";
182
- export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
183
148
  export { ListPersonHidden } from "./types/ListPersonHidden";
184
- export { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
185
149
  export { ListPersonLiked } from "./types/ListPersonLiked";
186
- export { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
187
150
  export { ListPersonRead } from "./types/ListPersonRead";
188
- export { ListPersonReadResponse } from "./types/ListPersonReadResponse";
189
151
  export { ListPersonSaved } from "./types/ListPersonSaved";
190
- export { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
191
152
  export { ListPostLikes } from "./types/ListPostLikes";
192
- export { ListPostLikesResponse } from "./types/ListPostLikesResponse";
193
153
  export { ListRegistrationApplications } from "./types/ListRegistrationApplications";
194
- export { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
195
154
  export { ListReports } from "./types/ListReports";
196
- export { ListReportsResponse } from "./types/ListReportsResponse";
197
155
  export { ListTaglines } from "./types/ListTaglines";
198
- export { ListTaglinesResponse } from "./types/ListTaglinesResponse";
199
156
  export { ListingType } from "./types/ListingType";
200
157
  export { LocalImage } from "./types/LocalImage";
201
158
  export { LocalImageView } from "./types/LocalImageView";
@@ -206,77 +163,52 @@ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
206
163
  export { LocalUser } from "./types/LocalUser";
207
164
  export { LocalUserId } from "./types/LocalUserId";
208
165
  export { LocalUserView } from "./types/LocalUserView";
166
+ export { LockComment } from "./types/LockComment";
209
167
  export { LockPost } from "./types/LockPost";
210
168
  export { Login } from "./types/Login";
211
169
  export { LoginResponse } from "./types/LoginResponse";
212
170
  export { LoginToken } from "./types/LoginToken";
213
- export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
214
171
  export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
215
- export { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
216
- export { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
172
+ export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
217
173
  export { MarkPostAsRead } from "./types/MarkPostAsRead";
218
- export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
219
- export { ModAdd } from "./types/ModAdd";
220
- export { ModAddCommunity } from "./types/ModAddCommunity";
221
- export { ModAddCommunityId } from "./types/ModAddCommunityId";
222
- export { ModAddCommunityView } from "./types/ModAddCommunityView";
223
- export { ModAddId } from "./types/ModAddId";
224
- export { ModAddView } from "./types/ModAddView";
225
- export { ModBan } from "./types/ModBan";
226
- export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
227
- export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
228
- export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
229
- export { ModBanId } from "./types/ModBanId";
230
- export { ModBanView } from "./types/ModBanView";
231
- export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
232
- export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
233
- export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
234
- export { ModFeaturePost } from "./types/ModFeaturePost";
235
- export { ModFeaturePostId } from "./types/ModFeaturePostId";
236
- export { ModFeaturePostView } from "./types/ModFeaturePostView";
237
- export { ModLockPost } from "./types/ModLockPost";
238
- export { ModLockPostId } from "./types/ModLockPostId";
239
- export { ModLockPostView } from "./types/ModLockPostView";
240
- export { ModRemoveComment } from "./types/ModRemoveComment";
241
- export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
242
- export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
243
- export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
244
- export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
245
- export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
246
- export { ModRemovePost } from "./types/ModRemovePost";
247
- export { ModRemovePostId } from "./types/ModRemovePostId";
248
- export { ModRemovePostView } from "./types/ModRemovePostView";
249
- export { ModTransferCommunity } from "./types/ModTransferCommunity";
250
- export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
251
- export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
252
- export { ModlogActionType } from "./types/ModlogActionType";
253
- export { ModlogCombinedView } from "./types/ModlogCombinedView";
174
+ export { ModEditPost } from "./types/ModEditPost";
175
+ export { Modlog } from "./types/Modlog";
176
+ export { ModlogId } from "./types/ModlogId";
177
+ export { ModlogKind } from "./types/ModlogKind";
178
+ export { ModlogView } from "./types/ModlogView";
254
179
  export { MultiCommunity } from "./types/MultiCommunity";
180
+ export { MultiCommunityEntry } from "./types/MultiCommunityEntry";
255
181
  export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
256
182
  export { MultiCommunityId } from "./types/MultiCommunityId";
183
+ export { MultiCommunityListingType } from "./types/MultiCommunityListingType";
184
+ export { MultiCommunityResponse } from "./types/MultiCommunityResponse";
185
+ export { MultiCommunitySortType } from "./types/MultiCommunitySortType";
257
186
  export { MultiCommunityView } from "./types/MultiCommunityView";
258
187
  export { MyUserInfo } from "./types/MyUserInfo";
259
188
  export { NotePerson } from "./types/NotePerson";
189
+ export { Notification } from "./types/Notification";
190
+ export { NotificationData } from "./types/NotificationData";
191
+ export { NotificationDataType } from "./types/NotificationDataType";
192
+ export { NotificationId } from "./types/NotificationId";
193
+ export { NotificationType } from "./types/NotificationType";
194
+ export { NotificationView } from "./types/NotificationView";
260
195
  export { OAuthAccount } from "./types/OAuthAccount";
261
196
  export { OAuthProvider } from "./types/OAuthProvider";
262
197
  export { OAuthProviderId } from "./types/OAuthProviderId";
263
198
  export { OpenGraphData } from "./types/OpenGraphData";
199
+ export { PagedResponse } from "./types/PagedResponse";
264
200
  export { PaginationCursor } from "./types/PaginationCursor";
265
201
  export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
266
202
  export { PasswordReset } from "./types/PasswordReset";
267
203
  export { PendingFollow } from "./types/PendingFollow";
204
+ export { PendingFollowerView } from "./types/PendingFollowerView";
268
205
  export { Person } from "./types/Person";
269
206
  export { PersonActions } from "./types/PersonActions";
270
- export { PersonCommentMention } from "./types/PersonCommentMention";
271
- export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
272
- export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
273
207
  export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
274
208
  export { PersonContentType } from "./types/PersonContentType";
275
209
  export { PersonId } from "./types/PersonId";
276
210
  export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
277
- export { PersonPostMention } from "./types/PersonPostMention";
278
- export { PersonPostMentionId } from "./types/PersonPostMentionId";
279
- export { PersonPostMentionView } from "./types/PersonPostMentionView";
211
+ export { PersonResponse } from "./types/PersonResponse";
280
212
  export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
281
213
  export { PersonView } from "./types/PersonView";
282
214
  export { PluginMetadata } from "./types/PluginMetadata";
@@ -285,6 +217,8 @@ export { PostActions } from "./types/PostActions";
285
217
  export { PostFeatureType } from "./types/PostFeatureType";
286
218
  export { PostId } from "./types/PostId";
287
219
  export { PostListingMode } from "./types/PostListingMode";
220
+ export { PostNotificationsMode } from "./types/PostNotificationsMode";
221
+ export { PostOrCommentOrPrivateMessage } from "./types/PostOrCommentOrPrivateMessage";
288
222
  export { PostReport } from "./types/PostReport";
289
223
  export { PostReportId } from "./types/PostReportId";
290
224
  export { PostReportResponse } from "./types/PostReportResponse";
@@ -344,13 +278,18 @@ export { TaglineId } from "./types/TaglineId";
344
278
  export { TaglineResponse } from "./types/TaglineResponse";
345
279
  export { TagsView } from "./types/TagsView";
346
280
  export { TransferCommunity } from "./types/TransferCommunity";
281
+ export { UntranslatedError } from "./types/UntranslatedError";
282
+ export { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
347
283
  export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
348
284
  export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
285
+ export { UpdatePostNotifications } from "./types/UpdatePostNotifications";
349
286
  export { UpdateTagline } from "./types/UpdateTagline";
350
287
  export { UpdateTotp } from "./types/UpdateTotp";
351
288
  export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
352
289
  export { UploadImageResponse } from "./types/UploadImageResponse";
353
- export { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
290
+ export { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
291
+ export { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
292
+ export { UserSettingsBackup } from "./types/UserSettingsBackup";
354
293
  export { VerifyEmail } from "./types/VerifyEmail";
355
294
  export { VoteShow } from "./types/VoteShow";
356
295
  export { VoteView } from "./types/VoteView";
package/dist/index.js CHANGED
@@ -14,4 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.AllLemmyErrors = void 0;
17
18
  __exportStar(require("./http"), exports);
19
+ var AllLemmyErrors_1 = require("./types/AllLemmyErrors");
20
+ Object.defineProperty(exports, "AllLemmyErrors", { enumerable: true, get: function () { return AllLemmyErrors_1.AllLemmyErrors; } });
@@ -4,7 +4,6 @@ import { DeleteImageParams } from "./types/DeleteImageParams";
4
4
  import { GetComment } from "./types/GetComment";
5
5
  import { GetComments } from "./types/GetComments";
6
6
  import { GetCommunity } from "./types/GetCommunity";
7
- import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
8
7
  import { GetModlog } from "./types/GetModlog";
9
8
  import { GetMultiCommunity } from "./types/GetMultiCommunity";
10
9
  import { GetPersonDetails } from "./types/GetPersonDetails";
@@ -18,7 +17,7 @@ import { ListCommentLikes } from "./types/ListCommentLikes";
18
17
  import { ListCommunities } from "./types/ListCommunities";
19
18
  import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
20
19
  import { ListCustomEmojis } from "./types/ListCustomEmojis";
21
- import { ListInbox } from "./types/ListInbox";
20
+ import { ListNotifications } from "./types/ListNotifications";
22
21
  import { ListMedia } from "./types/ListMedia";
23
22
  import { ListMultiCommunities } from "./types/ListMultiCommunities";
24
23
  import { ListPersonContent } from "./types/ListPersonContent";
@@ -32,6 +31,7 @@ import { ListReports } from "./types/ListReports";
32
31
  import { ListTaglines } from "./types/ListTaglines";
33
32
  import { ResolveObject } from "./types/ResolveObject";
34
33
  import { Search } from "./types/Search";
34
+ import { GetFederatedInstances } from "./types/GetFederatedInstances";
35
35
  export declare const VERSION = "v4";
36
36
  export interface UploadImage {
37
37
  image: File | Buffer;
@@ -48,8 +48,6 @@ export interface GetCommunityI extends GetCommunity {
48
48
  }
49
49
  export interface ListCommunitiesI extends ListCommunities {
50
50
  }
51
- export interface GetCommunityPendingFollowsCountI extends GetCommunityPendingFollowsCount {
52
- }
53
51
  export interface ListCommunityPendingFollowsI extends ListCommunityPendingFollows {
54
52
  }
55
53
  export interface GetRandomCommunityI extends GetRandomCommunity {
@@ -74,7 +72,7 @@ export interface ListPersonContentI extends ListPersonContent {
74
72
  }
75
73
  export interface GetReportCountI extends GetReportCount {
76
74
  }
77
- export interface ListInboxI extends ListInbox {
75
+ export interface ListNotificationsI extends ListNotifications {
78
76
  }
79
77
  export interface ListPersonSavedI extends ListPersonSaved {
80
78
  }
@@ -104,3 +102,5 @@ export interface ListMultiCommunitiesI extends ListMultiCommunities {
104
102
  }
105
103
  export interface GetMultiCommunityI extends GetMultiCommunity {
106
104
  }
105
+ export interface GetFederatedInstancesI extends GetFederatedInstances {
106
+ }
@@ -1,5 +1,5 @@
1
1
  export type AdminAllowInstanceParams = {
2
2
  instance: string;
3
3
  allow: boolean;
4
- reason?: string;
4
+ reason: string;
5
5
  };
@@ -1,6 +1,11 @@
1
1
  export type AdminBlockInstanceParams = {
2
2
  instance: string;
3
3
  block: boolean;
4
- reason?: string;
5
- expires_at?: string;
4
+ reason: string;
5
+ /**
6
+ * A time that the block will expire, in unix epoch seconds.
7
+ *
8
+ * An i64 unix timestamp is used for a simpler API client implementation.
9
+ */
10
+ expires_at?: number;
6
11
  };
@@ -2,6 +2,5 @@ import type { PaginationCursor } from "./PaginationCursor";
2
2
  export type AdminListUsers = {
3
3
  banned_only?: boolean;
4
4
  page_cursor?: PaginationCursor;
5
- page_back?: boolean;
6
5
  limit?: number;
7
6
  };
@@ -0,0 +1 @@
1
+ export declare const AllLemmyErrors: string[];
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AllLemmyErrors = void 0;
4
+ exports.AllLemmyErrors = [
5
+ "block_keyword_too_short",
6
+ "block_keyword_too_long",
7
+ "couldnt_update",
8
+ "couldnt_create",
9
+ "report_reason_required",
10
+ "report_too_long",
11
+ "not_a_moderator",
12
+ "not_an_admin",
13
+ "cant_block_yourself",
14
+ "cant_note_yourself",
15
+ "cant_block_admin",
16
+ "passwords_do_not_match",
17
+ "email_not_verified",
18
+ "email_required",
19
+ "cannot_leave_admin",
20
+ "cannot_leave_mod",
21
+ "cannot_leave_mod",
22
+ "cannot_leave_mod",
23
+ "pictrs_api_key_not_provided",
24
+ "pictrs_api_key_not_provided",
25
+ "no_content_type_header",
26
+ "not_an_image_type",
27
+ "image_upload_disabled",
28
+ "not_a_mod_or_admin",
29
+ "not_top_mod",
30
+ "not_logged_in",
31
+ "not_higher_mod",
32
+ "not_higher_admin",
33
+ "site_ban",
34
+ "deleted",
35
+ "person_is_blocked",
36
+ "community_is_blocked",
37
+ "instance_is_blocked",
38
+ "instance_is_private",
39
+ "invalid_password",
40
+ "site_description_length_overflow",
41
+ "honeypot_failed",
42
+ "registration_application_is_pending",
43
+ "locked",
44
+ "max_comment_depth_reached",
45
+ "no_comment_edit_allowed",
46
+ "only_admins_can_create_communities",
47
+ "already_exists",
48
+ "language_not_allowed",
49
+ "no_post_edit_allowed",
50
+ "nsfw_not_allowed",
51
+ "edit_private_message_not_allowed",
52
+ "application_question_required",
53
+ "invalid_default_post_listing_type",
54
+ "registration_closed",
55
+ "registration_application_answer_required",
56
+ "registration_username_required",
57
+ "email_already_taken",
58
+ "username_already_taken",
59
+ "person_is_banned_from_community",
60
+ "no_id_given",
61
+ "incorrect_login",
62
+ "no_email_setup",
63
+ "local_site_not_setup",
64
+ "local_site_not_setup",
65
+ "invalid_name",
66
+ "invalid_code_verifier",
67
+ "invalid_display_name",
68
+ "invalid_matrix_id",
69
+ "invalid_post_title",
70
+ "invalid_body_field",
71
+ "bio_length_overflow",
72
+ "alt_text_length_overflow",
73
+ "couldnt_parse_totp_secret",
74
+ "couldnt_generate_totp",
75
+ "missing_totp_token",
76
+ "missing_totp_secret",
77
+ "incorrect_totp_token",
78
+ "totp_already_enabled",
79
+ "blocked_url",
80
+ "invalid_url",
81
+ "email_send_failed",
82
+ "slurs",
83
+ "slurs",
84
+ "site_name_required",
85
+ "site_name_length_overflow",
86
+ "permissive_regex",
87
+ "invalid_regex",
88
+ "captcha_incorrect",
89
+ "couldnt_create_audio_captcha",
90
+ "couldnt_create_image_captcha",
91
+ "invalid_url_scheme",
92
+ "contradicting_filters",
93
+ "too_many_items",
94
+ "ban_expiration_in_past",
95
+ "invalid_unix_time",
96
+ "invalid_bot_action",
97
+ "tag_not_in_community",
98
+ "cant_block_local_instance",
99
+ "cant_block_local_instance",
100
+ "url_length_overflow",
101
+ "oauth_authorization_invalid",
102
+ "oauth_login_failed",
103
+ "oauth_registration_closed",
104
+ "not_found",
105
+ "post_schedule_time_must_be_in_future",
106
+ "too_many_scheduled_posts",
107
+ "cannot_combine_federation_blocklist_and_allowlist",
108
+ "cannot_combine_federation_blocklist_and_allowlist",
109
+ "couldnt_parse_pagination_token",
110
+ "couldnt_parse_pagination_token",
111
+ "invalid_fetch_limit",
112
+ "email_notifications_disabled",
113
+ "multi_community_update_wrong_user",
114
+ "cannot_combine_community_id_and_multi_community_id",
115
+ "multi_community_entry_limit_reached",
116
+ "too_many_requests",
117
+ ];
@@ -16,4 +16,8 @@ export type AuthenticateWithOauth = {
16
16
  */
17
17
  answer?: string;
18
18
  pkce_code_verifier?: string;
19
+ /**
20
+ * If this is true the login is valid forever, otherwise it expires after one week.
21
+ */
22
+ stay_logged_in?: boolean;
19
23
  };
@@ -12,7 +12,7 @@ export type BanFromCommunity = {
12
12
  * If ban is true, then this means remove. If ban is false, it means restore.
13
13
  */
14
14
  remove_or_restore_data?: boolean;
15
- reason?: string;
15
+ reason: string;
16
16
  /**
17
17
  * A time that the ban will expire, in unix epoch seconds.
18
18
  *
@@ -10,7 +10,7 @@ export type BanPerson = {
10
10
  * If ban is true, then this means remove. If ban is false, it means restore.
11
11
  */
12
12
  remove_or_restore_data?: boolean;
13
- reason?: string;
13
+ reason: string;
14
14
  /**
15
15
  * A time that the ban will expire, in unix epoch seconds.
16
16
  *
@@ -6,4 +6,8 @@ export type ChangePassword = {
6
6
  new_password: SensitiveString;
7
7
  new_password_verify: SensitiveString;
8
8
  old_password: SensitiveString;
9
+ /**
10
+ * If this is true the login is valid forever, otherwise it expires after one week.
11
+ */
12
+ stay_logged_in?: boolean;
9
13
  };
@@ -53,4 +53,8 @@ export type Comment = {
53
53
  * accepted by the community (by receiving it back via federation).
54
54
  */
55
55
  federation_pending: boolean;
56
+ /**
57
+ * Whether the comment is locked.
58
+ */
59
+ locked: boolean;
56
60
  };
@@ -1,14 +1,14 @@
1
1
  export type CommentActions = {
2
2
  /**
3
- * The like / score for the comment.
3
+ * When the comment was upvoted or downvoted.
4
4
  */
5
- like_score?: number;
6
- /**
7
- * When the comment was liked.
8
- */
9
- liked_at?: string;
5
+ voted_at?: string;
10
6
  /**
11
7
  * When the comment was saved.
12
8
  */
13
9
  saved_at?: string;
10
+ /**
11
+ * True if upvoted, false if downvoted. Upvote is greater than downvote.
12
+ */
13
+ vote_is_upvote?: boolean;
14
14
  };
@@ -21,4 +21,9 @@ export type CommentReportView = {
21
21
  person_actions?: PersonActions;
22
22
  community_actions?: CommunityActions;
23
23
  creator_is_admin: boolean;
24
+ creator_is_moderator: boolean;
25
+ creator_banned: boolean;
26
+ creator_ban_expires_at?: string;
27
+ creator_banned_from_community: boolean;
28
+ creator_community_ban_expires_at?: string;
24
29
  };
@@ -1,9 +1,7 @@
1
1
  import type { CommentView } from "./CommentView";
2
- import type { LocalUserId } from "./LocalUserId";
3
2
  /**
4
3
  * A comment response.
5
4
  */
6
5
  export type CommentResponse = {
7
6
  comment_view: CommentView;
8
- recipient_ids: Array<LocalUserId>;
9
7
  };
@@ -1,6 +1,5 @@
1
1
  import type { Comment } from "./Comment";
2
2
  import type { CommentActions } from "./CommentActions";
3
- import type { InstanceActions } from "./InstanceActions";
4
3
  import type { Person } from "./Person";
5
4
  import type { PersonActions } from "./PersonActions";
6
5
  /**
@@ -11,7 +10,6 @@ export type CommentSlimView = {
11
10
  creator: Person;
12
11
  comment_actions?: CommentActions;
13
12
  person_actions?: PersonActions;
14
- instance_actions?: InstanceActions;
15
13
  creator_is_admin: boolean;
16
14
  can_mod: boolean;
17
15
  creator_banned: boolean;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The comment sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
3
3
  */
4
- export type CommentSortType = "Hot" | "Top" | "New" | "Old" | "Controversial";
4
+ export type CommentSortType = "hot" | "top" | "new" | "old" | "controversial";
@@ -2,7 +2,6 @@ import type { Comment } from "./Comment";
2
2
  import type { CommentActions } from "./CommentActions";
3
3
  import type { Community } from "./Community";
4
4
  import type { CommunityActions } from "./CommunityActions";
5
- import type { InstanceActions } from "./InstanceActions";
6
5
  import type { Person } from "./Person";
7
6
  import type { PersonActions } from "./PersonActions";
8
7
  import type { Post } from "./Post";
@@ -18,11 +17,12 @@ export type CommentView = {
18
17
  community_actions?: CommunityActions;
19
18
  comment_actions?: CommentActions;
20
19
  person_actions?: PersonActions;
21
- instance_actions?: InstanceActions;
22
20
  creator_is_admin: boolean;
23
21
  post_tags: TagsView;
24
22
  can_mod: boolean;
25
23
  creator_banned: boolean;
24
+ creator_ban_expires_at?: string;
26
25
  creator_is_moderator: boolean;
27
26
  creator_banned_from_community: boolean;
27
+ creator_community_ban_expires_at?: string;
28
28
  };
@@ -1,13 +1,10 @@
1
1
  import type { CommunityFollowerState } from "./CommunityFollowerState";
2
+ import type { CommunityNotificationsMode } from "./CommunityNotificationsMode";
2
3
  export type CommunityActions = {
3
4
  /**
4
5
  * When the community was followed.
5
6
  */
6
7
  followed_at?: string;
7
- /**
8
- * The state of the community follow.
9
- */
10
- follow_state?: CommunityFollowerState;
11
8
  /**
12
9
  * When the community was blocked.
13
10
  */
@@ -24,4 +21,9 @@ export type CommunityActions = {
24
21
  * When their ban expires.
25
22
  */
26
23
  ban_expires_at?: string;
24
+ /**
25
+ * The state of the community follow.
26
+ */
27
+ follow_state?: CommunityFollowerState;
28
+ notifications?: CommunityNotificationsMode;
27
29
  };