lemmy-js-client 1.0.0-search-and-resolve.1 → 1.0.0-search-resolve-field.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 (329) hide show
  1. package/README.md +6 -0
  2. package/dist/http.d.ts +79 -40
  3. package/dist/http.js +225 -87
  4. package/dist/index.d.ts +54 -78
  5. package/dist/index.js +3 -0
  6. package/dist/other_types.d.ts +14 -5
  7. package/dist/types/AdminAllowInstanceParams.d.ts +1 -1
  8. package/dist/types/AdminBlockInstanceParams.d.ts +7 -2
  9. package/dist/types/AllLemmyErrors.d.ts +1 -0
  10. package/dist/types/AllLemmyErrors.js +117 -0
  11. package/dist/types/AuthenticateWithOauth.d.ts +4 -0
  12. package/dist/types/BanFromCommunity.d.ts +2 -2
  13. package/dist/types/BanPerson.d.ts +2 -2
  14. package/dist/types/ChangePassword.d.ts +4 -0
  15. package/dist/types/Comment.d.ts +6 -2
  16. package/dist/types/CommentActions.d.ts +6 -10
  17. package/dist/types/CommentActions.js +1 -0
  18. package/dist/types/CommentReport.d.ts +2 -2
  19. package/dist/types/CommentReportView.d.ts +5 -1
  20. package/dist/types/CommentResponse.d.ts +0 -2
  21. package/dist/types/CommentSlimView.d.ts +2 -6
  22. package/dist/types/CommentSortType.d.ts +1 -1
  23. package/dist/types/CommentView.d.ts +4 -5
  24. package/dist/types/Community.d.ts +2 -2
  25. package/dist/types/CommunityActions.d.ts +11 -17
  26. package/dist/types/CommunityFollowerState.d.ts +1 -1
  27. package/dist/types/CommunityNotificationsMode.d.ts +4 -0
  28. package/dist/types/CommunityReport.d.ts +2 -2
  29. package/dist/types/CommunityReportView.d.ts +6 -0
  30. package/dist/types/CommunitySortType.d.ts +1 -1
  31. package/dist/types/CommunityView.d.ts +0 -2
  32. package/dist/types/CommunityVisibility.d.ts +1 -1
  33. package/dist/types/CreateCommentLike.d.ts +2 -2
  34. package/dist/types/CreateCommunityTag.d.ts +3 -1
  35. package/dist/types/CreateCustomEmoji.d.ts +2 -1
  36. package/dist/types/CreateCustomEmoji.js +0 -1
  37. package/dist/types/CreateMultiCommunity.d.ts +5 -0
  38. package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
  39. package/dist/types/CreatePost.d.ts +1 -1
  40. package/dist/types/CreatePostLike.d.ts +2 -2
  41. package/dist/types/CreateSite.d.ts +16 -14
  42. package/dist/types/CustomEmoji.d.ts +2 -2
  43. package/dist/types/EditCustomEmoji.d.ts +7 -5
  44. package/dist/types/EditPost.d.ts +1 -1
  45. package/dist/types/EditSite.d.ts +26 -20
  46. package/dist/types/ExportDataResponse.d.ts +13 -0
  47. package/dist/types/FederatedInstanceView.d.ts +12 -0
  48. package/dist/types/FederationAllowList.d.ts +4 -0
  49. package/dist/types/FederationBlockList.d.ts +3 -5
  50. package/dist/types/FederationBlockList.js +1 -0
  51. package/dist/types/FederationMode.d.ts +1 -1
  52. package/dist/types/FederationQueueState.d.ts +18 -0
  53. package/dist/types/FollowMultiCommunity.d.ts +5 -0
  54. package/dist/types/GetComments.d.ts +0 -2
  55. package/dist/types/GetFederatedInstances.d.ts +9 -0
  56. package/dist/types/GetFederatedInstancesKind.d.ts +1 -0
  57. package/dist/types/GetFederatedInstancesResponse.d.ts +5 -5
  58. package/dist/types/GetModlog.d.ts +2 -2
  59. package/dist/types/GetModlogResponse.d.ts +2 -2
  60. package/dist/types/GetMultiCommunity.d.ts +5 -0
  61. package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
  62. package/dist/types/GetPersonDetailsResponse.d.ts +2 -0
  63. package/dist/types/GetPosts.d.ts +3 -2
  64. package/dist/types/GetSiteResponse.d.ts +6 -0
  65. package/dist/types/HideCommunity.d.ts +1 -1
  66. package/dist/types/Instance.d.ts +2 -2
  67. package/dist/types/InstanceActions.d.ts +8 -8
  68. package/dist/types/InstanceActions.js +1 -0
  69. package/dist/types/InstanceWithFederationState.d.ts +2 -2
  70. package/dist/types/LemmyErrorType.d.ts +28 -146
  71. package/dist/types/LikeType.d.ts +4 -0
  72. package/dist/types/LinkMetadata.d.ts +4 -0
  73. package/dist/types/ListCommunityPendingFollows.d.ts +1 -1
  74. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +2 -2
  75. package/dist/types/ListMultiCommunities.d.ts +17 -0
  76. package/dist/types/ListMultiCommunitiesResponse.d.ts +10 -0
  77. package/dist/types/{ListInbox.d.ts → ListNotifications.d.ts} +3 -3
  78. package/dist/types/{ListInboxResponse.d.ts → ListNotificationsResponse.d.ts} +3 -3
  79. package/dist/types/ListPersonLiked.d.ts +13 -0
  80. package/dist/types/ListPersonLikedResponse.d.ts +13 -0
  81. package/dist/types/ListingType.d.ts +1 -1
  82. package/dist/types/LocalImage.d.ts +8 -3
  83. package/dist/types/LocalImageView.d.ts +2 -0
  84. package/dist/types/LocalSite.d.ts +5 -10
  85. package/dist/types/LocalSiteRateLimit.d.ts +16 -16
  86. package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
  87. package/dist/types/LocalUser.d.ts +11 -13
  88. package/dist/types/LocalUserView.d.ts +2 -2
  89. package/dist/types/LockComment.d.ts +9 -0
  90. package/dist/types/LockPost.d.ts +1 -1
  91. package/dist/types/Login.d.ts +4 -0
  92. package/dist/types/LoginToken.d.ts +1 -1
  93. package/dist/types/MarkManyPostsAsRead.d.ts +1 -0
  94. package/dist/types/MarkNotificationAsRead.d.ts +8 -0
  95. package/dist/types/ModEditPost.d.ts +10 -0
  96. package/dist/types/Modlog.d.ts +10 -0
  97. package/dist/types/ModlogId.d.ts +1 -0
  98. package/dist/types/ModlogKind.d.ts +4 -0
  99. package/dist/types/ModlogView.d.ts +15 -0
  100. package/dist/types/MultiCommunity.d.ts +20 -0
  101. package/dist/types/MultiCommunityEntry.d.ts +6 -0
  102. package/dist/types/MultiCommunityFollow.d.ts +8 -0
  103. package/dist/types/MultiCommunityId.d.ts +1 -0
  104. package/dist/types/MultiCommunityListingType.d.ts +4 -0
  105. package/dist/types/MultiCommunityResponse.d.ts +4 -0
  106. package/dist/types/MultiCommunitySortType.d.ts +1 -0
  107. package/dist/types/MultiCommunityView.d.ts +8 -0
  108. package/dist/types/MyUserInfo.d.ts +4 -1
  109. package/dist/types/NotePerson.d.ts +10 -0
  110. package/dist/types/Notification.d.ts +18 -0
  111. package/dist/types/NotificationData.d.ts +13 -0
  112. package/dist/types/NotificationDataType.d.ts +4 -0
  113. package/dist/types/NotificationId.d.ts +1 -0
  114. package/dist/types/NotificationType.d.ts +4 -0
  115. package/dist/types/NotificationView.d.ts +6 -0
  116. package/dist/types/OAuthAccount.d.ts +2 -2
  117. package/dist/types/OAuthProvider.d.ts +2 -2
  118. package/dist/types/OpenGraphData.d.ts +4 -0
  119. package/dist/types/PendingFollowerView.d.ts +9 -0
  120. package/dist/types/Person.d.ts +2 -2
  121. package/dist/types/PersonActions.d.ts +21 -4
  122. package/dist/types/PersonActions.js +1 -0
  123. package/dist/types/PersonContentCombinedView.d.ts +2 -2
  124. package/dist/types/PersonContentType.d.ts +1 -1
  125. package/dist/types/PersonLikedCombinedView.d.ts +7 -0
  126. package/dist/types/PersonResponse.d.ts +7 -0
  127. package/dist/types/PersonSavedCombinedView.d.ts +2 -2
  128. package/dist/types/PersonView.d.ts +4 -4
  129. package/dist/types/Post.d.ts +9 -7
  130. package/dist/types/PostActions.d.ts +15 -17
  131. package/dist/types/PostFeatureType.d.ts +1 -1
  132. package/dist/types/PostListingMode.d.ts +1 -1
  133. package/dist/types/PostNotificationsMode.d.ts +4 -0
  134. package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
  135. package/dist/types/PostReport.d.ts +2 -2
  136. package/dist/types/PostReportView.d.ts +5 -1
  137. package/dist/types/PostSortType.d.ts +1 -1
  138. package/dist/types/PostView.d.ts +4 -5
  139. package/dist/types/PrivateMessage.d.ts +2 -3
  140. package/dist/types/PrivateMessageReport.d.ts +2 -2
  141. package/dist/types/PrivateMessageReportView.d.ts +3 -0
  142. package/dist/types/PurgeComment.d.ts +1 -1
  143. package/dist/types/PurgeCommunity.d.ts +1 -1
  144. package/dist/types/PurgePerson.d.ts +1 -1
  145. package/dist/types/PurgePost.d.ts +1 -1
  146. package/dist/types/ReadableFederationState.d.ts +3 -3
  147. package/dist/types/Register.d.ts +4 -0
  148. package/dist/types/RegistrationApplication.d.ts +2 -1
  149. package/dist/types/RegistrationMode.d.ts +1 -1
  150. package/dist/types/RemoveComment.d.ts +1 -1
  151. package/dist/types/RemoveCommunity.d.ts +1 -1
  152. package/dist/types/RemovePost.d.ts +1 -1
  153. package/dist/types/ReportCombinedView.d.ts +4 -4
  154. package/dist/types/ReportType.d.ts +1 -1
  155. package/dist/types/SaveUserSettings.d.ts +9 -5
  156. package/dist/types/Search.d.ts +9 -1
  157. package/dist/types/SearchCombinedView.d.ts +8 -5
  158. package/dist/types/SearchResponse.d.ts +10 -1
  159. package/dist/types/SearchSortType.d.ts +1 -1
  160. package/dist/types/SearchType.d.ts +1 -1
  161. package/dist/types/Site.d.ts +2 -2
  162. package/dist/types/SiteResponse.d.ts +0 -4
  163. package/dist/types/Tag.d.ts +8 -16
  164. package/dist/types/Tagline.d.ts +2 -2
  165. package/dist/types/TagsView.d.ts +1 -1
  166. package/dist/types/UntranslatedError.d.ts +14 -0
  167. package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
  168. package/dist/types/UpdateCommunityTag.d.ts +3 -2
  169. package/dist/types/UpdateMultiCommunity.d.ts +7 -0
  170. package/dist/types/UpdatePostNotifications.d.ts +9 -0
  171. package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
  172. package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
  173. package/dist/types/UserSettingsBackup.d.ts +29 -0
  174. package/dist/types/VoteShow.d.ts +1 -1
  175. package/dist/types/VoteView.d.ts +5 -2
  176. package/package.json +7 -6
  177. package/dist/types/AdminAllowInstance.d.ts +0 -11
  178. package/dist/types/AdminAllowInstanceId.d.ts +0 -1
  179. package/dist/types/AdminAllowInstanceView.d.ts +0 -11
  180. package/dist/types/AdminBlockInstance.d.ts +0 -12
  181. package/dist/types/AdminBlockInstanceId.d.ts +0 -1
  182. package/dist/types/AdminBlockInstanceView.d.ts +0 -11
  183. package/dist/types/AdminPurgeComment.d.ts +0 -13
  184. package/dist/types/AdminPurgeCommentId.d.ts +0 -1
  185. package/dist/types/AdminPurgeCommentView.d.ts +0 -11
  186. package/dist/types/AdminPurgeCommunity.d.ts +0 -11
  187. package/dist/types/AdminPurgeCommunityId.d.ts +0 -1
  188. package/dist/types/AdminPurgeCommunityView.d.ts +0 -9
  189. package/dist/types/AdminPurgePerson.d.ts +0 -11
  190. package/dist/types/AdminPurgePersonId.d.ts +0 -1
  191. package/dist/types/AdminPurgePersonView.d.ts +0 -9
  192. package/dist/types/AdminPurgePost.d.ts +0 -13
  193. package/dist/types/AdminPurgePostId.d.ts +0 -1
  194. package/dist/types/AdminPurgePostView.d.ts +0 -11
  195. package/dist/types/BanFromCommunityResponse.d.ts +0 -8
  196. package/dist/types/BanPersonResponse.d.ts +0 -8
  197. package/dist/types/BlockCommunityResponse.d.ts +0 -8
  198. package/dist/types/BlockPersonResponse.d.ts +0 -8
  199. package/dist/types/CommentReply.d.ts +0 -13
  200. package/dist/types/CommentReplyId.d.ts +0 -4
  201. package/dist/types/CommentReplyView.d.ts +0 -32
  202. package/dist/types/FederatedInstances.d.ts +0 -9
  203. package/dist/types/FederationError.d.ts +0 -10
  204. package/dist/types/GetCommunityPendingFollowsCount.d.ts +0 -4
  205. package/dist/types/InboxCombinedView.d.ts +0 -13
  206. package/dist/types/InboxDataType.d.ts +0 -4
  207. package/dist/types/MarkCommentReplyAsRead.d.ts +0 -8
  208. package/dist/types/MarkPersonCommentMentionAsRead.d.ts +0 -8
  209. package/dist/types/MarkPersonPostMentionAsRead.d.ts +0 -8
  210. package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -8
  211. package/dist/types/ModAdd.d.ts +0 -12
  212. package/dist/types/ModAddCommunity.d.ts +0 -14
  213. package/dist/types/ModAddCommunityId.d.ts +0 -1
  214. package/dist/types/ModAddCommunityView.d.ts +0 -12
  215. package/dist/types/ModAddId.d.ts +0 -1
  216. package/dist/types/ModAddView.d.ts +0 -10
  217. package/dist/types/ModBan.d.ts +0 -16
  218. package/dist/types/ModBanFromCommunity.d.ts +0 -16
  219. package/dist/types/ModBanFromCommunityId.d.ts +0 -1
  220. package/dist/types/ModBanFromCommunityView.d.ts +0 -12
  221. package/dist/types/ModBanId.d.ts +0 -1
  222. package/dist/types/ModBanView.d.ts +0 -10
  223. package/dist/types/ModChangeCommunityVisibility.d.ts +0 -12
  224. package/dist/types/ModChangeCommunityVisibilityId.d.ts +0 -1
  225. package/dist/types/ModChangeCommunityVisibilityView.d.ts +0 -11
  226. package/dist/types/ModFeaturePost.d.ts +0 -14
  227. package/dist/types/ModFeaturePostId.d.ts +0 -1
  228. package/dist/types/ModFeaturePostView.d.ts +0 -14
  229. package/dist/types/ModFeaturePostView.js +0 -2
  230. package/dist/types/ModLockPost.d.ts +0 -14
  231. package/dist/types/ModLockPost.js +0 -2
  232. package/dist/types/ModLockPostId.d.ts +0 -1
  233. package/dist/types/ModLockPostId.js +0 -3
  234. package/dist/types/ModLockPostView.d.ts +0 -14
  235. package/dist/types/ModLockPostView.js +0 -2
  236. package/dist/types/ModRemoveComment.d.ts +0 -14
  237. package/dist/types/ModRemoveComment.js +0 -2
  238. package/dist/types/ModRemoveCommentId.d.ts +0 -1
  239. package/dist/types/ModRemoveCommentId.js +0 -3
  240. package/dist/types/ModRemoveCommentView.d.ts +0 -16
  241. package/dist/types/ModRemoveCommentView.js +0 -2
  242. package/dist/types/ModRemoveCommunity.d.ts +0 -14
  243. package/dist/types/ModRemoveCommunity.js +0 -2
  244. package/dist/types/ModRemoveCommunityId.d.ts +0 -1
  245. package/dist/types/ModRemoveCommunityId.js +0 -3
  246. package/dist/types/ModRemoveCommunityView.d.ts +0 -11
  247. package/dist/types/ModRemoveCommunityView.js +0 -2
  248. package/dist/types/ModRemovePost.d.ts +0 -14
  249. package/dist/types/ModRemovePost.js +0 -2
  250. package/dist/types/ModRemovePostId.d.ts +0 -1
  251. package/dist/types/ModRemovePostId.js +0 -3
  252. package/dist/types/ModRemovePostView.d.ts +0 -14
  253. package/dist/types/ModRemovePostView.js +0 -2
  254. package/dist/types/ModTransferCommunity.d.ts +0 -13
  255. package/dist/types/ModTransferCommunity.js +0 -2
  256. package/dist/types/ModTransferCommunityId.d.ts +0 -1
  257. package/dist/types/ModTransferCommunityId.js +0 -3
  258. package/dist/types/ModTransferCommunityView.d.ts +0 -12
  259. package/dist/types/ModTransferCommunityView.js +0 -2
  260. package/dist/types/ModlogActionType.d.ts +0 -4
  261. package/dist/types/ModlogActionType.js +0 -3
  262. package/dist/types/ModlogCombinedView.d.ts +0 -52
  263. package/dist/types/ModlogCombinedView.js +0 -2
  264. package/dist/types/PersonCommentMention.d.ts +0 -13
  265. package/dist/types/PersonCommentMention.js +0 -2
  266. package/dist/types/PersonCommentMentionId.d.ts +0 -4
  267. package/dist/types/PersonCommentMentionId.js +0 -3
  268. package/dist/types/PersonCommentMentionView.d.ts +0 -30
  269. package/dist/types/PersonCommentMentionView.js +0 -2
  270. package/dist/types/PersonPostMention.d.ts +0 -13
  271. package/dist/types/PersonPostMention.js +0 -2
  272. package/dist/types/PersonPostMentionId.d.ts +0 -4
  273. package/dist/types/PersonPostMentionId.js +0 -3
  274. package/dist/types/PersonPostMentionView.d.ts +0 -32
  275. package/dist/types/PersonPostMentionView.js +0 -2
  276. package/dist/types/UserBlockInstanceParams.js +0 -2
  277. /package/dist/types/{AdminAllowInstanceId.js → CommunityNotificationsMode.js} +0 -0
  278. /package/dist/types/{AdminBlockInstanceId.js → CreateMultiCommunity.js} +0 -0
  279. /package/dist/types/{AdminAllowInstance.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
  280. /package/dist/types/{AdminAllowInstanceView.js → ExportDataResponse.js} +0 -0
  281. /package/dist/types/{AdminBlockInstance.js → FederatedInstanceView.js} +0 -0
  282. /package/dist/types/{AdminPurgeCommentId.js → FederationAllowList.js} +0 -0
  283. /package/dist/types/{AdminBlockInstanceView.js → FederationQueueState.js} +0 -0
  284. /package/dist/types/{AdminPurgeComment.js → FollowMultiCommunity.js} +0 -0
  285. /package/dist/types/{AdminPurgeCommentView.js → GetFederatedInstances.js} +0 -0
  286. /package/dist/types/{AdminPurgeCommunityId.js → GetFederatedInstancesKind.js} +0 -0
  287. /package/dist/types/{AdminPurgeCommunity.js → GetMultiCommunity.js} +0 -0
  288. /package/dist/types/{AdminPurgeCommunityView.js → GetMultiCommunityResponse.js} +0 -0
  289. /package/dist/types/{AdminPurgePersonId.js → LikeType.js} +0 -0
  290. /package/dist/types/{AdminPurgePerson.js → ListMultiCommunities.js} +0 -0
  291. /package/dist/types/{AdminPurgePersonView.js → ListMultiCommunitiesResponse.js} +0 -0
  292. /package/dist/types/{AdminPurgePost.js → ListNotifications.js} +0 -0
  293. /package/dist/types/{AdminPurgePostView.js → ListNotificationsResponse.js} +0 -0
  294. /package/dist/types/{BanFromCommunityResponse.js → ListPersonLiked.js} +0 -0
  295. /package/dist/types/{BanPersonResponse.js → ListPersonLikedResponse.js} +0 -0
  296. /package/dist/types/{BlockCommunityResponse.js → LockComment.js} +0 -0
  297. /package/dist/types/{BlockPersonResponse.js → MarkNotificationAsRead.js} +0 -0
  298. /package/dist/types/{CommentReply.js → ModEditPost.js} +0 -0
  299. /package/dist/types/{CommentReplyView.js → Modlog.js} +0 -0
  300. /package/dist/types/{AdminPurgePostId.js → ModlogId.js} +0 -0
  301. /package/dist/types/{CommentReplyId.js → ModlogKind.js} +0 -0
  302. /package/dist/types/{FederatedInstances.js → ModlogView.js} +0 -0
  303. /package/dist/types/{GetCommunityPendingFollowsCount.js → MultiCommunity.js} +0 -0
  304. /package/dist/types/{InboxCombinedView.js → MultiCommunityEntry.js} +0 -0
  305. /package/dist/types/{ListInbox.js → MultiCommunityFollow.js} +0 -0
  306. /package/dist/types/{FederationError.js → MultiCommunityId.js} +0 -0
  307. /package/dist/types/{InboxDataType.js → MultiCommunityListingType.js} +0 -0
  308. /package/dist/types/{ListInboxResponse.js → MultiCommunityResponse.js} +0 -0
  309. /package/dist/types/{ModAddCommunityId.js → MultiCommunitySortType.js} +0 -0
  310. /package/dist/types/{MarkCommentReplyAsRead.js → MultiCommunityView.js} +0 -0
  311. /package/dist/types/{MarkPersonCommentMentionAsRead.js → NotePerson.js} +0 -0
  312. /package/dist/types/{MarkPersonPostMentionAsRead.js → Notification.js} +0 -0
  313. /package/dist/types/{MarkPrivateMessageAsRead.js → NotificationData.js} +0 -0
  314. /package/dist/types/{ModAddId.js → NotificationDataType.js} +0 -0
  315. /package/dist/types/{ModBanFromCommunityId.js → NotificationId.js} +0 -0
  316. /package/dist/types/{ModBanId.js → NotificationType.js} +0 -0
  317. /package/dist/types/{ModAdd.js → NotificationView.js} +0 -0
  318. /package/dist/types/{ModAddCommunity.js → PendingFollowerView.js} +0 -0
  319. /package/dist/types/{ModAddCommunityView.js → PersonLikedCombinedView.js} +0 -0
  320. /package/dist/types/{ModAddView.js → PersonResponse.js} +0 -0
  321. /package/dist/types/{ModChangeCommunityVisibilityId.js → PostNotificationsMode.js} +0 -0
  322. /package/dist/types/{ModBan.js → PostOrCommentOrPrivateMessage.js} +0 -0
  323. /package/dist/types/{ModFeaturePostId.js → UntranslatedError.js} +0 -0
  324. /package/dist/types/{ModBanFromCommunity.js → UpdateCommunityNotifications.js} +0 -0
  325. /package/dist/types/{ModBanFromCommunityView.js → UpdateMultiCommunity.js} +0 -0
  326. /package/dist/types/{ModBanView.js → UpdatePostNotifications.js} +0 -0
  327. /package/dist/types/{ModChangeCommunityVisibility.js → UserBlockInstanceCommunitiesParams.js} +0 -0
  328. /package/dist/types/{ModChangeCommunityVisibilityView.js → UserBlockInstancePersonsParams.js} +0 -0
  329. /package/dist/types/{ModFeaturePost.js → UserSettingsBackup.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -5,47 +5,23 @@ 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
11
  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";
12
+ export { AllLemmyErrors } from "./types/AllLemmyErrors";
30
13
  export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
31
14
  export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
32
15
  export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
33
16
  export { BanFromCommunity } from "./types/BanFromCommunity";
34
- export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
35
17
  export { BanPerson } from "./types/BanPerson";
36
- export { BanPersonResponse } from "./types/BanPersonResponse";
37
18
  export { BlockCommunity } from "./types/BlockCommunity";
38
- export { BlockCommunityResponse } from "./types/BlockCommunityResponse";
39
19
  export { BlockPerson } from "./types/BlockPerson";
40
- export { BlockPersonResponse } from "./types/BlockPersonResponse";
41
20
  export { CaptchaResponse } from "./types/CaptchaResponse";
42
21
  export { ChangePassword } from "./types/ChangePassword";
43
22
  export { Comment } from "./types/Comment";
44
23
  export { CommentActions } from "./types/CommentActions";
45
24
  export { CommentId } from "./types/CommentId";
46
- export { CommentReply } from "./types/CommentReply";
47
- export { CommentReplyId } from "./types/CommentReplyId";
48
- export { CommentReplyView } from "./types/CommentReplyView";
49
25
  export { CommentReport } from "./types/CommentReport";
50
26
  export { CommentReportId } from "./types/CommentReportId";
51
27
  export { CommentReportResponse } from "./types/CommentReportResponse";
@@ -61,6 +37,7 @@ export { CommunityFollowerView } from "./types/CommunityFollowerView";
61
37
  export { CommunityId } from "./types/CommunityId";
62
38
  export { CommunityIdQuery } from "./types/CommunityIdQuery";
63
39
  export { CommunityModeratorView } from "./types/CommunityModeratorView";
40
+ export { CommunityNotificationsMode } from "./types/CommunityNotificationsMode";
64
41
  export { CommunityReport } from "./types/CommunityReport";
65
42
  export { CommunityReportId } from "./types/CommunityReportId";
66
43
  export { CommunityReportResponse } from "./types/CommunityReportResponse";
@@ -76,7 +53,9 @@ export { CreateCommunity } from "./types/CreateCommunity";
76
53
  export { CreateCommunityReport } from "./types/CreateCommunityReport";
77
54
  export { CreateCommunityTag } from "./types/CreateCommunityTag";
78
55
  export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
56
+ export { CreateMultiCommunity } from "./types/CreateMultiCommunity";
79
57
  export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
58
+ export { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
80
59
  export { CreatePost } from "./types/CreatePost";
81
60
  export { CreatePostLike } from "./types/CreatePostLike";
82
61
  export { CreatePostReport } from "./types/CreatePostReport";
@@ -108,12 +87,15 @@ export { EditOAuthProvider } from "./types/EditOAuthProvider";
108
87
  export { EditPost } from "./types/EditPost";
109
88
  export { EditPrivateMessage } from "./types/EditPrivateMessage";
110
89
  export { EditSite } from "./types/EditSite";
90
+ export { ExportDataResponse } from "./types/ExportDataResponse";
111
91
  export { FeaturePost } from "./types/FeaturePost";
112
- export { FederatedInstances } from "./types/FederatedInstances";
92
+ export { FederatedInstanceView } from "./types/FederatedInstanceView";
93
+ export { FederationAllowList } from "./types/FederationAllowList";
113
94
  export { FederationBlockList } from "./types/FederationBlockList";
114
- export { FederationError } from "./types/FederationError";
115
95
  export { FederationMode } from "./types/FederationMode";
96
+ export { FederationQueueState } from "./types/FederationQueueState";
116
97
  export { FollowCommunity } from "./types/FollowCommunity";
98
+ export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
117
99
  export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
118
100
  export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
119
101
  export { GetComment } from "./types/GetComment";
@@ -121,12 +103,15 @@ export { GetComments } from "./types/GetComments";
121
103
  export { GetCommentsResponse } from "./types/GetCommentsResponse";
122
104
  export { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
123
105
  export { GetCommunity } from "./types/GetCommunity";
124
- export { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
125
106
  export { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
126
107
  export { GetCommunityResponse } from "./types/GetCommunityResponse";
108
+ export { GetFederatedInstances } from "./types/GetFederatedInstances";
109
+ export { GetFederatedInstancesKind } from "./types/GetFederatedInstancesKind";
127
110
  export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
128
111
  export { GetModlog } from "./types/GetModlog";
129
112
  export { GetModlogResponse } from "./types/GetModlogResponse";
113
+ export { GetMultiCommunity } from "./types/GetMultiCommunity";
114
+ export { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
130
115
  export { GetPersonDetails } from "./types/GetPersonDetails";
131
116
  export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
132
117
  export { GetPost } from "./types/GetPost";
@@ -147,8 +132,6 @@ export { HidePost } from "./types/HidePost";
147
132
  export { ImageDetails } from "./types/ImageDetails";
148
133
  export { ImageGetParams } from "./types/ImageGetParams";
149
134
  export { ImageProxyParams } from "./types/ImageProxyParams";
150
- export { InboxCombinedView } from "./types/InboxCombinedView";
151
- export { InboxDataType } from "./types/InboxDataType";
152
135
  export { Instance } from "./types/Instance";
153
136
  export { InstanceActions } from "./types/InstanceActions";
154
137
  export { InstanceId } from "./types/InstanceId";
@@ -156,6 +139,7 @@ export { InstanceWithFederationState } from "./types/InstanceWithFederationState
156
139
  export { Language } from "./types/Language";
157
140
  export { LanguageId } from "./types/LanguageId";
158
141
  export { LemmyErrorType } from "./types/LemmyErrorType";
142
+ export { LikeType } from "./types/LikeType";
159
143
  export { LinkMetadata } from "./types/LinkMetadata";
160
144
  export { ListCommentLikes } from "./types/ListCommentLikes";
161
145
  export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
@@ -165,15 +149,19 @@ export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
165
149
  export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
166
150
  export { ListCustomEmojis } from "./types/ListCustomEmojis";
167
151
  export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
168
- export { ListInbox } from "./types/ListInbox";
169
- export { ListInboxResponse } from "./types/ListInboxResponse";
170
152
  export { ListLoginsResponse } from "./types/ListLoginsResponse";
171
153
  export { ListMedia } from "./types/ListMedia";
172
154
  export { ListMediaResponse } from "./types/ListMediaResponse";
155
+ export { ListMultiCommunities } from "./types/ListMultiCommunities";
156
+ export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
157
+ export { ListNotifications } from "./types/ListNotifications";
158
+ export { ListNotificationsResponse } from "./types/ListNotificationsResponse";
173
159
  export { ListPersonContent } from "./types/ListPersonContent";
174
160
  export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
175
161
  export { ListPersonHidden } from "./types/ListPersonHidden";
176
162
  export { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
163
+ export { ListPersonLiked } from "./types/ListPersonLiked";
164
+ export { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
177
165
  export { ListPersonRead } from "./types/ListPersonRead";
178
166
  export { ListPersonReadResponse } from "./types/ListPersonReadResponse";
179
167
  export { ListPersonSaved } from "./types/ListPersonSaved";
@@ -196,52 +184,35 @@ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
196
184
  export { LocalUser } from "./types/LocalUser";
197
185
  export { LocalUserId } from "./types/LocalUserId";
198
186
  export { LocalUserView } from "./types/LocalUserView";
187
+ export { LockComment } from "./types/LockComment";
199
188
  export { LockPost } from "./types/LockPost";
200
189
  export { Login } from "./types/Login";
201
190
  export { LoginResponse } from "./types/LoginResponse";
202
191
  export { LoginToken } from "./types/LoginToken";
203
- export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
204
192
  export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
205
- export { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
206
- export { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
193
+ export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
207
194
  export { MarkPostAsRead } from "./types/MarkPostAsRead";
208
- export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
209
- export { ModAdd } from "./types/ModAdd";
210
- export { ModAddCommunity } from "./types/ModAddCommunity";
211
- export { ModAddCommunityId } from "./types/ModAddCommunityId";
212
- export { ModAddCommunityView } from "./types/ModAddCommunityView";
213
- export { ModAddId } from "./types/ModAddId";
214
- export { ModAddView } from "./types/ModAddView";
215
- export { ModBan } from "./types/ModBan";
216
- export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
217
- export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
218
- export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
219
- export { ModBanId } from "./types/ModBanId";
220
- export { ModBanView } from "./types/ModBanView";
221
- export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
222
- export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
223
- export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
224
- export { ModFeaturePost } from "./types/ModFeaturePost";
225
- export { ModFeaturePostId } from "./types/ModFeaturePostId";
226
- export { ModFeaturePostView } from "./types/ModFeaturePostView";
227
- export { ModLockPost } from "./types/ModLockPost";
228
- export { ModLockPostId } from "./types/ModLockPostId";
229
- export { ModLockPostView } from "./types/ModLockPostView";
230
- export { ModRemoveComment } from "./types/ModRemoveComment";
231
- export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
232
- export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
233
- export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
234
- export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
235
- export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
236
- export { ModRemovePost } from "./types/ModRemovePost";
237
- export { ModRemovePostId } from "./types/ModRemovePostId";
238
- export { ModRemovePostView } from "./types/ModRemovePostView";
239
- export { ModTransferCommunity } from "./types/ModTransferCommunity";
240
- export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
241
- export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
242
- export { ModlogActionType } from "./types/ModlogActionType";
243
- export { ModlogCombinedView } from "./types/ModlogCombinedView";
195
+ export { ModEditPost } from "./types/ModEditPost";
196
+ export { Modlog } from "./types/Modlog";
197
+ export { ModlogId } from "./types/ModlogId";
198
+ export { ModlogKind } from "./types/ModlogKind";
199
+ export { ModlogView } from "./types/ModlogView";
200
+ export { MultiCommunity } from "./types/MultiCommunity";
201
+ export { MultiCommunityEntry } from "./types/MultiCommunityEntry";
202
+ export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
203
+ export { MultiCommunityId } from "./types/MultiCommunityId";
204
+ export { MultiCommunityListingType } from "./types/MultiCommunityListingType";
205
+ export { MultiCommunityResponse } from "./types/MultiCommunityResponse";
206
+ export { MultiCommunitySortType } from "./types/MultiCommunitySortType";
207
+ export { MultiCommunityView } from "./types/MultiCommunityView";
244
208
  export { MyUserInfo } from "./types/MyUserInfo";
209
+ export { NotePerson } from "./types/NotePerson";
210
+ export { Notification } from "./types/Notification";
211
+ export { NotificationData } from "./types/NotificationData";
212
+ export { NotificationDataType } from "./types/NotificationDataType";
213
+ export { NotificationId } from "./types/NotificationId";
214
+ export { NotificationType } from "./types/NotificationType";
215
+ export { NotificationView } from "./types/NotificationView";
245
216
  export { OAuthAccount } from "./types/OAuthAccount";
246
217
  export { OAuthProvider } from "./types/OAuthProvider";
247
218
  export { OAuthProviderId } from "./types/OAuthProviderId";
@@ -250,17 +221,14 @@ export { PaginationCursor } from "./types/PaginationCursor";
250
221
  export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
251
222
  export { PasswordReset } from "./types/PasswordReset";
252
223
  export { PendingFollow } from "./types/PendingFollow";
224
+ export { PendingFollowerView } from "./types/PendingFollowerView";
253
225
  export { Person } from "./types/Person";
254
226
  export { PersonActions } from "./types/PersonActions";
255
- export { PersonCommentMention } from "./types/PersonCommentMention";
256
- export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
257
- export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
258
227
  export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
259
228
  export { PersonContentType } from "./types/PersonContentType";
260
229
  export { PersonId } from "./types/PersonId";
261
- export { PersonPostMention } from "./types/PersonPostMention";
262
- export { PersonPostMentionId } from "./types/PersonPostMentionId";
263
- export { PersonPostMentionView } from "./types/PersonPostMentionView";
230
+ export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
231
+ export { PersonResponse } from "./types/PersonResponse";
264
232
  export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
265
233
  export { PersonView } from "./types/PersonView";
266
234
  export { PluginMetadata } from "./types/PluginMetadata";
@@ -269,6 +237,8 @@ export { PostActions } from "./types/PostActions";
269
237
  export { PostFeatureType } from "./types/PostFeatureType";
270
238
  export { PostId } from "./types/PostId";
271
239
  export { PostListingMode } from "./types/PostListingMode";
240
+ export { PostNotificationsMode } from "./types/PostNotificationsMode";
241
+ export { PostOrCommentOrPrivateMessage } from "./types/PostOrCommentOrPrivateMessage";
272
242
  export { PostReport } from "./types/PostReport";
273
243
  export { PostReportId } from "./types/PostReportId";
274
244
  export { PostReportResponse } from "./types/PostReportResponse";
@@ -328,12 +298,18 @@ export { TaglineId } from "./types/TaglineId";
328
298
  export { TaglineResponse } from "./types/TaglineResponse";
329
299
  export { TagsView } from "./types/TagsView";
330
300
  export { TransferCommunity } from "./types/TransferCommunity";
301
+ export { UntranslatedError } from "./types/UntranslatedError";
302
+ export { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
331
303
  export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
304
+ export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
305
+ export { UpdatePostNotifications } from "./types/UpdatePostNotifications";
332
306
  export { UpdateTagline } from "./types/UpdateTagline";
333
307
  export { UpdateTotp } from "./types/UpdateTotp";
334
308
  export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
335
309
  export { UploadImageResponse } from "./types/UploadImageResponse";
336
- export { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
310
+ export { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
311
+ export { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
312
+ export { UserSettingsBackup } from "./types/UserSettingsBackup";
337
313
  export { VerifyEmail } from "./types/VerifyEmail";
338
314
  export { VoteShow } from "./types/VoteShow";
339
315
  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,8 +4,8 @@ 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";
8
+ import { GetMultiCommunity } from "./types/GetMultiCommunity";
9
9
  import { GetPersonDetails } from "./types/GetPersonDetails";
10
10
  import { GetPost } from "./types/GetPost";
11
11
  import { GetPosts } from "./types/GetPosts";
@@ -17,10 +17,12 @@ import { ListCommentLikes } from "./types/ListCommentLikes";
17
17
  import { ListCommunities } from "./types/ListCommunities";
18
18
  import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
19
19
  import { ListCustomEmojis } from "./types/ListCustomEmojis";
20
- import { ListInbox } from "./types/ListInbox";
20
+ import { ListNotifications } from "./types/ListNotifications";
21
21
  import { ListMedia } from "./types/ListMedia";
22
+ import { ListMultiCommunities } from "./types/ListMultiCommunities";
22
23
  import { ListPersonContent } from "./types/ListPersonContent";
23
24
  import { ListPersonHidden } from "./types/ListPersonHidden";
25
+ import { ListPersonLiked } from "./types/ListPersonLiked";
24
26
  import { ListPersonRead } from "./types/ListPersonRead";
25
27
  import { ListPersonSaved } from "./types/ListPersonSaved";
26
28
  import { ListPostLikes } from "./types/ListPostLikes";
@@ -29,6 +31,7 @@ import { ListReports } from "./types/ListReports";
29
31
  import { ListTaglines } from "./types/ListTaglines";
30
32
  import { ResolveObject } from "./types/ResolveObject";
31
33
  import { Search } from "./types/Search";
34
+ import { GetFederatedInstances } from "./types/GetFederatedInstances";
32
35
  export declare const VERSION = "v4";
33
36
  export interface UploadImage {
34
37
  image: File | Buffer;
@@ -45,8 +48,6 @@ export interface GetCommunityI extends GetCommunity {
45
48
  }
46
49
  export interface ListCommunitiesI extends ListCommunities {
47
50
  }
48
- export interface GetCommunityPendingFollowsCountI extends GetCommunityPendingFollowsCount {
49
- }
50
51
  export interface ListCommunityPendingFollowsI extends ListCommunityPendingFollows {
51
52
  }
52
53
  export interface GetRandomCommunityI extends GetRandomCommunity {
@@ -71,7 +72,7 @@ export interface ListPersonContentI extends ListPersonContent {
71
72
  }
72
73
  export interface GetReportCountI extends GetReportCount {
73
74
  }
74
- export interface ListInboxI extends ListInbox {
75
+ export interface ListNotificationsI extends ListNotifications {
75
76
  }
76
77
  export interface ListPersonSavedI extends ListPersonSaved {
77
78
  }
@@ -79,6 +80,8 @@ export interface ListPersonReadI extends ListPersonRead {
79
80
  }
80
81
  export interface ListPersonHiddenI extends ListPersonHidden {
81
82
  }
83
+ export interface ListPersonLikedI extends ListPersonLiked {
84
+ }
82
85
  export interface ListRegistrationApplicationsI extends ListRegistrationApplications {
83
86
  }
84
87
  export interface GetRegistrationApplicationI extends GetRegistrationApplication {
@@ -95,3 +98,9 @@ export interface AdminListUsersI extends AdminListUsers {
95
98
  }
96
99
  export interface CommunityIdQueryI extends CommunityIdQuery {
97
100
  }
101
+ export interface ListMultiCommunitiesI extends ListMultiCommunities {
102
+ }
103
+ export interface GetMultiCommunityI extends GetMultiCommunity {
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?: 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
  };
@@ -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,11 +12,11 @@ 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
  *
19
19
  * An i64 unix timestamp is used for a simpler API client implementation.
20
20
  */
21
- expires?: number;
21
+ expires_at?: number;
22
22
  };
@@ -10,11 +10,11 @@ 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
  *
17
17
  * An i64 unix timestamp is used for a simpler API client implementation.
18
18
  */
19
- expires?: number;
19
+ expires_at?: number;
20
20
  };
@@ -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
  };
@@ -15,8 +15,8 @@ export type Comment = {
15
15
  * Whether the comment has been removed.
16
16
  */
17
17
  removed: boolean;
18
- published: string;
19
- updated?: string;
18
+ published_at: string;
19
+ updated_at?: string;
20
20
  /**
21
21
  * Whether the comment has been deleted by its creator.
22
22
  */
@@ -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,18 +1,14 @@
1
- import type { CommentId } from "./CommentId";
2
- import type { PersonId } from "./PersonId";
3
1
  export type CommentActions = {
4
- person_id: PersonId;
5
- comment_id: CommentId;
6
2
  /**
7
- * The like / score for the comment.
3
+ * When the comment was upvoted or downvoted.
8
4
  */
9
- like_score?: number;
5
+ voted_at?: string;
10
6
  /**
11
- * When the comment was liked.
7
+ * When the comment was saved.
12
8
  */
13
- liked?: string;
9
+ saved_at?: string;
14
10
  /**
15
- * When the comment was saved.
11
+ * True if upvoted, false if downvoted. Upvote is greater than downvote.
16
12
  */
17
- saved?: string;
13
+ vote_is_upvote?: boolean;
18
14
  };
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -12,7 +12,7 @@ export type CommentReport = {
12
12
  reason: string;
13
13
  resolved: boolean;
14
14
  resolver_id?: PersonId;
15
- published: string;
16
- updated?: string;
15
+ published_at: string;
16
+ updated_at?: string;
17
17
  violates_instance_rules: boolean;
18
18
  };
@@ -18,8 +18,12 @@ export type CommentReportView = {
18
18
  comment_creator: Person;
19
19
  comment_actions?: CommentActions;
20
20
  resolver?: Person;
21
- creator_community_actions?: CommunityActions;
22
21
  person_actions?: PersonActions;
23
22
  community_actions?: CommunityActions;
24
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;
25
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,7 +1,5 @@
1
1
  import type { Comment } from "./Comment";
2
2
  import type { CommentActions } from "./CommentActions";
3
- import type { CommunityActions } from "./CommunityActions";
4
- import type { InstanceActions } from "./InstanceActions";
5
3
  import type { Person } from "./Person";
6
4
  import type { PersonActions } from "./PersonActions";
7
5
  /**
@@ -12,11 +10,9 @@ export type CommentSlimView = {
12
10
  creator: Person;
13
11
  comment_actions?: CommentActions;
14
12
  person_actions?: PersonActions;
15
- creator_community_actions?: CommunityActions;
16
- instance_actions?: InstanceActions;
17
- creator_home_instance_actions?: InstanceActions;
18
- creator_local_instance_actions?: InstanceActions;
19
13
  creator_is_admin: boolean;
20
14
  can_mod: boolean;
21
15
  creator_banned: boolean;
16
+ creator_is_moderator: boolean;
17
+ creator_banned_from_community: boolean;
22
18
  };