lemmy-js-client 1.0.0-alpha.0 → 1.0.0-api-updates-3.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 (321) hide show
  1. package/README.md +6 -0
  2. package/dist/http.d.ts +134 -53
  3. package/dist/http.js +521 -300
  4. package/dist/index.d.ts +71 -39
  5. package/dist/other_types.d.ts +22 -7
  6. package/dist/types/AdminAdd.d.ts +12 -0
  7. package/dist/types/AdminAddId.d.ts +1 -0
  8. package/dist/types/{ModAddView.d.ts → AdminAddView.d.ts} +3 -3
  9. package/dist/types/AdminAllowInstance.d.ts +2 -2
  10. package/dist/types/AdminAllowInstanceParams.d.ts +1 -1
  11. package/dist/types/AdminBan.d.ts +16 -0
  12. package/dist/types/AdminBanId.d.ts +1 -0
  13. package/dist/types/{ModBanView.d.ts → AdminBanView.d.ts} +3 -3
  14. package/dist/types/AdminBlockInstance.d.ts +3 -3
  15. package/dist/types/AdminBlockInstanceParams.d.ts +7 -2
  16. package/dist/types/AdminListUsers.d.ts +7 -0
  17. package/dist/types/{BannedPersonsResponse.d.ts → AdminListUsersResponse.d.ts} +4 -6
  18. package/dist/types/AdminPurgeComment.d.ts +2 -2
  19. package/dist/types/AdminPurgeCommunity.d.ts +2 -2
  20. package/dist/types/AdminPurgePerson.d.ts +2 -2
  21. package/dist/types/AdminPurgePost.d.ts +2 -2
  22. package/dist/types/{ModRemoveCommunity.d.ts → AdminRemoveCommunity.d.ts} +5 -5
  23. package/dist/types/AdminRemoveCommunityId.d.ts +1 -0
  24. package/dist/types/AdminRemoveCommunityView.d.ts +11 -0
  25. package/dist/types/AllLemmyErrors.d.ts +1 -0
  26. package/dist/types/AllLemmyErrors.js +117 -0
  27. package/dist/types/BanFromCommunity.d.ts +2 -2
  28. package/dist/types/BanPerson.d.ts +2 -2
  29. package/dist/types/Comment.d.ts +11 -2
  30. package/dist/types/CommentActions.d.ts +6 -10
  31. package/dist/types/CommentActions.js +1 -0
  32. package/dist/types/CommentReport.d.ts +2 -2
  33. package/dist/types/CommentReportView.d.ts +5 -1
  34. package/dist/types/CommentResponse.d.ts +0 -2
  35. package/dist/types/CommentSlimView.d.ts +3 -4
  36. package/dist/types/CommentSortType.d.ts +1 -1
  37. package/dist/types/CommentView.d.ts +7 -3
  38. package/dist/types/Community.d.ts +3 -2
  39. package/dist/types/CommunityActions.d.ts +11 -17
  40. package/dist/types/CommunityFollowerState.d.ts +1 -1
  41. package/dist/types/CommunityIdQuery.d.ts +8 -0
  42. package/dist/types/CommunityNotificationsMode.d.ts +4 -0
  43. package/dist/types/CommunityReport.d.ts +2 -2
  44. package/dist/types/CommunityReportView.d.ts +6 -0
  45. package/dist/types/CommunitySortType.d.ts +1 -1
  46. package/dist/types/CommunityView.d.ts +2 -2
  47. package/dist/types/CommunityVisibility.d.ts +1 -1
  48. package/dist/types/CreateCommentLike.d.ts +1 -4
  49. package/dist/types/CreateCommunityTag.d.ts +10 -0
  50. package/dist/types/CreateCustomEmoji.d.ts +2 -1
  51. package/dist/types/CreateCustomEmoji.js +0 -1
  52. package/dist/types/CreateMultiCommunity.d.ts +5 -0
  53. package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
  54. package/dist/types/CreatePost.d.ts +1 -1
  55. package/dist/types/CreatePostLike.d.ts +1 -4
  56. package/dist/types/CreateSite.d.ts +17 -15
  57. package/dist/types/CustomEmoji.d.ts +2 -2
  58. package/dist/types/DeleteCommunityTag.d.ts +7 -0
  59. package/dist/types/EditCustomEmoji.d.ts +7 -5
  60. package/dist/types/EditPost.d.ts +2 -2
  61. package/dist/types/EditSite.d.ts +30 -25
  62. package/dist/types/ExportDataResponse.d.ts +13 -0
  63. package/dist/types/FederationBlockList.d.ts +3 -3
  64. package/dist/types/FederationMode.d.ts +1 -1
  65. package/dist/types/FollowMultiCommunity.d.ts +5 -0
  66. package/dist/types/GetComments.d.ts +3 -3
  67. package/dist/types/GetCommentsResponse.d.ts +3 -0
  68. package/dist/types/GetCommentsSlimResponse.d.ts +3 -0
  69. package/dist/types/GetModlog.d.ts +1 -0
  70. package/dist/types/GetModlogResponse.d.ts +1 -0
  71. package/dist/types/GetMultiCommunity.d.ts +5 -0
  72. package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
  73. package/dist/types/GetPosts.d.ts +5 -11
  74. package/dist/types/GetPostsResponse.d.ts +3 -2
  75. package/dist/types/GetSiteResponse.d.ts +2 -0
  76. package/dist/types/HideCommunity.d.ts +1 -1
  77. package/dist/types/Instance.d.ts +4 -3
  78. package/dist/types/InstanceActions.d.ts +14 -6
  79. package/dist/types/InstanceActions.js +1 -0
  80. package/dist/types/InstanceWithFederationState.d.ts +2 -2
  81. package/dist/types/LemmyErrorType.d.ts +45 -94
  82. package/dist/types/LikeType.d.ts +4 -0
  83. package/dist/types/LinkMetadata.d.ts +4 -0
  84. package/dist/types/ListCommentLikes.d.ts +3 -1
  85. package/dist/types/ListCommentLikesResponse.d.ts +6 -0
  86. package/dist/types/ListCommunities.d.ts +3 -1
  87. package/dist/types/ListCommunitiesResponse.d.ts +6 -0
  88. package/dist/types/ListCommunityPendingFollows.d.ts +4 -2
  89. package/dist/types/ListCommunityPendingFollows.js +0 -1
  90. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +8 -2
  91. package/dist/types/ListCustomEmojis.d.ts +0 -3
  92. package/dist/types/ListMedia.d.ts +3 -1
  93. package/dist/types/ListMedia.js +0 -1
  94. package/dist/types/ListMediaResponse.d.ts +6 -0
  95. package/dist/types/ListMultiCommunities.d.ts +5 -0
  96. package/dist/types/ListMultiCommunitiesResponse.d.ts +4 -0
  97. package/dist/types/{ListInbox.d.ts → ListNotifications.d.ts} +4 -3
  98. package/dist/types/{ListInboxResponse.d.ts → ListNotificationsResponse.d.ts} +4 -3
  99. package/dist/types/ListPersonContent.d.ts +1 -0
  100. package/dist/types/ListPersonContentResponse.d.ts +1 -0
  101. package/dist/types/{ListBannedPersons.d.ts → ListPersonHidden.d.ts} +2 -2
  102. package/dist/types/ListPersonHiddenResponse.d.ts +13 -0
  103. package/dist/types/ListPersonLiked.d.ts +13 -0
  104. package/dist/types/ListPersonLikedResponse.d.ts +13 -0
  105. package/dist/types/ListPersonRead.d.ts +9 -0
  106. package/dist/types/ListPersonReadResponse.d.ts +13 -0
  107. package/dist/types/ListPersonSaved.d.ts +1 -0
  108. package/dist/types/ListPersonSavedResponse.d.ts +1 -0
  109. package/dist/types/ListPostLikes.d.ts +3 -1
  110. package/dist/types/ListPostLikesResponse.d.ts +6 -0
  111. package/dist/types/ListRegistrationApplications.d.ts +3 -1
  112. package/dist/types/ListRegistrationApplications.js +0 -1
  113. package/dist/types/ListRegistrationApplicationsResponse.d.ts +6 -0
  114. package/dist/types/ListReports.d.ts +1 -0
  115. package/dist/types/ListReportsResponse.d.ts +1 -0
  116. package/dist/types/ListTaglines.d.ts +3 -1
  117. package/dist/types/ListTaglines.js +0 -1
  118. package/dist/types/ListTaglinesResponse.d.ts +6 -0
  119. package/dist/types/ListingType.d.ts +1 -1
  120. package/dist/types/LocalImage.d.ts +8 -3
  121. package/dist/types/LocalImageView.d.ts +2 -0
  122. package/dist/types/LocalSite.d.ts +9 -15
  123. package/dist/types/LocalSiteRateLimit.d.ts +16 -16
  124. package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
  125. package/dist/types/LocalUser.d.ts +13 -14
  126. package/dist/types/LocalUserView.d.ts +2 -0
  127. package/dist/types/LockComment.d.ts +9 -0
  128. package/dist/types/LockPost.d.ts +1 -0
  129. package/dist/types/Login.d.ts +3 -0
  130. package/dist/types/LoginToken.d.ts +1 -1
  131. package/dist/types/MarkManyPostsAsRead.d.ts +1 -0
  132. package/dist/types/MarkNotificationAsRead.d.ts +8 -0
  133. package/dist/types/{ModAddCommunity.d.ts → ModAddToCommunity.d.ts} +4 -4
  134. package/dist/types/ModAddToCommunityId.d.ts +1 -0
  135. package/dist/types/{ModAddCommunityView.d.ts → ModAddToCommunityView.d.ts} +3 -3
  136. package/dist/types/ModAddToCommunityView.js +2 -0
  137. package/dist/types/ModBanFromCommunity.d.ts +3 -3
  138. package/dist/types/ModChangeCommunityVisibility.d.ts +1 -2
  139. package/dist/types/ModEditPost.d.ts +10 -0
  140. package/dist/types/ModEditPost.js +2 -0
  141. package/dist/types/ModFeaturePost.d.ts +1 -1
  142. package/dist/types/ModLockComment.d.ts +14 -0
  143. package/dist/types/ModLockComment.js +2 -0
  144. package/dist/types/ModLockCommentId.d.ts +1 -0
  145. package/dist/types/ModLockCommentView.d.ts +16 -0
  146. package/dist/types/ModLockCommentView.js +2 -0
  147. package/dist/types/ModLockPost.d.ts +2 -1
  148. package/dist/types/ModRemoveComment.d.ts +2 -2
  149. package/dist/types/ModRemovePost.d.ts +2 -2
  150. package/dist/types/ModTransferCommunity.d.ts +1 -1
  151. package/dist/types/ModlogActionType.d.ts +1 -1
  152. package/dist/types/ModlogCombinedView.d.ts +16 -13
  153. package/dist/types/MultiCommunity.d.ts +17 -0
  154. package/dist/types/MultiCommunity.js +2 -0
  155. package/dist/types/MultiCommunityEntry.d.ts +6 -0
  156. package/dist/types/MultiCommunityEntry.js +2 -0
  157. package/dist/types/MultiCommunityFollow.d.ts +8 -0
  158. package/dist/types/MultiCommunityFollow.js +2 -0
  159. package/dist/types/MultiCommunityId.d.ts +1 -0
  160. package/dist/types/MultiCommunityResponse.d.ts +4 -0
  161. package/dist/types/MultiCommunityResponse.js +2 -0
  162. package/dist/types/MultiCommunityView.d.ts +8 -0
  163. package/dist/types/MultiCommunityView.js +2 -0
  164. package/dist/types/MyUserInfo.d.ts +3 -1
  165. package/dist/types/NotePerson.d.ts +10 -0
  166. package/dist/types/NotePerson.js +2 -0
  167. package/dist/types/Notification.d.ts +36 -0
  168. package/dist/types/Notification.js +2 -0
  169. package/dist/types/NotificationData.d.ts +40 -0
  170. package/dist/types/NotificationData.js +2 -0
  171. package/dist/types/NotificationDataType.d.ts +4 -0
  172. package/dist/types/NotificationId.d.ts +1 -0
  173. package/dist/types/NotificationId.js +3 -0
  174. package/dist/types/NotificationType.d.ts +4 -0
  175. package/dist/types/NotificationType.js +3 -0
  176. package/dist/types/NotificationView.d.ts +6 -0
  177. package/dist/types/NotificationView.js +2 -0
  178. package/dist/types/OAuthAccount.d.ts +2 -2
  179. package/dist/types/OAuthProvider.d.ts +2 -2
  180. package/dist/types/OpenGraphData.d.ts +4 -0
  181. package/dist/types/PendingFollowerView.d.ts +9 -0
  182. package/dist/types/PendingFollowerView.js +2 -0
  183. package/dist/types/Person.d.ts +2 -10
  184. package/dist/types/PersonActions.d.ts +21 -4
  185. package/dist/types/PersonActions.js +1 -0
  186. package/dist/types/PersonContentType.d.ts +1 -1
  187. package/dist/types/PersonLikedCombinedView.d.ts +7 -0
  188. package/dist/types/PersonLikedCombinedView.js +2 -0
  189. package/dist/types/PersonResponse.d.ts +7 -0
  190. package/dist/types/PersonResponse.js +2 -0
  191. package/dist/types/PersonView.d.ts +4 -0
  192. package/dist/types/PluginMetadata.d.ts +5 -0
  193. package/dist/types/PluginMetadata.js +3 -0
  194. package/dist/types/Post.d.ts +14 -7
  195. package/dist/types/PostActions.d.ts +15 -17
  196. package/dist/types/PostFeatureType.d.ts +1 -1
  197. package/dist/types/PostListingMode.d.ts +1 -1
  198. package/dist/types/PostNotificationsMode.d.ts +4 -0
  199. package/dist/types/PostNotificationsMode.js +3 -0
  200. package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
  201. package/dist/types/PostOrCommentOrPrivateMessage.js +2 -0
  202. package/dist/types/PostReport.d.ts +2 -2
  203. package/dist/types/PostReportView.d.ts +5 -1
  204. package/dist/types/PostSortType.d.ts +1 -1
  205. package/dist/types/PostView.d.ts +7 -3
  206. package/dist/types/PrivateMessage.d.ts +2 -3
  207. package/dist/types/PrivateMessageReport.d.ts +2 -2
  208. package/dist/types/PrivateMessageReportView.d.ts +3 -0
  209. package/dist/types/PurgeComment.d.ts +1 -1
  210. package/dist/types/PurgeCommunity.d.ts +1 -1
  211. package/dist/types/PurgePerson.d.ts +1 -1
  212. package/dist/types/PurgePost.d.ts +1 -1
  213. package/dist/types/ReadableFederationState.d.ts +3 -3
  214. package/dist/types/RegistrationApplication.d.ts +1 -1
  215. package/dist/types/RegistrationMode.d.ts +1 -1
  216. package/dist/types/RemoveComment.d.ts +1 -1
  217. package/dist/types/RemoveCommunity.d.ts +1 -1
  218. package/dist/types/RemovePost.d.ts +1 -1
  219. package/dist/types/ReportType.d.ts +1 -1
  220. package/dist/types/SaveUserSettings.d.ts +12 -6
  221. package/dist/types/Search.d.ts +6 -1
  222. package/dist/types/SearchCombinedView.d.ts +4 -1
  223. package/dist/types/SearchResponse.d.ts +1 -0
  224. package/dist/types/SearchSortType.d.ts +1 -1
  225. package/dist/types/SearchType.d.ts +1 -1
  226. package/dist/types/Site.d.ts +4 -3
  227. package/dist/types/SiteResponse.d.ts +0 -4
  228. package/dist/types/SiteView.d.ts +2 -0
  229. package/dist/types/Tag.d.ts +7 -13
  230. package/dist/types/Tagline.d.ts +4 -3
  231. package/dist/types/Tagline.js +0 -1
  232. package/dist/types/TagsView.d.ts +5 -0
  233. package/dist/types/TagsView.js +2 -0
  234. package/dist/types/UntranslatedError.d.ts +14 -0
  235. package/dist/types/UntranslatedError.js +3 -0
  236. package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
  237. package/dist/types/UpdateCommunityNotifications.js +2 -0
  238. package/dist/types/UpdateCommunityTag.d.ts +9 -0
  239. package/dist/types/UpdateCommunityTag.js +2 -0
  240. package/dist/types/UpdateMultiCommunity.d.ts +7 -0
  241. package/dist/types/UpdateMultiCommunity.js +2 -0
  242. package/dist/types/UpdatePostNotifications.d.ts +9 -0
  243. package/dist/types/UpdatePostNotifications.js +2 -0
  244. package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
  245. package/dist/types/UserBlockInstanceCommunitiesParams.js +2 -0
  246. package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
  247. package/dist/types/UserBlockInstancePersonsParams.js +2 -0
  248. package/dist/types/UserSettingsBackup.d.ts +29 -0
  249. package/dist/types/UserSettingsBackup.js +2 -0
  250. package/dist/types/VoteShow.d.ts +4 -0
  251. package/dist/types/VoteShow.js +3 -0
  252. package/dist/types/VoteView.d.ts +2 -1
  253. package/package.json +7 -6
  254. package/dist/types/BanPersonResponse.d.ts +0 -8
  255. package/dist/types/BlockCommunityResponse.d.ts +0 -8
  256. package/dist/types/BlockPersonResponse.d.ts +0 -8
  257. package/dist/types/CommentReply.d.ts +0 -13
  258. package/dist/types/CommentReplyId.d.ts +0 -4
  259. package/dist/types/CommentReplyView.d.ts +0 -27
  260. package/dist/types/FederationError.d.ts +0 -10
  261. package/dist/types/GetCommunityPendingFollowsCount.d.ts +0 -4
  262. package/dist/types/InboxCombinedView.d.ts +0 -13
  263. package/dist/types/InboxDataType.d.ts +0 -4
  264. package/dist/types/MarkCommentReplyAsRead.d.ts +0 -8
  265. package/dist/types/MarkPersonCommentMentionAsRead.d.ts +0 -8
  266. package/dist/types/MarkPersonPostMentionAsRead.d.ts +0 -8
  267. package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -8
  268. package/dist/types/ModAdd.d.ts +0 -12
  269. package/dist/types/ModAddCommunityId.d.ts +0 -1
  270. package/dist/types/ModAddId.d.ts +0 -1
  271. package/dist/types/ModBan.d.ts +0 -14
  272. package/dist/types/ModBanId.d.ts +0 -1
  273. package/dist/types/ModRemoveCommunityId.d.ts +0 -1
  274. package/dist/types/ModRemoveCommunityView.d.ts +0 -11
  275. package/dist/types/PersonCommentMention.d.ts +0 -13
  276. package/dist/types/PersonCommentMentionId.d.ts +0 -4
  277. package/dist/types/PersonCommentMentionView.d.ts +0 -27
  278. package/dist/types/PersonPostMention.d.ts +0 -13
  279. package/dist/types/PersonPostMentionId.d.ts +0 -4
  280. package/dist/types/PersonPostMentionView.d.ts +0 -27
  281. package/dist/types/PostPaginationCursor.d.ts +0 -7
  282. package/dist/types/ResolveObjectResponse.d.ts +0 -13
  283. /package/dist/types/{BanPersonResponse.js → AdminAdd.js} +0 -0
  284. /package/dist/types/{CommentReplyId.js → AdminAddId.js} +0 -0
  285. /package/dist/types/{BannedPersonsResponse.js → AdminAddView.js} +0 -0
  286. /package/dist/types/{BlockCommunityResponse.js → AdminBan.js} +0 -0
  287. /package/dist/types/{FederationError.js → AdminBanId.js} +0 -0
  288. /package/dist/types/{BlockPersonResponse.js → AdminBanView.js} +0 -0
  289. /package/dist/types/{CommentReply.js → AdminListUsers.js} +0 -0
  290. /package/dist/types/{CommentReplyView.js → AdminListUsersResponse.js} +0 -0
  291. /package/dist/types/{GetCommunityPendingFollowsCount.js → AdminRemoveCommunity.js} +0 -0
  292. /package/dist/types/{InboxDataType.js → AdminRemoveCommunityId.js} +0 -0
  293. /package/dist/types/{InboxCombinedView.js → AdminRemoveCommunityView.js} +0 -0
  294. /package/dist/types/{ListBannedPersons.js → CommunityIdQuery.js} +0 -0
  295. /package/dist/types/{ModAddCommunityId.js → CommunityNotificationsMode.js} +0 -0
  296. /package/dist/types/{ListInbox.js → CreateCommunityTag.js} +0 -0
  297. /package/dist/types/{ModAddId.js → CreateMultiCommunity.js} +0 -0
  298. /package/dist/types/{ListInboxResponse.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
  299. /package/dist/types/{MarkCommentReplyAsRead.js → DeleteCommunityTag.js} +0 -0
  300. /package/dist/types/{MarkPersonCommentMentionAsRead.js → ExportDataResponse.js} +0 -0
  301. /package/dist/types/{MarkPersonPostMentionAsRead.js → FollowMultiCommunity.js} +0 -0
  302. /package/dist/types/{MarkPrivateMessageAsRead.js → GetMultiCommunity.js} +0 -0
  303. /package/dist/types/{ModAdd.js → GetMultiCommunityResponse.js} +0 -0
  304. /package/dist/types/{ModBanId.js → LikeType.js} +0 -0
  305. /package/dist/types/{ModAddCommunity.js → ListMultiCommunities.js} +0 -0
  306. /package/dist/types/{ModAddCommunityView.js → ListMultiCommunitiesResponse.js} +0 -0
  307. /package/dist/types/{ModAddView.js → ListNotifications.js} +0 -0
  308. /package/dist/types/{ModBan.js → ListNotificationsResponse.js} +0 -0
  309. /package/dist/types/{ModBanView.js → ListPersonHidden.js} +0 -0
  310. /package/dist/types/{ModRemoveCommunity.js → ListPersonHiddenResponse.js} +0 -0
  311. /package/dist/types/{ModRemoveCommunityView.js → ListPersonLiked.js} +0 -0
  312. /package/dist/types/{PersonCommentMention.js → ListPersonLikedResponse.js} +0 -0
  313. /package/dist/types/{PersonCommentMentionView.js → ListPersonRead.js} +0 -0
  314. /package/dist/types/{PersonPostMention.js → ListPersonReadResponse.js} +0 -0
  315. /package/dist/types/{PersonPostMentionView.js → LockComment.js} +0 -0
  316. /package/dist/types/{ResolveObjectResponse.js → MarkNotificationAsRead.js} +0 -0
  317. /package/dist/types/{UserBlockInstanceParams.js → ModAddToCommunity.js} +0 -0
  318. /package/dist/types/{ModRemoveCommunityId.js → ModAddToCommunityId.js} +0 -0
  319. /package/dist/types/{PersonCommentMentionId.js → ModLockCommentId.js} +0 -0
  320. /package/dist/types/{PersonPostMentionId.js → MultiCommunityId.js} +0 -0
  321. /package/dist/types/{PostPaginationCursor.js → NotificationDataType.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -5,14 +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 { AdminAdd } from "./types/AdminAdd";
9
+ export { AdminAddId } from "./types/AdminAddId";
10
+ export { AdminAddView } from "./types/AdminAddView";
8
11
  export { AdminAllowInstance } from "./types/AdminAllowInstance";
9
12
  export { AdminAllowInstanceId } from "./types/AdminAllowInstanceId";
10
13
  export { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
11
14
  export { AdminAllowInstanceView } from "./types/AdminAllowInstanceView";
15
+ export { AdminBan } from "./types/AdminBan";
16
+ export { AdminBanId } from "./types/AdminBanId";
17
+ export { AdminBanView } from "./types/AdminBanView";
12
18
  export { AdminBlockInstance } from "./types/AdminBlockInstance";
13
19
  export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
14
20
  export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
15
21
  export { AdminBlockInstanceView } from "./types/AdminBlockInstanceView";
22
+ export { AdminListUsers } from "./types/AdminListUsers";
23
+ export { AdminListUsersResponse } from "./types/AdminListUsersResponse";
16
24
  export { AdminPurgeComment } from "./types/AdminPurgeComment";
17
25
  export { AdminPurgeCommentId } from "./types/AdminPurgeCommentId";
18
26
  export { AdminPurgeCommentView } from "./types/AdminPurgeCommentView";
@@ -25,26 +33,23 @@ export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
25
33
  export { AdminPurgePost } from "./types/AdminPurgePost";
26
34
  export { AdminPurgePostId } from "./types/AdminPurgePostId";
27
35
  export { AdminPurgePostView } from "./types/AdminPurgePostView";
36
+ export { AdminRemoveCommunity } from "./types/AdminRemoveCommunity";
37
+ export { AdminRemoveCommunityId } from "./types/AdminRemoveCommunityId";
38
+ export { AdminRemoveCommunityView } from "./types/AdminRemoveCommunityView";
39
+ export {} from "./types/AllLemmyErrors";
28
40
  export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
29
41
  export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
30
42
  export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
31
43
  export { BanFromCommunity } from "./types/BanFromCommunity";
32
44
  export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
33
45
  export { BanPerson } from "./types/BanPerson";
34
- export { BanPersonResponse } from "./types/BanPersonResponse";
35
- export { BannedPersonsResponse } from "./types/BannedPersonsResponse";
36
46
  export { BlockCommunity } from "./types/BlockCommunity";
37
- export { BlockCommunityResponse } from "./types/BlockCommunityResponse";
38
47
  export { BlockPerson } from "./types/BlockPerson";
39
- export { BlockPersonResponse } from "./types/BlockPersonResponse";
40
48
  export { CaptchaResponse } from "./types/CaptchaResponse";
41
49
  export { ChangePassword } from "./types/ChangePassword";
42
50
  export { Comment } from "./types/Comment";
43
51
  export { CommentActions } from "./types/CommentActions";
44
52
  export { CommentId } from "./types/CommentId";
45
- export { CommentReply } from "./types/CommentReply";
46
- export { CommentReplyId } from "./types/CommentReplyId";
47
- export { CommentReplyView } from "./types/CommentReplyView";
48
53
  export { CommentReport } from "./types/CommentReport";
49
54
  export { CommentReportId } from "./types/CommentReportId";
50
55
  export { CommentReportResponse } from "./types/CommentReportResponse";
@@ -58,7 +63,9 @@ export { CommunityActions } from "./types/CommunityActions";
58
63
  export { CommunityFollowerState } from "./types/CommunityFollowerState";
59
64
  export { CommunityFollowerView } from "./types/CommunityFollowerView";
60
65
  export { CommunityId } from "./types/CommunityId";
66
+ export { CommunityIdQuery } from "./types/CommunityIdQuery";
61
67
  export { CommunityModeratorView } from "./types/CommunityModeratorView";
68
+ export { CommunityNotificationsMode } from "./types/CommunityNotificationsMode";
62
69
  export { CommunityReport } from "./types/CommunityReport";
63
70
  export { CommunityReportId } from "./types/CommunityReportId";
64
71
  export { CommunityReportResponse } from "./types/CommunityReportResponse";
@@ -72,8 +79,11 @@ export { CreateCommentLike } from "./types/CreateCommentLike";
72
79
  export { CreateCommentReport } from "./types/CreateCommentReport";
73
80
  export { CreateCommunity } from "./types/CreateCommunity";
74
81
  export { CreateCommunityReport } from "./types/CreateCommunityReport";
82
+ export { CreateCommunityTag } from "./types/CreateCommunityTag";
75
83
  export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
84
+ export { CreateMultiCommunity } from "./types/CreateMultiCommunity";
76
85
  export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
86
+ export { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
77
87
  export { CreatePost } from "./types/CreatePost";
78
88
  export { CreatePostLike } from "./types/CreatePostLike";
79
89
  export { CreatePostReport } from "./types/CreatePostReport";
@@ -90,6 +100,7 @@ export { DbUrl } from "./types/DbUrl";
90
100
  export { DeleteAccount } from "./types/DeleteAccount";
91
101
  export { DeleteComment } from "./types/DeleteComment";
92
102
  export { DeleteCommunity } from "./types/DeleteCommunity";
103
+ export { DeleteCommunityTag } from "./types/DeleteCommunityTag";
93
104
  export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
94
105
  export { DeleteImageParams } from "./types/DeleteImageParams";
95
106
  export { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
@@ -104,12 +115,13 @@ export { EditOAuthProvider } from "./types/EditOAuthProvider";
104
115
  export { EditPost } from "./types/EditPost";
105
116
  export { EditPrivateMessage } from "./types/EditPrivateMessage";
106
117
  export { EditSite } from "./types/EditSite";
118
+ export { ExportDataResponse } from "./types/ExportDataResponse";
107
119
  export { FeaturePost } from "./types/FeaturePost";
108
120
  export { FederatedInstances } from "./types/FederatedInstances";
109
121
  export { FederationBlockList } from "./types/FederationBlockList";
110
- export { FederationError } from "./types/FederationError";
111
122
  export { FederationMode } from "./types/FederationMode";
112
123
  export { FollowCommunity } from "./types/FollowCommunity";
124
+ export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
113
125
  export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
114
126
  export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
115
127
  export { GetComment } from "./types/GetComment";
@@ -117,12 +129,13 @@ export { GetComments } from "./types/GetComments";
117
129
  export { GetCommentsResponse } from "./types/GetCommentsResponse";
118
130
  export { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
119
131
  export { GetCommunity } from "./types/GetCommunity";
120
- export { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
121
132
  export { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
122
133
  export { GetCommunityResponse } from "./types/GetCommunityResponse";
123
134
  export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
124
135
  export { GetModlog } from "./types/GetModlog";
125
136
  export { GetModlogResponse } from "./types/GetModlogResponse";
137
+ export { GetMultiCommunity } from "./types/GetMultiCommunity";
138
+ export { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
126
139
  export { GetPersonDetails } from "./types/GetPersonDetails";
127
140
  export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
128
141
  export { GetPost } from "./types/GetPost";
@@ -143,8 +156,6 @@ export { HidePost } from "./types/HidePost";
143
156
  export { ImageDetails } from "./types/ImageDetails";
144
157
  export { ImageGetParams } from "./types/ImageGetParams";
145
158
  export { ImageProxyParams } from "./types/ImageProxyParams";
146
- export { InboxCombinedView } from "./types/InboxCombinedView";
147
- export { InboxDataType } from "./types/InboxDataType";
148
159
  export { Instance } from "./types/Instance";
149
160
  export { InstanceActions } from "./types/InstanceActions";
150
161
  export { InstanceId } from "./types/InstanceId";
@@ -152,8 +163,8 @@ export { InstanceWithFederationState } from "./types/InstanceWithFederationState
152
163
  export { Language } from "./types/Language";
153
164
  export { LanguageId } from "./types/LanguageId";
154
165
  export { LemmyErrorType } from "./types/LemmyErrorType";
166
+ export { LikeType } from "./types/LikeType";
155
167
  export { LinkMetadata } from "./types/LinkMetadata";
156
- export { ListBannedPersons } from "./types/ListBannedPersons";
157
168
  export { ListCommentLikes } from "./types/ListCommentLikes";
158
169
  export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
159
170
  export { ListCommunities } from "./types/ListCommunities";
@@ -162,13 +173,21 @@ export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
162
173
  export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
163
174
  export { ListCustomEmojis } from "./types/ListCustomEmojis";
164
175
  export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
165
- export { ListInbox } from "./types/ListInbox";
166
- export { ListInboxResponse } from "./types/ListInboxResponse";
167
176
  export { ListLoginsResponse } from "./types/ListLoginsResponse";
168
177
  export { ListMedia } from "./types/ListMedia";
169
178
  export { ListMediaResponse } from "./types/ListMediaResponse";
179
+ export { ListMultiCommunities } from "./types/ListMultiCommunities";
180
+ export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
181
+ export { ListNotifications } from "./types/ListNotifications";
182
+ export { ListNotificationsResponse } from "./types/ListNotificationsResponse";
170
183
  export { ListPersonContent } from "./types/ListPersonContent";
171
184
  export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
185
+ export { ListPersonHidden } from "./types/ListPersonHidden";
186
+ export { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
187
+ export { ListPersonLiked } from "./types/ListPersonLiked";
188
+ export { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
189
+ export { ListPersonRead } from "./types/ListPersonRead";
190
+ export { ListPersonReadResponse } from "./types/ListPersonReadResponse";
172
191
  export { ListPersonSaved } from "./types/ListPersonSaved";
173
192
  export { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
174
193
  export { ListPostLikes } from "./types/ListPostLikes";
@@ -189,43 +208,36 @@ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
189
208
  export { LocalUser } from "./types/LocalUser";
190
209
  export { LocalUserId } from "./types/LocalUserId";
191
210
  export { LocalUserView } from "./types/LocalUserView";
211
+ export { LockComment } from "./types/LockComment";
192
212
  export { LockPost } from "./types/LockPost";
193
213
  export { Login } from "./types/Login";
194
214
  export { LoginResponse } from "./types/LoginResponse";
195
215
  export { LoginToken } from "./types/LoginToken";
196
- export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
197
216
  export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
198
- export { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
199
- export { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
217
+ export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
200
218
  export { MarkPostAsRead } from "./types/MarkPostAsRead";
201
- export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
202
- export { ModAdd } from "./types/ModAdd";
203
- export { ModAddCommunity } from "./types/ModAddCommunity";
204
- export { ModAddCommunityId } from "./types/ModAddCommunityId";
205
- export { ModAddCommunityView } from "./types/ModAddCommunityView";
206
- export { ModAddId } from "./types/ModAddId";
207
- export { ModAddView } from "./types/ModAddView";
208
- export { ModBan } from "./types/ModBan";
219
+ export { ModAddToCommunity } from "./types/ModAddToCommunity";
220
+ export { ModAddToCommunityId } from "./types/ModAddToCommunityId";
221
+ export { ModAddToCommunityView } from "./types/ModAddToCommunityView";
209
222
  export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
210
223
  export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
211
224
  export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
212
- export { ModBanId } from "./types/ModBanId";
213
- export { ModBanView } from "./types/ModBanView";
214
225
  export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
215
226
  export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
216
227
  export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
228
+ export { ModEditPost } from "./types/ModEditPost";
217
229
  export { ModFeaturePost } from "./types/ModFeaturePost";
218
230
  export { ModFeaturePostId } from "./types/ModFeaturePostId";
219
231
  export { ModFeaturePostView } from "./types/ModFeaturePostView";
232
+ export { ModLockComment } from "./types/ModLockComment";
233
+ export { ModLockCommentId } from "./types/ModLockCommentId";
234
+ export { ModLockCommentView } from "./types/ModLockCommentView";
220
235
  export { ModLockPost } from "./types/ModLockPost";
221
236
  export { ModLockPostId } from "./types/ModLockPostId";
222
237
  export { ModLockPostView } from "./types/ModLockPostView";
223
238
  export { ModRemoveComment } from "./types/ModRemoveComment";
224
239
  export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
225
240
  export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
226
- export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
227
- export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
228
- export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
229
241
  export { ModRemovePost } from "./types/ModRemovePost";
230
242
  export { ModRemovePostId } from "./types/ModRemovePostId";
231
243
  export { ModRemovePostView } from "./types/ModRemovePostView";
@@ -234,7 +246,20 @@ export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
234
246
  export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
235
247
  export { ModlogActionType } from "./types/ModlogActionType";
236
248
  export { ModlogCombinedView } from "./types/ModlogCombinedView";
249
+ export { MultiCommunity } from "./types/MultiCommunity";
250
+ export { MultiCommunityEntry } from "./types/MultiCommunityEntry";
251
+ export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
252
+ export { MultiCommunityId } from "./types/MultiCommunityId";
253
+ export { MultiCommunityResponse } from "./types/MultiCommunityResponse";
254
+ export { MultiCommunityView } from "./types/MultiCommunityView";
237
255
  export { MyUserInfo } from "./types/MyUserInfo";
256
+ export { NotePerson } from "./types/NotePerson";
257
+ export { Notification } from "./types/Notification";
258
+ export { NotificationData } from "./types/NotificationData";
259
+ export { NotificationDataType } from "./types/NotificationDataType";
260
+ export { NotificationId } from "./types/NotificationId";
261
+ export { NotificationType } from "./types/NotificationType";
262
+ export { NotificationView } from "./types/NotificationView";
238
263
  export { OAuthAccount } from "./types/OAuthAccount";
239
264
  export { OAuthProvider } from "./types/OAuthProvider";
240
265
  export { OAuthProviderId } from "./types/OAuthProviderId";
@@ -243,25 +268,24 @@ export { PaginationCursor } from "./types/PaginationCursor";
243
268
  export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
244
269
  export { PasswordReset } from "./types/PasswordReset";
245
270
  export { PendingFollow } from "./types/PendingFollow";
271
+ export { PendingFollowerView } from "./types/PendingFollowerView";
246
272
  export { Person } from "./types/Person";
247
273
  export { PersonActions } from "./types/PersonActions";
248
- export { PersonCommentMention } from "./types/PersonCommentMention";
249
- export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
250
- export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
251
274
  export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
252
275
  export { PersonContentType } from "./types/PersonContentType";
253
276
  export { PersonId } from "./types/PersonId";
254
- export { PersonPostMention } from "./types/PersonPostMention";
255
- export { PersonPostMentionId } from "./types/PersonPostMentionId";
256
- export { PersonPostMentionView } from "./types/PersonPostMentionView";
277
+ export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
278
+ export { PersonResponse } from "./types/PersonResponse";
257
279
  export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
258
280
  export { PersonView } from "./types/PersonView";
281
+ export { PluginMetadata } from "./types/PluginMetadata";
259
282
  export { Post } from "./types/Post";
260
283
  export { PostActions } from "./types/PostActions";
261
284
  export { PostFeatureType } from "./types/PostFeatureType";
262
285
  export { PostId } from "./types/PostId";
263
286
  export { PostListingMode } from "./types/PostListingMode";
264
- export { PostPaginationCursor } from "./types/PostPaginationCursor";
287
+ export { PostNotificationsMode } from "./types/PostNotificationsMode";
288
+ export { PostOrCommentOrPrivateMessage } from "./types/PostOrCommentOrPrivateMessage";
265
289
  export { PostReport } from "./types/PostReport";
266
290
  export { PostReportId } from "./types/PostReportId";
267
291
  export { PostReportResponse } from "./types/PostReportResponse";
@@ -298,7 +322,6 @@ export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
298
322
  export { ResolveCommentReport } from "./types/ResolveCommentReport";
299
323
  export { ResolveCommunityReport } from "./types/ResolveCommunityReport";
300
324
  export { ResolveObject } from "./types/ResolveObject";
301
- export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
302
325
  export { ResolvePostReport } from "./types/ResolvePostReport";
303
326
  export { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
304
327
  export { SaveComment } from "./types/SaveComment";
@@ -320,11 +343,20 @@ export { TagId } from "./types/TagId";
320
343
  export { Tagline } from "./types/Tagline";
321
344
  export { TaglineId } from "./types/TaglineId";
322
345
  export { TaglineResponse } from "./types/TaglineResponse";
346
+ export { TagsView } from "./types/TagsView";
323
347
  export { TransferCommunity } from "./types/TransferCommunity";
348
+ export { UntranslatedError } from "./types/UntranslatedError";
349
+ export { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
350
+ export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
351
+ export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
352
+ export { UpdatePostNotifications } from "./types/UpdatePostNotifications";
324
353
  export { UpdateTagline } from "./types/UpdateTagline";
325
354
  export { UpdateTotp } from "./types/UpdateTotp";
326
355
  export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
327
356
  export { UploadImageResponse } from "./types/UploadImageResponse";
328
- export { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
357
+ export { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
358
+ export { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
359
+ export { UserSettingsBackup } from "./types/UserSettingsBackup";
329
360
  export { VerifyEmail } from "./types/VerifyEmail";
361
+ export { VoteShow } from "./types/VoteShow";
330
362
  export { VoteView } from "./types/VoteView";
@@ -1,9 +1,11 @@
1
+ import { AdminListUsers } from "./types/AdminListUsers";
2
+ import { CommunityIdQuery } from "./types/CommunityIdQuery";
1
3
  import { DeleteImageParams } from "./types/DeleteImageParams";
2
4
  import { GetComment } from "./types/GetComment";
3
5
  import { GetComments } from "./types/GetComments";
4
6
  import { GetCommunity } from "./types/GetCommunity";
5
- import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
6
7
  import { GetModlog } from "./types/GetModlog";
8
+ import { GetMultiCommunity } from "./types/GetMultiCommunity";
7
9
  import { GetPersonDetails } from "./types/GetPersonDetails";
8
10
  import { GetPost } from "./types/GetPost";
9
11
  import { GetPosts } from "./types/GetPosts";
@@ -11,14 +13,17 @@ import { GetRandomCommunity } from "./types/GetRandomCommunity";
11
13
  import { GetRegistrationApplication } from "./types/GetRegistrationApplication";
12
14
  import { GetReportCount } from "./types/GetReportCount";
13
15
  import { GetSiteMetadata } from "./types/GetSiteMetadata";
14
- import { ListBannedPersons } from "./types/ListBannedPersons";
15
16
  import { ListCommentLikes } from "./types/ListCommentLikes";
16
17
  import { ListCommunities } from "./types/ListCommunities";
17
18
  import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
18
19
  import { ListCustomEmojis } from "./types/ListCustomEmojis";
19
- import { ListInbox } from "./types/ListInbox";
20
+ import { ListNotifications } from "./types/ListNotifications";
20
21
  import { ListMedia } from "./types/ListMedia";
22
+ import { ListMultiCommunities } from "./types/ListMultiCommunities";
21
23
  import { ListPersonContent } from "./types/ListPersonContent";
24
+ import { ListPersonHidden } from "./types/ListPersonHidden";
25
+ import { ListPersonLiked } from "./types/ListPersonLiked";
26
+ import { ListPersonRead } from "./types/ListPersonRead";
22
27
  import { ListPersonSaved } from "./types/ListPersonSaved";
23
28
  import { ListPostLikes } from "./types/ListPostLikes";
24
29
  import { ListRegistrationApplications } from "./types/ListRegistrationApplications";
@@ -42,8 +47,6 @@ export interface GetCommunityI extends GetCommunity {
42
47
  }
43
48
  export interface ListCommunitiesI extends ListCommunities {
44
49
  }
45
- export interface GetCommunityPendingFollowsCountI extends GetCommunityPendingFollowsCount {
46
- }
47
50
  export interface ListCommunityPendingFollowsI extends ListCommunityPendingFollows {
48
51
  }
49
52
  export interface GetRandomCommunityI extends GetRandomCommunity {
@@ -68,10 +71,16 @@ export interface ListPersonContentI extends ListPersonContent {
68
71
  }
69
72
  export interface GetReportCountI extends GetReportCount {
70
73
  }
71
- export interface ListInboxI extends ListInbox {
74
+ export interface ListNotificationsI extends ListNotifications {
72
75
  }
73
76
  export interface ListPersonSavedI extends ListPersonSaved {
74
77
  }
78
+ export interface ListPersonReadI extends ListPersonRead {
79
+ }
80
+ export interface ListPersonHiddenI extends ListPersonHidden {
81
+ }
82
+ export interface ListPersonLikedI extends ListPersonLiked {
83
+ }
75
84
  export interface ListRegistrationApplicationsI extends ListRegistrationApplications {
76
85
  }
77
86
  export interface GetRegistrationApplicationI extends GetRegistrationApplication {
@@ -84,5 +93,11 @@ export interface ListReportsI extends ListReports {
84
93
  }
85
94
  export interface DeleteImageParamsI extends DeleteImageParams {
86
95
  }
87
- export interface ListBannedPersonsI extends ListBannedPersons {
96
+ export interface AdminListUsersI extends AdminListUsers {
97
+ }
98
+ export interface CommunityIdQueryI extends CommunityIdQuery {
99
+ }
100
+ export interface ListMultiCommunitiesI extends ListMultiCommunities {
101
+ }
102
+ export interface GetMultiCommunityI extends GetMultiCommunity {
88
103
  }
@@ -0,0 +1,12 @@
1
+ import type { AdminAddId } from "./AdminAddId";
2
+ import type { PersonId } from "./PersonId";
3
+ /**
4
+ * When someone is added as a site admin.
5
+ */
6
+ export type AdminAdd = {
7
+ id: AdminAddId;
8
+ mod_person_id: PersonId;
9
+ other_person_id: PersonId;
10
+ removed: boolean;
11
+ published_at: string;
12
+ };
@@ -0,0 +1 @@
1
+ export type AdminAddId = number;
@@ -1,10 +1,10 @@
1
- import type { ModAdd } from "./ModAdd";
1
+ import type { AdminAdd } from "./AdminAdd";
2
2
  import type { Person } from "./Person";
3
3
  /**
4
4
  * When someone is added as a site moderator.
5
5
  */
6
- export type ModAddView = {
7
- mod_add: ModAdd;
6
+ export type AdminAddView = {
7
+ admin_add: AdminAdd;
8
8
  moderator?: Person;
9
9
  other_person: Person;
10
10
  };
@@ -6,6 +6,6 @@ export type AdminAllowInstance = {
6
6
  instance_id: InstanceId;
7
7
  admin_person_id: PersonId;
8
8
  allowed: boolean;
9
- reason?: string;
10
- published: string;
9
+ reason: string;
10
+ published_at: string;
11
11
  };
@@ -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
  };
@@ -0,0 +1,16 @@
1
+ import type { AdminBanId } from "./AdminBanId";
2
+ import type { InstanceId } from "./InstanceId";
3
+ import type { PersonId } from "./PersonId";
4
+ /**
5
+ * When someone is banned from the site.
6
+ */
7
+ export type AdminBan = {
8
+ id: AdminBanId;
9
+ mod_person_id: PersonId;
10
+ other_person_id: PersonId;
11
+ reason: string;
12
+ banned: boolean;
13
+ expires_at?: string;
14
+ published_at: string;
15
+ instance_id: InstanceId;
16
+ };
@@ -0,0 +1 @@
1
+ export type AdminBanId = number;
@@ -1,10 +1,10 @@
1
- import type { ModBan } from "./ModBan";
1
+ import type { AdminBan } from "./AdminBan";
2
2
  import type { Person } from "./Person";
3
3
  /**
4
4
  * When someone is banned from the site.
5
5
  */
6
- export type ModBanView = {
7
- mod_ban: ModBan;
6
+ export type AdminBanView = {
7
+ admin_ban: AdminBan;
8
8
  moderator?: Person;
9
9
  other_person: Person;
10
10
  };
@@ -6,7 +6,7 @@ export type AdminBlockInstance = {
6
6
  instance_id: InstanceId;
7
7
  admin_person_id: PersonId;
8
8
  blocked: boolean;
9
- reason?: string;
10
- expires?: string;
11
- published: string;
9
+ reason: string;
10
+ expires_at?: string;
11
+ published_at: string;
12
12
  };
@@ -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,7 @@
1
+ import type { PaginationCursor } from "./PaginationCursor";
2
+ export type AdminListUsers = {
3
+ banned_only?: boolean;
4
+ page_cursor?: PaginationCursor;
5
+ page_back?: boolean;
6
+ limit?: number;
7
+ };
@@ -1,12 +1,10 @@
1
+ import type { LocalUserView } from "./LocalUserView";
1
2
  import type { PaginationCursor } from "./PaginationCursor";
2
- import type { PersonView } from "./PersonView";
3
- /**
4
- * The list of banned persons.
5
- */
6
- export type BannedPersonsResponse = {
7
- banned: Array<PersonView>;
3
+ export type AdminListUsersResponse = {
4
+ users: Array<LocalUserView>;
8
5
  /**
9
6
  * the pagination cursor to use to fetch the next page
10
7
  */
11
8
  next_page?: PaginationCursor;
9
+ prev_page?: PaginationCursor;
12
10
  };
@@ -8,6 +8,6 @@ export type AdminPurgeComment = {
8
8
  id: AdminPurgeCommentId;
9
9
  admin_person_id: PersonId;
10
10
  post_id: PostId;
11
- reason?: string;
12
- published: string;
11
+ reason: string;
12
+ published_at: string;
13
13
  };
@@ -6,6 +6,6 @@ import type { PersonId } from "./PersonId";
6
6
  export type AdminPurgeCommunity = {
7
7
  id: AdminPurgeCommunityId;
8
8
  admin_person_id: PersonId;
9
- reason?: string;
10
- published: string;
9
+ reason: string;
10
+ published_at: string;
11
11
  };
@@ -6,6 +6,6 @@ import type { PersonId } from "./PersonId";
6
6
  export type AdminPurgePerson = {
7
7
  id: AdminPurgePersonId;
8
8
  admin_person_id: PersonId;
9
- reason?: string;
10
- published: string;
9
+ reason: string;
10
+ published_at: string;
11
11
  };
@@ -8,6 +8,6 @@ export type AdminPurgePost = {
8
8
  id: AdminPurgePostId;
9
9
  admin_person_id: PersonId;
10
10
  community_id: CommunityId;
11
- reason?: string;
12
- published: string;
11
+ reason: string;
12
+ published_at: string;
13
13
  };
@@ -1,14 +1,14 @@
1
+ import type { AdminRemoveCommunityId } from "./AdminRemoveCommunityId";
1
2
  import type { CommunityId } from "./CommunityId";
2
- import type { ModRemoveCommunityId } from "./ModRemoveCommunityId";
3
3
  import type { PersonId } from "./PersonId";
4
4
  /**
5
5
  * When a moderator removes a community.
6
6
  */
7
- export type ModRemoveCommunity = {
8
- id: ModRemoveCommunityId;
7
+ export type AdminRemoveCommunity = {
8
+ id: AdminRemoveCommunityId;
9
9
  mod_person_id: PersonId;
10
10
  community_id: CommunityId;
11
- reason?: string;
11
+ reason: string;
12
12
  removed: boolean;
13
- published: string;
13
+ published_at: string;
14
14
  };
@@ -0,0 +1 @@
1
+ export type AdminRemoveCommunityId = number;
@@ -0,0 +1,11 @@
1
+ import type { AdminRemoveCommunity } from "./AdminRemoveCommunity";
2
+ import type { Community } from "./Community";
3
+ import type { Person } from "./Person";
4
+ /**
5
+ * When an admin removes a community.
6
+ */
7
+ export type AdminRemoveCommunityView = {
8
+ admin_remove_community: AdminRemoveCommunity;
9
+ moderator?: Person;
10
+ community: Community;
11
+ };
@@ -0,0 +1 @@
1
+ export declare const AllLemmyErrors: string[];