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