lemmy-js-client 1.0.0-post-tags.0 → 1.0.0-post-notifications.1

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