lemmy-js-client 1.0.0-search-query-mandatory.1 → 1.0.0-search-resolve-field.0

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