lemmy-js-client 1.0.0-remove-page-limit.1 → 1.0.0-remove-ban-person-response.1

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