lemmy-js-client 1.0.0-block-nsfw.1 → 1.0.0-comment-lock.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 (285) hide show
  1. package/README.md +6 -0
  2. package/dist/http.d.ts +125 -43
  3. package/dist/http.js +1135 -916
  4. package/dist/index.d.ts +65 -36
  5. package/dist/other_types.d.ts +23 -2
  6. package/dist/types/AdminAllowInstance.d.ts +1 -1
  7. package/dist/types/AdminBlockInstance.d.ts +2 -2
  8. package/dist/types/AdminBlockInstanceParams.d.ts +1 -1
  9. package/dist/types/AdminListUsers.d.ts +7 -0
  10. package/dist/types/AdminListUsersResponse.d.ts +10 -0
  11. package/dist/types/AdminPurgeComment.d.ts +1 -1
  12. package/dist/types/AdminPurgeCommunity.d.ts +1 -1
  13. package/dist/types/AdminPurgePerson.d.ts +1 -1
  14. package/dist/types/AdminPurgePost.d.ts +1 -1
  15. package/dist/types/BanFromCommunity.d.ts +1 -1
  16. package/dist/types/BanPerson.d.ts +1 -1
  17. package/dist/types/Comment.d.ts +20 -2
  18. package/dist/types/CommentActions.d.ts +14 -0
  19. package/dist/types/CommentReport.d.ts +2 -2
  20. package/dist/types/CommentReportView.d.ts +10 -13
  21. package/dist/types/CommentResponse.d.ts +0 -2
  22. package/dist/types/CommentSlimView.d.ts +7 -13
  23. package/dist/types/CommentView.d.ts +11 -13
  24. package/dist/types/Community.d.ts +25 -6
  25. package/dist/types/CommunityActions.d.ts +29 -0
  26. package/dist/types/CommunityIdQuery.d.ts +8 -0
  27. package/dist/types/CommunityNotificationsMode.d.ts +4 -0
  28. package/dist/types/CommunityReport.d.ts +2 -2
  29. package/dist/types/CommunityReportResponse.d.ts +7 -0
  30. package/dist/types/CommunityReportView.d.ts +4 -4
  31. package/dist/types/CommunityView.d.ts +4 -6
  32. package/dist/types/CommunityVisibility.d.ts +1 -1
  33. package/dist/types/CreateCommunityReport.d.ts +8 -0
  34. package/dist/types/CreateCommunityTag.d.ts +10 -0
  35. package/dist/types/CreateMultiCommunity.d.ts +5 -0
  36. package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
  37. package/dist/types/CreatePost.d.ts +1 -1
  38. package/dist/types/CreateSite.d.ts +18 -14
  39. package/dist/types/CustomEmoji.d.ts +2 -2
  40. package/dist/types/DeleteCommunityTag.d.ts +7 -0
  41. package/dist/types/EditPost.d.ts +2 -2
  42. package/dist/types/EditSite.d.ts +26 -21
  43. package/dist/types/ExportDataResponse.d.ts +13 -0
  44. package/dist/types/FederationBlockList.d.ts +3 -3
  45. package/dist/types/FederationError.d.ts +3 -1
  46. package/dist/types/FollowMultiCommunity.d.ts +5 -0
  47. package/dist/types/GetComments.d.ts +3 -3
  48. package/dist/types/GetCommentsResponse.d.ts +3 -0
  49. package/dist/types/GetCommentsSlimResponse.d.ts +3 -0
  50. package/dist/types/GetModlog.d.ts +3 -2
  51. package/dist/types/GetModlogResponse.d.ts +6 -0
  52. package/dist/types/GetMultiCommunity.d.ts +4 -0
  53. package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
  54. package/dist/types/GetPosts.d.ts +3 -9
  55. package/dist/types/GetPostsResponse.d.ts +1 -0
  56. package/dist/types/GetSiteResponse.d.ts +4 -2
  57. package/dist/types/Instance.d.ts +13 -3
  58. package/dist/types/InstanceActions.d.ts +18 -0
  59. package/dist/types/InstanceWithFederationState.d.ts +11 -2
  60. package/dist/types/LemmyErrorType.d.ts +94 -29
  61. package/dist/types/LikeType.d.ts +4 -0
  62. package/dist/types/ListCommentLikes.d.ts +3 -1
  63. package/dist/types/ListCommentLikesResponse.d.ts +6 -0
  64. package/dist/types/ListCommunities.d.ts +3 -1
  65. package/dist/types/ListCommunitiesResponse.d.ts +6 -0
  66. package/dist/types/ListCommunityPendingFollows.d.ts +3 -1
  67. package/dist/types/ListCommunityPendingFollows.js +0 -1
  68. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +6 -0
  69. package/dist/types/ListCustomEmojis.d.ts +0 -3
  70. package/dist/types/ListMedia.d.ts +3 -1
  71. package/dist/types/ListMedia.js +0 -1
  72. package/dist/types/ListMediaResponse.d.ts +6 -0
  73. package/dist/types/ListMultiCommunities.d.ts +5 -0
  74. package/dist/types/ListMultiCommunitiesResponse.d.ts +4 -0
  75. package/dist/types/ListNotifications.d.ts +12 -0
  76. package/dist/types/ListNotificationsResponse.d.ts +13 -0
  77. package/dist/types/ListPersonContent.d.ts +3 -2
  78. package/dist/types/ListPersonContentResponse.d.ts +6 -0
  79. package/dist/types/ListPersonHidden.d.ts +9 -0
  80. package/dist/types/ListPersonHiddenResponse.d.ts +13 -0
  81. package/dist/types/ListPersonLiked.d.ts +13 -0
  82. package/dist/types/ListPersonLikedResponse.d.ts +13 -0
  83. package/dist/types/ListPersonRead.d.ts +9 -0
  84. package/dist/types/ListPersonReadResponse.d.ts +13 -0
  85. package/dist/types/ListPersonSaved.d.ts +3 -2
  86. package/dist/types/ListPersonSavedResponse.d.ts +8 -2
  87. package/dist/types/ListPostLikes.d.ts +3 -1
  88. package/dist/types/ListPostLikesResponse.d.ts +6 -0
  89. package/dist/types/ListRegistrationApplications.d.ts +3 -1
  90. package/dist/types/ListRegistrationApplications.js +0 -1
  91. package/dist/types/ListRegistrationApplicationsResponse.d.ts +6 -0
  92. package/dist/types/ListReports.d.ts +3 -2
  93. package/dist/types/ListReportsResponse.d.ts +6 -0
  94. package/dist/types/ListTaglines.d.ts +3 -1
  95. package/dist/types/ListTaglines.js +0 -1
  96. package/dist/types/ListTaglinesResponse.d.ts +6 -0
  97. package/dist/types/ListingType.d.ts +1 -1
  98. package/dist/types/LocalImage.d.ts +8 -3
  99. package/dist/types/LocalImageView.d.ts +2 -0
  100. package/dist/types/LocalSite.d.ts +30 -11
  101. package/dist/types/LocalSiteRateLimit.d.ts +16 -16
  102. package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
  103. package/dist/types/LocalUser.d.ts +7 -1
  104. package/dist/types/LocalUserView.d.ts +1 -4
  105. package/dist/types/LockComment.d.ts +6 -0
  106. package/dist/types/LockComment.js +2 -0
  107. package/dist/types/LockPost.d.ts +1 -0
  108. package/dist/types/Login.d.ts +3 -0
  109. package/dist/types/LoginToken.d.ts +1 -1
  110. package/dist/types/MarkNotificationAsRead.d.ts +8 -0
  111. package/dist/types/MarkNotificationAsRead.js +2 -0
  112. package/dist/types/ModAdd.d.ts +1 -1
  113. package/dist/types/ModAddCommunity.d.ts +1 -1
  114. package/dist/types/ModBan.d.ts +4 -2
  115. package/dist/types/ModBanFromCommunity.d.ts +2 -2
  116. package/dist/types/ModChangeCommunityVisibility.d.ts +11 -0
  117. package/dist/types/ModChangeCommunityVisibility.js +2 -0
  118. package/dist/types/ModChangeCommunityVisibilityId.d.ts +1 -0
  119. package/dist/types/ModChangeCommunityVisibilityView.d.ts +11 -0
  120. package/dist/types/ModChangeCommunityVisibilityView.js +2 -0
  121. package/dist/types/ModEditPost.d.ts +10 -0
  122. package/dist/types/ModEditPost.js +2 -0
  123. package/dist/types/ModFeaturePost.d.ts +1 -1
  124. package/dist/types/ModLockComment.d.ts +14 -0
  125. package/dist/types/ModLockComment.js +2 -0
  126. package/dist/types/ModLockCommentId.d.ts +1 -0
  127. package/dist/types/ModLockCommentView.d.ts +14 -0
  128. package/dist/types/ModLockCommentView.js +2 -0
  129. package/dist/types/ModLockPost.d.ts +2 -1
  130. package/dist/types/ModRemoveComment.d.ts +1 -1
  131. package/dist/types/ModRemoveCommunity.d.ts +1 -1
  132. package/dist/types/ModRemovePost.d.ts +1 -1
  133. package/dist/types/ModTransferCommunity.d.ts +1 -1
  134. package/dist/types/ModlogActionType.d.ts +1 -1
  135. package/dist/types/ModlogCombinedView.d.ts +7 -4
  136. package/dist/types/MultiCommunity.d.ts +17 -0
  137. package/dist/types/MultiCommunity.js +2 -0
  138. package/dist/types/MultiCommunityFollow.d.ts +8 -0
  139. package/dist/types/MultiCommunityFollow.js +2 -0
  140. package/dist/types/MultiCommunityId.d.ts +1 -0
  141. package/dist/types/MultiCommunityView.d.ts +6 -0
  142. package/dist/types/MultiCommunityView.js +2 -0
  143. package/dist/types/MyUserInfo.d.ts +3 -1
  144. package/dist/types/NotePerson.d.ts +10 -0
  145. package/dist/types/NotePerson.js +2 -0
  146. package/dist/types/Notification.d.ts +16 -0
  147. package/dist/types/Notification.js +2 -0
  148. package/dist/types/NotificationData.d.ts +10 -0
  149. package/dist/types/NotificationData.js +2 -0
  150. package/dist/types/NotificationDataType.d.ts +4 -0
  151. package/dist/types/NotificationId.d.ts +1 -0
  152. package/dist/types/NotificationTypes.d.ts +4 -0
  153. package/dist/types/NotificationView.d.ts +6 -0
  154. package/dist/types/NotificationView.js +2 -0
  155. package/dist/types/OAuthAccount.d.ts +2 -2
  156. package/dist/types/OAuthProvider.d.ts +2 -2
  157. package/dist/types/PaginationCursor.d.ts +1 -4
  158. package/dist/types/PendingFollow.d.ts +2 -2
  159. package/dist/types/Person.d.ts +4 -10
  160. package/dist/types/PersonActions.d.ts +26 -0
  161. package/dist/types/PersonLikedCombinedView.d.ts +7 -0
  162. package/dist/types/PersonLikedCombinedView.js +2 -0
  163. package/dist/types/PersonSavedCombinedView.d.ts +7 -0
  164. package/dist/types/PersonSavedCombinedView.js +2 -0
  165. package/dist/types/PersonView.d.ts +3 -2
  166. package/dist/types/PluginMetadata.d.ts +5 -0
  167. package/dist/types/Post.d.ts +18 -3
  168. package/dist/types/PostActions.d.ts +33 -0
  169. package/dist/types/PostActions.js +2 -0
  170. package/dist/types/PostNotificationsMode.d.ts +4 -0
  171. package/dist/types/PostNotificationsMode.js +3 -0
  172. package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
  173. package/dist/types/PostOrCommentOrPrivateMessage.js +2 -0
  174. package/dist/types/PostReport.d.ts +2 -2
  175. package/dist/types/PostReportView.d.ts +10 -16
  176. package/dist/types/PostView.d.ts +11 -18
  177. package/dist/types/PrivateMessage.d.ts +2 -3
  178. package/dist/types/PrivateMessageReport.d.ts +2 -2
  179. package/dist/types/PrivateMessageReportView.d.ts +3 -1
  180. package/dist/types/ReadableFederationState.d.ts +2 -2
  181. package/dist/types/RegistrationApplication.d.ts +1 -1
  182. package/dist/types/ResolveCommunityReport.d.ts +8 -0
  183. package/dist/types/ResolveCommunityReport.js +2 -0
  184. package/dist/types/SaveUserSettings.d.ts +7 -1
  185. package/dist/types/Search.d.ts +8 -3
  186. package/dist/types/SearchCombinedView.d.ts +4 -1
  187. package/dist/types/SearchResponse.d.ts +6 -0
  188. package/dist/types/SearchType.d.ts +1 -1
  189. package/dist/types/Site.d.ts +4 -3
  190. package/dist/types/SiteResponse.d.ts +0 -4
  191. package/dist/types/SiteView.d.ts +2 -2
  192. package/dist/types/Tag.d.ts +7 -13
  193. package/dist/types/Tagline.d.ts +4 -3
  194. package/dist/types/Tagline.js +0 -1
  195. package/dist/types/TagsView.d.ts +5 -0
  196. package/dist/types/TagsView.js +2 -0
  197. package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
  198. package/dist/types/UpdateCommunityNotifications.js +2 -0
  199. package/dist/types/UpdateCommunityTag.d.ts +9 -0
  200. package/dist/types/UpdateCommunityTag.js +2 -0
  201. package/dist/types/UpdateMultiCommunity.d.ts +7 -0
  202. package/dist/types/UpdateMultiCommunity.js +2 -0
  203. package/dist/types/UpdatePostNotifications.d.ts +9 -0
  204. package/dist/types/UpdatePostNotifications.js +2 -0
  205. package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
  206. package/dist/types/UserBlockInstanceCommunitiesParams.js +2 -0
  207. package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
  208. package/dist/types/UserBlockInstancePersonsParams.js +2 -0
  209. package/dist/types/UserSettingsBackup.d.ts +31 -0
  210. package/dist/types/UserSettingsBackup.js +2 -0
  211. package/dist/types/VoteShow.d.ts +4 -0
  212. package/dist/types/VoteShow.js +3 -0
  213. package/dist/types/VoteView.d.ts +1 -0
  214. package/package.json +10 -6
  215. package/dist/types/BannedPersonsResponse.d.ts +0 -7
  216. package/dist/types/CommentAggregates.d.ts +0 -17
  217. package/dist/types/CommentReply.d.ts +0 -13
  218. package/dist/types/CommentReplyId.d.ts +0 -4
  219. package/dist/types/CommentReplyView.d.ts +0 -31
  220. package/dist/types/CommunityAggregates.d.ts +0 -30
  221. package/dist/types/InboxCombinedPaginationCursor.d.ts +0 -4
  222. package/dist/types/InboxCombinedView.d.ts +0 -13
  223. package/dist/types/InboxDataType.d.ts +0 -4
  224. package/dist/types/ListInbox.d.ts +0 -11
  225. package/dist/types/ListInboxResponse.d.ts +0 -7
  226. package/dist/types/LocalUserVoteDisplayMode.d.ts +0 -9
  227. package/dist/types/MarkCommentReplyAsRead.d.ts +0 -8
  228. package/dist/types/MarkPersonCommentMentionAsRead.d.ts +0 -8
  229. package/dist/types/MarkPersonPostMentionAsRead.d.ts +0 -8
  230. package/dist/types/ModHideCommunity.d.ts +0 -14
  231. package/dist/types/ModHideCommunityId.d.ts +0 -1
  232. package/dist/types/ModHideCommunityView.d.ts +0 -11
  233. package/dist/types/ModlogCombinedPaginationCursor.d.ts +0 -4
  234. package/dist/types/PersonAggregates.d.ts +0 -10
  235. package/dist/types/PersonCommentMention.d.ts +0 -13
  236. package/dist/types/PersonCommentMentionId.d.ts +0 -4
  237. package/dist/types/PersonCommentMentionView.d.ts +0 -31
  238. package/dist/types/PersonContentCombinedPaginationCursor.d.ts +0 -4
  239. package/dist/types/PersonPostMention.d.ts +0 -13
  240. package/dist/types/PersonPostMentionId.d.ts +0 -4
  241. package/dist/types/PersonPostMentionView.d.ts +0 -36
  242. package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +0 -4
  243. package/dist/types/PostAggregates.d.ts +0 -18
  244. package/dist/types/PostTags.d.ts +0 -7
  245. package/dist/types/ReportCombinedPaginationCursor.d.ts +0 -4
  246. package/dist/types/ResolveObjectResponse.d.ts +0 -13
  247. package/dist/types/SearchCombinedPaginationCursor.d.ts +0 -4
  248. package/dist/types/SiteAggregates.d.ts +0 -27
  249. package/dist/types/SubscribedType.d.ts +0 -4
  250. /package/dist/types/{BannedPersonsResponse.js → AdminListUsers.js} +0 -0
  251. /package/dist/types/{CommentAggregates.js → AdminListUsersResponse.js} +0 -0
  252. /package/dist/types/{CommentReplyId.js → CommentActions.js} +0 -0
  253. /package/dist/types/{CommentReply.js → CommunityActions.js} +0 -0
  254. /package/dist/types/{CommentReplyView.js → CommunityIdQuery.js} +0 -0
  255. /package/dist/types/{InboxCombinedPaginationCursor.js → CommunityNotificationsMode.js} +0 -0
  256. /package/dist/types/{CommunityAggregates.js → CommunityReportResponse.js} +0 -0
  257. /package/dist/types/{InboxCombinedView.js → CreateCommunityReport.js} +0 -0
  258. /package/dist/types/{ListInbox.js → CreateCommunityTag.js} +0 -0
  259. /package/dist/types/{InboxDataType.js → CreateMultiCommunity.js} +0 -0
  260. /package/dist/types/{ListInboxResponse.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
  261. /package/dist/types/{MarkCommentReplyAsRead.js → DeleteCommunityTag.js} +0 -0
  262. /package/dist/types/{MarkPersonCommentMentionAsRead.js → ExportDataResponse.js} +0 -0
  263. /package/dist/types/{MarkPersonPostMentionAsRead.js → FollowMultiCommunity.js} +0 -0
  264. /package/dist/types/{ModHideCommunity.js → GetMultiCommunity.js} +0 -0
  265. /package/dist/types/{ModHideCommunityView.js → GetMultiCommunityResponse.js} +0 -0
  266. /package/dist/types/{LocalUserVoteDisplayMode.js → InstanceActions.js} +0 -0
  267. /package/dist/types/{ModHideCommunityId.js → LikeType.js} +0 -0
  268. /package/dist/types/{PersonAggregates.js → ListMultiCommunities.js} +0 -0
  269. /package/dist/types/{PersonCommentMention.js → ListMultiCommunitiesResponse.js} +0 -0
  270. /package/dist/types/{PersonCommentMentionView.js → ListNotifications.js} +0 -0
  271. /package/dist/types/{PersonPostMention.js → ListNotificationsResponse.js} +0 -0
  272. /package/dist/types/{PersonPostMentionView.js → ListPersonHidden.js} +0 -0
  273. /package/dist/types/{PostAggregates.js → ListPersonHiddenResponse.js} +0 -0
  274. /package/dist/types/{PostTags.js → ListPersonLiked.js} +0 -0
  275. /package/dist/types/{ResolveObjectResponse.js → ListPersonLikedResponse.js} +0 -0
  276. /package/dist/types/{SiteAggregates.js → ListPersonRead.js} +0 -0
  277. /package/dist/types/{UserBlockInstanceParams.js → ListPersonReadResponse.js} +0 -0
  278. /package/dist/types/{ModlogCombinedPaginationCursor.js → ModChangeCommunityVisibilityId.js} +0 -0
  279. /package/dist/types/{PersonCommentMentionId.js → ModLockCommentId.js} +0 -0
  280. /package/dist/types/{PersonContentCombinedPaginationCursor.js → MultiCommunityId.js} +0 -0
  281. /package/dist/types/{PersonPostMentionId.js → NotificationDataType.js} +0 -0
  282. /package/dist/types/{PersonSavedCombinedPaginationCursor.js → NotificationId.js} +0 -0
  283. /package/dist/types/{ReportCombinedPaginationCursor.js → NotificationTypes.js} +0 -0
  284. /package/dist/types/{SearchCombinedPaginationCursor.js → PersonActions.js} +0 -0
  285. /package/dist/types/{SubscribedType.js → PluginMetadata.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -13,6 +13,8 @@ export { AdminBlockInstance } from "./types/AdminBlockInstance";
13
13
  export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
14
14
  export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
15
15
  export { AdminBlockInstanceView } from "./types/AdminBlockInstanceView";
16
+ export { AdminListUsers } from "./types/AdminListUsers";
17
+ export { AdminListUsersResponse } from "./types/AdminListUsersResponse";
16
18
  export { AdminPurgeComment } from "./types/AdminPurgeComment";
17
19
  export { AdminPurgeCommentId } from "./types/AdminPurgeCommentId";
18
20
  export { AdminPurgeCommentView } from "./types/AdminPurgeCommentView";
@@ -32,7 +34,6 @@ export { BanFromCommunity } from "./types/BanFromCommunity";
32
34
  export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
33
35
  export { BanPerson } from "./types/BanPerson";
34
36
  export { BanPersonResponse } from "./types/BanPersonResponse";
35
- export { BannedPersonsResponse } from "./types/BannedPersonsResponse";
36
37
  export { BlockCommunity } from "./types/BlockCommunity";
37
38
  export { BlockCommunityResponse } from "./types/BlockCommunityResponse";
38
39
  export { BlockPerson } from "./types/BlockPerson";
@@ -40,11 +41,8 @@ export { BlockPersonResponse } from "./types/BlockPersonResponse";
40
41
  export { CaptchaResponse } from "./types/CaptchaResponse";
41
42
  export { ChangePassword } from "./types/ChangePassword";
42
43
  export { Comment } from "./types/Comment";
43
- export { CommentAggregates } from "./types/CommentAggregates";
44
+ export { CommentActions } from "./types/CommentActions";
44
45
  export { CommentId } from "./types/CommentId";
45
- export { CommentReply } from "./types/CommentReply";
46
- export { CommentReplyId } from "./types/CommentReplyId";
47
- export { CommentReplyView } from "./types/CommentReplyView";
48
46
  export { CommentReport } from "./types/CommentReport";
49
47
  export { CommentReportId } from "./types/CommentReportId";
50
48
  export { CommentReportResponse } from "./types/CommentReportResponse";
@@ -54,13 +52,16 @@ export { CommentSlimView } from "./types/CommentSlimView";
54
52
  export { CommentSortType } from "./types/CommentSortType";
55
53
  export { CommentView } from "./types/CommentView";
56
54
  export { Community } from "./types/Community";
57
- export { CommunityAggregates } from "./types/CommunityAggregates";
55
+ export { CommunityActions } from "./types/CommunityActions";
58
56
  export { CommunityFollowerState } from "./types/CommunityFollowerState";
59
57
  export { CommunityFollowerView } from "./types/CommunityFollowerView";
60
58
  export { CommunityId } from "./types/CommunityId";
59
+ export { CommunityIdQuery } from "./types/CommunityIdQuery";
61
60
  export { CommunityModeratorView } from "./types/CommunityModeratorView";
61
+ export { CommunityNotificationsMode } from "./types/CommunityNotificationsMode";
62
62
  export { CommunityReport } from "./types/CommunityReport";
63
63
  export { CommunityReportId } from "./types/CommunityReportId";
64
+ export { CommunityReportResponse } from "./types/CommunityReportResponse";
64
65
  export { CommunityReportView } from "./types/CommunityReportView";
65
66
  export { CommunityResponse } from "./types/CommunityResponse";
66
67
  export { CommunitySortType } from "./types/CommunitySortType";
@@ -70,8 +71,12 @@ export { CreateComment } from "./types/CreateComment";
70
71
  export { CreateCommentLike } from "./types/CreateCommentLike";
71
72
  export { CreateCommentReport } from "./types/CreateCommentReport";
72
73
  export { CreateCommunity } from "./types/CreateCommunity";
74
+ export { CreateCommunityReport } from "./types/CreateCommunityReport";
75
+ export { CreateCommunityTag } from "./types/CreateCommunityTag";
73
76
  export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
77
+ export { CreateMultiCommunity } from "./types/CreateMultiCommunity";
74
78
  export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
79
+ export { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
75
80
  export { CreatePost } from "./types/CreatePost";
76
81
  export { CreatePostLike } from "./types/CreatePostLike";
77
82
  export { CreatePostReport } from "./types/CreatePostReport";
@@ -88,6 +93,7 @@ export { DbUrl } from "./types/DbUrl";
88
93
  export { DeleteAccount } from "./types/DeleteAccount";
89
94
  export { DeleteComment } from "./types/DeleteComment";
90
95
  export { DeleteCommunity } from "./types/DeleteCommunity";
96
+ export { DeleteCommunityTag } from "./types/DeleteCommunityTag";
91
97
  export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
92
98
  export { DeleteImageParams } from "./types/DeleteImageParams";
93
99
  export { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
@@ -102,12 +108,14 @@ export { EditOAuthProvider } from "./types/EditOAuthProvider";
102
108
  export { EditPost } from "./types/EditPost";
103
109
  export { EditPrivateMessage } from "./types/EditPrivateMessage";
104
110
  export { EditSite } from "./types/EditSite";
111
+ export { ExportDataResponse } from "./types/ExportDataResponse";
105
112
  export { FeaturePost } from "./types/FeaturePost";
106
113
  export { FederatedInstances } from "./types/FederatedInstances";
107
114
  export { FederationBlockList } from "./types/FederationBlockList";
108
115
  export { FederationError } from "./types/FederationError";
109
116
  export { FederationMode } from "./types/FederationMode";
110
117
  export { FollowCommunity } from "./types/FollowCommunity";
118
+ export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
111
119
  export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
112
120
  export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
113
121
  export { GetComment } from "./types/GetComment";
@@ -121,6 +129,8 @@ export { GetCommunityResponse } from "./types/GetCommunityResponse";
121
129
  export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
122
130
  export { GetModlog } from "./types/GetModlog";
123
131
  export { GetModlogResponse } from "./types/GetModlogResponse";
132
+ export { GetMultiCommunity } from "./types/GetMultiCommunity";
133
+ export { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
124
134
  export { GetPersonDetails } from "./types/GetPersonDetails";
125
135
  export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
126
136
  export { GetPost } from "./types/GetPost";
@@ -141,15 +151,14 @@ export { HidePost } from "./types/HidePost";
141
151
  export { ImageDetails } from "./types/ImageDetails";
142
152
  export { ImageGetParams } from "./types/ImageGetParams";
143
153
  export { ImageProxyParams } from "./types/ImageProxyParams";
144
- export { InboxCombinedPaginationCursor } from "./types/InboxCombinedPaginationCursor";
145
- export { InboxCombinedView } from "./types/InboxCombinedView";
146
- export { InboxDataType } from "./types/InboxDataType";
147
154
  export { Instance } from "./types/Instance";
155
+ export { InstanceActions } from "./types/InstanceActions";
148
156
  export { InstanceId } from "./types/InstanceId";
149
157
  export { InstanceWithFederationState } from "./types/InstanceWithFederationState";
150
158
  export { Language } from "./types/Language";
151
159
  export { LanguageId } from "./types/LanguageId";
152
160
  export { LemmyErrorType } from "./types/LemmyErrorType";
161
+ export { LikeType } from "./types/LikeType";
153
162
  export { LinkMetadata } from "./types/LinkMetadata";
154
163
  export { ListCommentLikes } from "./types/ListCommentLikes";
155
164
  export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
@@ -159,13 +168,21 @@ export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
159
168
  export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
160
169
  export { ListCustomEmojis } from "./types/ListCustomEmojis";
161
170
  export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
162
- export { ListInbox } from "./types/ListInbox";
163
- export { ListInboxResponse } from "./types/ListInboxResponse";
164
171
  export { ListLoginsResponse } from "./types/ListLoginsResponse";
165
172
  export { ListMedia } from "./types/ListMedia";
166
173
  export { ListMediaResponse } from "./types/ListMediaResponse";
174
+ export { ListMultiCommunities } from "./types/ListMultiCommunities";
175
+ export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
176
+ export { ListNotifications } from "./types/ListNotifications";
177
+ export { ListNotificationsResponse } from "./types/ListNotificationsResponse";
167
178
  export { ListPersonContent } from "./types/ListPersonContent";
168
179
  export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
180
+ export { ListPersonHidden } from "./types/ListPersonHidden";
181
+ export { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
182
+ export { ListPersonLiked } from "./types/ListPersonLiked";
183
+ export { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
184
+ export { ListPersonRead } from "./types/ListPersonRead";
185
+ export { ListPersonReadResponse } from "./types/ListPersonReadResponse";
169
186
  export { ListPersonSaved } from "./types/ListPersonSaved";
170
187
  export { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
171
188
  export { ListPostLikes } from "./types/ListPostLikes";
@@ -186,15 +203,13 @@ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
186
203
  export { LocalUser } from "./types/LocalUser";
187
204
  export { LocalUserId } from "./types/LocalUserId";
188
205
  export { LocalUserView } from "./types/LocalUserView";
189
- export { LocalUserVoteDisplayMode } from "./types/LocalUserVoteDisplayMode";
206
+ export { LockComment } from "./types/LockComment";
190
207
  export { LockPost } from "./types/LockPost";
191
208
  export { Login } from "./types/Login";
192
209
  export { LoginResponse } from "./types/LoginResponse";
193
210
  export { LoginToken } from "./types/LoginToken";
194
- export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
195
211
  export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
196
- export { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
197
- export { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
212
+ export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
198
213
  export { MarkPostAsRead } from "./types/MarkPostAsRead";
199
214
  export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
200
215
  export { ModAdd } from "./types/ModAdd";
@@ -209,12 +224,13 @@ export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
209
224
  export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
210
225
  export { ModBanId } from "./types/ModBanId";
211
226
  export { ModBanView } from "./types/ModBanView";
227
+ export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
228
+ export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
229
+ export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
230
+ export { ModEditPost } from "./types/ModEditPost";
212
231
  export { ModFeaturePost } from "./types/ModFeaturePost";
213
232
  export { ModFeaturePostId } from "./types/ModFeaturePostId";
214
233
  export { ModFeaturePostView } from "./types/ModFeaturePostView";
215
- export { ModHideCommunity } from "./types/ModHideCommunity";
216
- export { ModHideCommunityId } from "./types/ModHideCommunityId";
217
- export { ModHideCommunityView } from "./types/ModHideCommunityView";
218
234
  export { ModLockPost } from "./types/ModLockPost";
219
235
  export { ModLockPostId } from "./types/ModLockPostId";
220
236
  export { ModLockPostView } from "./types/ModLockPostView";
@@ -224,6 +240,9 @@ export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
224
240
  export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
225
241
  export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
226
242
  export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
243
+ export { ModLockComment } from "./types/ModLockComment";
244
+ export { ModLockCommentId } from "./types/ModLockCommentId";
245
+ export { ModLockCommentView } from "./types/ModLockCommentView";
227
246
  export { ModRemovePost } from "./types/ModRemovePost";
228
247
  export { ModRemovePostId } from "./types/ModRemovePostId";
229
248
  export { ModRemovePostView } from "./types/ModRemovePostView";
@@ -231,9 +250,19 @@ export { ModTransferCommunity } from "./types/ModTransferCommunity";
231
250
  export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
232
251
  export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
233
252
  export { ModlogActionType } from "./types/ModlogActionType";
234
- export { ModlogCombinedPaginationCursor } from "./types/ModlogCombinedPaginationCursor";
235
253
  export { ModlogCombinedView } from "./types/ModlogCombinedView";
254
+ export { MultiCommunity } from "./types/MultiCommunity";
255
+ export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
256
+ export { MultiCommunityId } from "./types/MultiCommunityId";
257
+ export { MultiCommunityView } from "./types/MultiCommunityView";
236
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 { NotificationTypes } from "./types/NotificationTypes";
265
+ export { NotificationView } from "./types/NotificationView";
237
266
  export { OAuthAccount } from "./types/OAuthAccount";
238
267
  export { OAuthProvider } from "./types/OAuthProvider";
239
268
  export { OAuthProviderId } from "./types/OAuthProviderId";
@@ -243,31 +272,27 @@ export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
243
272
  export { PasswordReset } from "./types/PasswordReset";
244
273
  export { PendingFollow } from "./types/PendingFollow";
245
274
  export { Person } from "./types/Person";
246
- export { PersonAggregates } from "./types/PersonAggregates";
247
- export { PersonCommentMention } from "./types/PersonCommentMention";
248
- export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
249
- export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
250
- export { PersonContentCombinedPaginationCursor } from "./types/PersonContentCombinedPaginationCursor";
275
+ export { PersonActions } from "./types/PersonActions";
251
276
  export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
252
277
  export { PersonContentType } from "./types/PersonContentType";
253
278
  export { PersonId } from "./types/PersonId";
254
- export { PersonPostMention } from "./types/PersonPostMention";
255
- export { PersonPostMentionId } from "./types/PersonPostMentionId";
256
- export { PersonPostMentionView } from "./types/PersonPostMentionView";
257
- export { PersonSavedCombinedPaginationCursor } from "./types/PersonSavedCombinedPaginationCursor";
279
+ export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
280
+ export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
258
281
  export { PersonView } from "./types/PersonView";
282
+ export { PluginMetadata } from "./types/PluginMetadata";
259
283
  export { Post } from "./types/Post";
260
- export { PostAggregates } from "./types/PostAggregates";
284
+ export { PostActions } from "./types/PostActions";
261
285
  export { PostFeatureType } from "./types/PostFeatureType";
262
286
  export { PostId } from "./types/PostId";
263
287
  export { PostListingMode } from "./types/PostListingMode";
288
+ export { PostNotificationsMode } from "./types/PostNotificationsMode";
289
+ export { PostOrCommentOrPrivateMessage } from "./types/PostOrCommentOrPrivateMessage";
264
290
  export { PostReport } from "./types/PostReport";
265
291
  export { PostReportId } from "./types/PostReportId";
266
292
  export { PostReportResponse } from "./types/PostReportResponse";
267
293
  export { PostReportView } from "./types/PostReportView";
268
294
  export { PostResponse } from "./types/PostResponse";
269
295
  export { PostSortType } from "./types/PostSortType";
270
- export { PostTags } from "./types/PostTags";
271
296
  export { PostView } from "./types/PostView";
272
297
  export { PrivateMessage } from "./types/PrivateMessage";
273
298
  export { PrivateMessageId } from "./types/PrivateMessageId";
@@ -292,42 +317,46 @@ export { RegistrationMode } from "./types/RegistrationMode";
292
317
  export { RemoveComment } from "./types/RemoveComment";
293
318
  export { RemoveCommunity } from "./types/RemoveCommunity";
294
319
  export { RemovePost } from "./types/RemovePost";
295
- export { ReportCombinedPaginationCursor } from "./types/ReportCombinedPaginationCursor";
296
320
  export { ReportCombinedView } from "./types/ReportCombinedView";
297
321
  export { ReportType } from "./types/ReportType";
298
322
  export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
299
323
  export { ResolveCommentReport } from "./types/ResolveCommentReport";
324
+ export { ResolveCommunityReport } from "./types/ResolveCommunityReport";
300
325
  export { ResolveObject } from "./types/ResolveObject";
301
- export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
302
326
  export { ResolvePostReport } from "./types/ResolvePostReport";
303
327
  export { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
304
328
  export { SaveComment } from "./types/SaveComment";
305
329
  export { SavePost } from "./types/SavePost";
306
330
  export { SaveUserSettings } from "./types/SaveUserSettings";
307
331
  export { Search } from "./types/Search";
308
- export { SearchCombinedPaginationCursor } from "./types/SearchCombinedPaginationCursor";
309
332
  export { SearchCombinedView } from "./types/SearchCombinedView";
310
333
  export { SearchResponse } from "./types/SearchResponse";
311
334
  export { SearchSortType } from "./types/SearchSortType";
312
335
  export { SearchType } from "./types/SearchType";
313
336
  export { SensitiveString } from "./types/SensitiveString";
314
337
  export { Site } from "./types/Site";
315
- export { SiteAggregates } from "./types/SiteAggregates";
316
338
  export { SiteId } from "./types/SiteId";
317
339
  export { SiteResponse } from "./types/SiteResponse";
318
340
  export { SiteView } from "./types/SiteView";
319
- export { SubscribedType } from "./types/SubscribedType";
320
341
  export { SuccessResponse } from "./types/SuccessResponse";
321
342
  export { Tag } from "./types/Tag";
322
343
  export { TagId } from "./types/TagId";
323
344
  export { Tagline } from "./types/Tagline";
324
345
  export { TaglineId } from "./types/TaglineId";
325
346
  export { TaglineResponse } from "./types/TaglineResponse";
347
+ export { TagsView } from "./types/TagsView";
326
348
  export { TransferCommunity } from "./types/TransferCommunity";
349
+ export { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
350
+ export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
351
+ export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
352
+ export { UpdatePostNotifications } from "./types/UpdatePostNotifications";
327
353
  export { UpdateTagline } from "./types/UpdateTagline";
328
354
  export { UpdateTotp } from "./types/UpdateTotp";
329
355
  export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
330
356
  export { UploadImageResponse } from "./types/UploadImageResponse";
331
- export { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
357
+ export { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
358
+ export { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
359
+ export { UserSettingsBackup } from "./types/UserSettingsBackup";
332
360
  export { VerifyEmail } from "./types/VerifyEmail";
361
+ export { VoteShow } from "./types/VoteShow";
333
362
  export { VoteView } from "./types/VoteView";
@@ -1,9 +1,12 @@
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
7
  import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
6
8
  import { GetModlog } from "./types/GetModlog";
9
+ import { GetMultiCommunity } from "./types/GetMultiCommunity";
7
10
  import { GetPersonDetails } from "./types/GetPersonDetails";
8
11
  import { GetPost } from "./types/GetPost";
9
12
  import { GetPosts } from "./types/GetPosts";
@@ -15,9 +18,13 @@ import { ListCommentLikes } from "./types/ListCommentLikes";
15
18
  import { ListCommunities } from "./types/ListCommunities";
16
19
  import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
17
20
  import { ListCustomEmojis } from "./types/ListCustomEmojis";
18
- import { ListInbox } from "./types/ListInbox";
21
+ import { ListNotifications } from "./types/ListNotifications";
19
22
  import { ListMedia } from "./types/ListMedia";
23
+ import { ListMultiCommunities } from "./types/ListMultiCommunities";
20
24
  import { ListPersonContent } from "./types/ListPersonContent";
25
+ import { ListPersonHidden } from "./types/ListPersonHidden";
26
+ import { ListPersonLiked } from "./types/ListPersonLiked";
27
+ import { ListPersonRead } from "./types/ListPersonRead";
21
28
  import { ListPersonSaved } from "./types/ListPersonSaved";
22
29
  import { ListPostLikes } from "./types/ListPostLikes";
23
30
  import { ListRegistrationApplications } from "./types/ListRegistrationApplications";
@@ -67,10 +74,16 @@ export interface ListPersonContentI extends ListPersonContent {
67
74
  }
68
75
  export interface GetReportCountI extends GetReportCount {
69
76
  }
70
- export interface ListInboxI extends ListInbox {
77
+ export interface ListNotificationsI extends ListNotifications {
71
78
  }
72
79
  export interface ListPersonSavedI extends ListPersonSaved {
73
80
  }
81
+ export interface ListPersonReadI extends ListPersonRead {
82
+ }
83
+ export interface ListPersonHiddenI extends ListPersonHidden {
84
+ }
85
+ export interface ListPersonLikedI extends ListPersonLiked {
86
+ }
74
87
  export interface ListRegistrationApplicationsI extends ListRegistrationApplications {
75
88
  }
76
89
  export interface GetRegistrationApplicationI extends GetRegistrationApplication {
@@ -83,3 +96,11 @@ export interface ListReportsI extends ListReports {
83
96
  }
84
97
  export interface DeleteImageParamsI extends DeleteImageParams {
85
98
  }
99
+ export interface AdminListUsersI extends AdminListUsers {
100
+ }
101
+ export interface CommunityIdQueryI extends CommunityIdQuery {
102
+ }
103
+ export interface ListMultiCommunitiesI extends ListMultiCommunities {
104
+ }
105
+ export interface GetMultiCommunityI extends GetMultiCommunity {
106
+ }
@@ -7,5 +7,5 @@ export type AdminAllowInstance = {
7
7
  admin_person_id: PersonId;
8
8
  allowed: boolean;
9
9
  reason?: string;
10
- published: string;
10
+ published_at: string;
11
11
  };
@@ -7,6 +7,6 @@ export type AdminBlockInstance = {
7
7
  admin_person_id: PersonId;
8
8
  blocked: boolean;
9
9
  reason?: string;
10
- expires?: string;
11
- published: string;
10
+ expires_at?: string;
11
+ published_at: string;
12
12
  };
@@ -2,5 +2,5 @@ export type AdminBlockInstanceParams = {
2
2
  instance: string;
3
3
  block: boolean;
4
4
  reason?: string;
5
- expires?: string;
5
+ expires_at?: string;
6
6
  };
@@ -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
+ };
@@ -9,5 +9,5 @@ export type AdminPurgeComment = {
9
9
  admin_person_id: PersonId;
10
10
  post_id: PostId;
11
11
  reason?: string;
12
- published: string;
12
+ published_at: string;
13
13
  };
@@ -7,5 +7,5 @@ export type AdminPurgeCommunity = {
7
7
  id: AdminPurgeCommunityId;
8
8
  admin_person_id: PersonId;
9
9
  reason?: string;
10
- published: string;
10
+ published_at: string;
11
11
  };
@@ -7,5 +7,5 @@ export type AdminPurgePerson = {
7
7
  id: AdminPurgePersonId;
8
8
  admin_person_id: PersonId;
9
9
  reason?: string;
10
- published: string;
10
+ published_at: string;
11
11
  };
@@ -9,5 +9,5 @@ export type AdminPurgePost = {
9
9
  admin_person_id: PersonId;
10
10
  community_id: CommunityId;
11
11
  reason?: string;
12
- published: string;
12
+ published_at: string;
13
13
  };
@@ -18,5 +18,5 @@ export type BanFromCommunity = {
18
18
  *
19
19
  * An i64 unix timestamp is used for a simpler API client implementation.
20
20
  */
21
- expires?: number;
21
+ expires_at?: number;
22
22
  };
@@ -16,5 +16,5 @@ export type BanPerson = {
16
16
  *
17
17
  * An i64 unix timestamp is used for a simpler API client implementation.
18
18
  */
19
- expires?: number;
19
+ expires_at?: number;
20
20
  };
@@ -15,8 +15,8 @@ export type Comment = {
15
15
  * Whether the comment has been removed.
16
16
  */
17
17
  removed: boolean;
18
- published: string;
19
- updated?: string;
18
+ published_at: string;
19
+ updated_at?: string;
20
20
  /**
21
21
  * Whether the comment has been deleted by its creator.
22
22
  */
@@ -39,4 +39,22 @@ export type Comment = {
39
39
  */
40
40
  distinguished: boolean;
41
41
  language_id: LanguageId;
42
+ score: number;
43
+ upvotes: number;
44
+ downvotes: number;
45
+ /**
46
+ * The total number of children in this comment branch.
47
+ */
48
+ child_count: number;
49
+ report_count: number;
50
+ unresolved_report_count: number;
51
+ /**
52
+ * If a local user comments in a remote community, the comment is hidden until it is confirmed
53
+ * accepted by the community (by receiving it back via federation).
54
+ */
55
+ federation_pending: boolean;
56
+ /**
57
+ * Whether the comment is locked.
58
+ */
59
+ locked: boolean;
42
60
  };
@@ -0,0 +1,14 @@
1
+ export type CommentActions = {
2
+ /**
3
+ * The like / score for the comment.
4
+ */
5
+ like_score?: number;
6
+ /**
7
+ * When the comment was liked.
8
+ */
9
+ liked_at?: string;
10
+ /**
11
+ * When the comment was saved.
12
+ */
13
+ saved_at?: string;
14
+ };
@@ -12,7 +12,7 @@ export type CommentReport = {
12
12
  reason: string;
13
13
  resolved: boolean;
14
14
  resolver_id?: PersonId;
15
- published: string;
16
- updated?: string;
15
+ published_at: string;
16
+ updated_at?: string;
17
17
  violates_instance_rules: boolean;
18
18
  };
@@ -1,10 +1,11 @@
1
1
  import type { Comment } from "./Comment";
2
- import type { CommentAggregates } from "./CommentAggregates";
2
+ import type { CommentActions } from "./CommentActions";
3
3
  import type { CommentReport } from "./CommentReport";
4
4
  import type { Community } from "./Community";
5
+ import type { CommunityActions } from "./CommunityActions";
5
6
  import type { Person } from "./Person";
7
+ import type { PersonActions } from "./PersonActions";
6
8
  import type { Post } from "./Post";
7
- import type { SubscribedType } from "./SubscribedType";
8
9
  /**
9
10
  * A comment report view.
10
11
  */
@@ -15,16 +16,12 @@ export type CommentReportView = {
15
16
  community: Community;
16
17
  creator: Person;
17
18
  comment_creator: Person;
18
- counts: CommentAggregates;
19
- creator_banned_from_community: boolean;
20
- creator_is_moderator: boolean;
21
- creator_is_admin: boolean;
22
- creator_blocked: boolean;
23
- subscribed: SubscribedType;
24
- /**
25
- * The time when the comment was saved.
26
- */
27
- saved?: string;
28
- my_vote?: number;
19
+ comment_actions?: CommentActions;
29
20
  resolver?: Person;
21
+ person_actions?: PersonActions;
22
+ community_actions?: CommunityActions;
23
+ creator_is_admin: boolean;
24
+ creator_is_moderator: boolean;
25
+ creator_banned: boolean;
26
+ creator_banned_from_community: boolean;
30
27
  };
@@ -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,24 +1,18 @@
1
1
  import type { Comment } from "./Comment";
2
- import type { CommentAggregates } from "./CommentAggregates";
2
+ import type { CommentActions } from "./CommentActions";
3
3
  import type { Person } from "./Person";
4
- import type { SubscribedType } from "./SubscribedType";
4
+ import type { PersonActions } from "./PersonActions";
5
5
  /**
6
6
  * A slimmer comment view, without the post, or community.
7
7
  */
8
8
  export type CommentSlimView = {
9
9
  comment: Comment;
10
10
  creator: Person;
11
- counts: CommentAggregates;
12
- creator_banned_from_community: boolean;
13
- banned_from_community: boolean;
14
- creator_is_moderator: boolean;
11
+ comment_actions?: CommentActions;
12
+ person_actions?: PersonActions;
15
13
  creator_is_admin: boolean;
16
- subscribed: SubscribedType;
17
- /**
18
- * The time when the comment was saved.
19
- */
20
- saved?: string;
21
- creator_blocked: boolean;
22
- my_vote?: number;
23
14
  can_mod: boolean;
15
+ creator_banned: boolean;
16
+ creator_is_moderator: boolean;
17
+ creator_banned_from_community: boolean;
24
18
  };
@@ -1,9 +1,11 @@
1
1
  import type { Comment } from "./Comment";
2
- import type { CommentAggregates } from "./CommentAggregates";
2
+ import type { CommentActions } from "./CommentActions";
3
3
  import type { Community } from "./Community";
4
+ import type { CommunityActions } from "./CommunityActions";
4
5
  import type { Person } from "./Person";
6
+ import type { PersonActions } from "./PersonActions";
5
7
  import type { Post } from "./Post";
6
- import type { SubscribedType } from "./SubscribedType";
8
+ import type { TagsView } from "./TagsView";
7
9
  /**
8
10
  * A comment view.
9
11
  */
@@ -12,17 +14,13 @@ export type CommentView = {
12
14
  creator: Person;
13
15
  post: Post;
14
16
  community: Community;
15
- counts: CommentAggregates;
16
- creator_banned_from_community: boolean;
17
- banned_from_community: boolean;
18
- creator_is_moderator: boolean;
17
+ community_actions?: CommunityActions;
18
+ comment_actions?: CommentActions;
19
+ person_actions?: PersonActions;
19
20
  creator_is_admin: boolean;
20
- subscribed: SubscribedType;
21
- /**
22
- * The time when the comment was saved.
23
- */
24
- saved?: string;
25
- creator_blocked: boolean;
26
- my_vote?: number;
21
+ post_tags: TagsView;
27
22
  can_mod: boolean;
23
+ creator_banned: boolean;
24
+ creator_is_moderator: boolean;
25
+ creator_banned_from_community: boolean;
28
26
  };