lemmy-js-client 1.0.0-add-liked.0 → 1.0.0-admin-block-expiry.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 (222) hide show
  1. package/README.md +6 -0
  2. package/dist/http.d.ts +65 -29
  3. package/dist/http.js +184 -59
  4. package/dist/index.d.ts +50 -32
  5. package/dist/index.js +3 -0
  6. package/dist/other_types.d.ts +8 -2
  7. package/dist/types/AdminAdd.d.ts +12 -0
  8. package/dist/types/AdminAddId.d.ts +1 -0
  9. package/dist/types/{ModAddView.d.ts → AdminAddView.d.ts} +3 -3
  10. package/dist/types/AdminAllowInstance.d.ts +2 -2
  11. package/dist/types/AdminAllowInstanceParams.d.ts +1 -1
  12. package/dist/types/{ModBan.d.ts → AdminBan.d.ts} +6 -6
  13. package/dist/types/AdminBanId.d.ts +1 -0
  14. package/dist/types/{ModBanView.d.ts → AdminBanView.d.ts} +3 -3
  15. package/dist/types/AdminBlockInstance.d.ts +3 -3
  16. package/dist/types/AdminBlockInstanceParams.d.ts +7 -2
  17. package/dist/types/AdminPurgeComment.d.ts +2 -2
  18. package/dist/types/AdminPurgeCommunity.d.ts +2 -2
  19. package/dist/types/AdminPurgePerson.d.ts +2 -2
  20. package/dist/types/AdminPurgePost.d.ts +2 -2
  21. package/dist/types/{ModRemoveCommunity.d.ts → AdminRemoveCommunity.d.ts} +5 -5
  22. package/dist/types/AdminRemoveCommunityId.d.ts +1 -0
  23. package/dist/types/AdminRemoveCommunityView.d.ts +11 -0
  24. package/dist/types/AllLemmyErrors.d.ts +1 -0
  25. package/dist/types/AllLemmyErrors.js +119 -0
  26. package/dist/types/BanFromCommunity.d.ts +2 -2
  27. package/dist/types/BanPerson.d.ts +2 -2
  28. package/dist/types/Comment.d.ts +6 -2
  29. package/dist/types/CommentActions.d.ts +2 -2
  30. package/dist/types/CommentReport.d.ts +2 -2
  31. package/dist/types/CommentReportView.d.ts +5 -1
  32. package/dist/types/CommentResponse.d.ts +0 -2
  33. package/dist/types/CommentSlimView.d.ts +2 -6
  34. package/dist/types/CommentView.d.ts +4 -5
  35. package/dist/types/Community.d.ts +2 -2
  36. package/dist/types/CommunityActions.d.ts +7 -5
  37. package/dist/types/CommunityNotificationsMode.d.ts +4 -0
  38. package/dist/types/CommunityReport.d.ts +2 -2
  39. package/dist/types/CommunityReportView.d.ts +6 -0
  40. package/dist/types/CommunityView.d.ts +0 -2
  41. package/dist/types/CreateCommunityTag.d.ts +3 -1
  42. package/dist/types/CreateCustomEmoji.d.ts +2 -1
  43. package/dist/types/CreateCustomEmoji.js +0 -1
  44. package/dist/types/CreateMultiCommunity.d.ts +5 -0
  45. package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
  46. package/dist/types/CreatePost.d.ts +1 -1
  47. package/dist/types/CreateSite.d.ts +16 -13
  48. package/dist/types/CustomEmoji.d.ts +2 -2
  49. package/dist/types/EditCustomEmoji.d.ts +7 -5
  50. package/dist/types/EditPost.d.ts +1 -1
  51. package/dist/types/EditSite.d.ts +26 -16
  52. package/dist/types/ExportDataResponse.d.ts +13 -0
  53. package/dist/types/FederationBlockList.d.ts +3 -3
  54. package/dist/types/FollowMultiCommunity.d.ts +5 -0
  55. package/dist/types/GetMultiCommunity.d.ts +4 -0
  56. package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
  57. package/dist/types/GetPosts.d.ts +2 -0
  58. package/dist/types/HideCommunity.d.ts +1 -1
  59. package/dist/types/Instance.d.ts +2 -2
  60. package/dist/types/InstanceActions.d.ts +8 -4
  61. package/dist/types/InstanceWithFederationState.d.ts +2 -2
  62. package/dist/types/LemmyErrorType.d.ts +25 -140
  63. package/dist/types/LinkMetadata.d.ts +4 -0
  64. package/dist/types/ListMultiCommunities.d.ts +5 -0
  65. package/dist/types/ListMultiCommunitiesResponse.d.ts +4 -0
  66. package/dist/types/{ListInbox.d.ts → ListNotifications.d.ts} +3 -3
  67. package/dist/types/{ListInboxResponse.d.ts → ListNotificationsResponse.d.ts} +3 -3
  68. package/dist/types/ListingType.d.ts +1 -1
  69. package/dist/types/LocalImage.d.ts +2 -2
  70. package/dist/types/LocalSite.d.ts +5 -6
  71. package/dist/types/LocalSiteRateLimit.d.ts +16 -16
  72. package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
  73. package/dist/types/LocalUser.d.ts +11 -13
  74. package/dist/types/LocalUserView.d.ts +2 -2
  75. package/dist/types/LockComment.d.ts +9 -0
  76. package/dist/types/LockPost.d.ts +1 -1
  77. package/dist/types/LoginToken.d.ts +1 -1
  78. package/dist/types/MarkNotificationAsRead.d.ts +8 -0
  79. package/dist/types/{ModAddCommunity.d.ts → ModAddToCommunity.d.ts} +4 -4
  80. package/dist/types/ModAddToCommunityId.d.ts +1 -0
  81. package/dist/types/{ModAddCommunityView.d.ts → ModAddToCommunityView.d.ts} +3 -3
  82. package/dist/types/ModBanFromCommunity.d.ts +3 -3
  83. package/dist/types/ModChangeCommunityVisibility.d.ts +1 -1
  84. package/dist/types/ModEditPost.d.ts +10 -0
  85. package/dist/types/ModFeaturePost.d.ts +1 -1
  86. package/dist/types/ModLockComment.d.ts +14 -0
  87. package/dist/types/ModLockCommentId.d.ts +1 -0
  88. package/dist/types/ModLockCommentView.d.ts +16 -0
  89. package/dist/types/ModLockPost.d.ts +2 -2
  90. package/dist/types/ModRemoveComment.d.ts +2 -2
  91. package/dist/types/ModRemovePost.d.ts +2 -2
  92. package/dist/types/ModTransferCommunity.d.ts +1 -1
  93. package/dist/types/ModlogActionType.d.ts +1 -1
  94. package/dist/types/ModlogCombinedView.d.ts +16 -13
  95. package/dist/types/MultiCommunity.d.ts +17 -0
  96. package/dist/types/MultiCommunityFollow.d.ts +8 -0
  97. package/dist/types/MultiCommunityFollow.js +2 -0
  98. package/dist/types/MultiCommunityId.d.ts +1 -0
  99. package/dist/types/MultiCommunityView.d.ts +6 -0
  100. package/dist/types/MultiCommunityView.js +2 -0
  101. package/dist/types/MyUserInfo.d.ts +2 -1
  102. package/dist/types/NotePerson.d.ts +10 -0
  103. package/dist/types/NotePerson.js +2 -0
  104. package/dist/types/Notification.d.ts +36 -0
  105. package/dist/types/Notification.js +2 -0
  106. package/dist/types/NotificationData.d.ts +40 -0
  107. package/dist/types/NotificationData.js +2 -0
  108. package/dist/types/NotificationDataType.d.ts +4 -0
  109. package/dist/types/NotificationId.d.ts +1 -0
  110. package/dist/types/NotificationId.js +3 -0
  111. package/dist/types/NotificationType.d.ts +4 -0
  112. package/dist/types/NotificationType.js +3 -0
  113. package/dist/types/NotificationView.d.ts +6 -0
  114. package/dist/types/NotificationView.js +2 -0
  115. package/dist/types/OAuthAccount.d.ts +2 -2
  116. package/dist/types/OAuthProvider.d.ts +2 -2
  117. package/dist/types/OpenGraphData.d.ts +4 -0
  118. package/dist/types/Person.d.ts +2 -2
  119. package/dist/types/PersonActions.d.ts +21 -1
  120. package/dist/types/PersonView.d.ts +4 -4
  121. package/dist/types/Post.d.ts +6 -4
  122. package/dist/types/PostActions.d.ts +7 -5
  123. package/dist/types/PostActions.js +0 -1
  124. package/dist/types/PostNotificationsMode.d.ts +4 -0
  125. package/dist/types/PostNotificationsMode.js +3 -0
  126. package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
  127. package/dist/types/PostOrCommentOrPrivateMessage.js +2 -0
  128. package/dist/types/PostReport.d.ts +2 -2
  129. package/dist/types/PostReportView.d.ts +5 -1
  130. package/dist/types/PostView.d.ts +4 -5
  131. package/dist/types/PrivateMessage.d.ts +2 -3
  132. package/dist/types/PrivateMessageReport.d.ts +2 -2
  133. package/dist/types/PrivateMessageReportView.d.ts +3 -0
  134. package/dist/types/PurgeComment.d.ts +1 -1
  135. package/dist/types/PurgeCommunity.d.ts +1 -1
  136. package/dist/types/PurgePerson.d.ts +1 -1
  137. package/dist/types/PurgePost.d.ts +1 -1
  138. package/dist/types/ReadableFederationState.d.ts +3 -3
  139. package/dist/types/RegistrationApplication.d.ts +1 -1
  140. package/dist/types/RemoveComment.d.ts +1 -1
  141. package/dist/types/RemoveCommunity.d.ts +1 -1
  142. package/dist/types/RemovePost.d.ts +1 -1
  143. package/dist/types/SaveUserSettings.d.ts +9 -5
  144. package/dist/types/Search.d.ts +1 -1
  145. package/dist/types/SearchCombinedView.d.ts +4 -1
  146. package/dist/types/SearchType.d.ts +1 -1
  147. package/dist/types/Site.d.ts +2 -2
  148. package/dist/types/Tag.d.ts +8 -16
  149. package/dist/types/Tagline.d.ts +2 -2
  150. package/dist/types/TagsView.d.ts +1 -1
  151. package/dist/types/UntranslatedError.d.ts +12 -0
  152. package/dist/types/UntranslatedError.js +3 -0
  153. package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
  154. package/dist/types/UpdateCommunityNotifications.js +2 -0
  155. package/dist/types/UpdateCommunityTag.d.ts +3 -2
  156. package/dist/types/UpdateMultiCommunity.d.ts +7 -0
  157. package/dist/types/UpdateMultiCommunity.js +2 -0
  158. package/dist/types/UpdatePostNotifications.d.ts +9 -0
  159. package/dist/types/UpdatePostNotifications.js +2 -0
  160. package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
  161. package/dist/types/UserBlockInstanceCommunitiesParams.js +2 -0
  162. package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
  163. package/dist/types/UserBlockInstancePersonsParams.js +2 -0
  164. package/dist/types/UserSettingsBackup.d.ts +27 -0
  165. package/dist/types/UserSettingsBackup.js +2 -0
  166. package/dist/types/VoteView.d.ts +1 -0
  167. package/package.json +6 -5
  168. package/dist/types/CommentReply.d.ts +0 -13
  169. package/dist/types/CommentReplyId.d.ts +0 -4
  170. package/dist/types/CommentReplyView.d.ts +0 -32
  171. package/dist/types/FederationError.d.ts +0 -10
  172. package/dist/types/InboxCombinedView.d.ts +0 -13
  173. package/dist/types/InboxDataType.d.ts +0 -4
  174. package/dist/types/MarkCommentReplyAsRead.d.ts +0 -8
  175. package/dist/types/MarkPersonCommentMentionAsRead.d.ts +0 -8
  176. package/dist/types/MarkPersonPostMentionAsRead.d.ts +0 -8
  177. package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -8
  178. package/dist/types/ModAdd.d.ts +0 -12
  179. package/dist/types/ModAddCommunityId.d.ts +0 -1
  180. package/dist/types/ModAddId.d.ts +0 -1
  181. package/dist/types/ModBanId.d.ts +0 -1
  182. package/dist/types/ModRemoveCommunityId.d.ts +0 -1
  183. package/dist/types/ModRemoveCommunityView.d.ts +0 -11
  184. package/dist/types/PersonCommentMention.d.ts +0 -13
  185. package/dist/types/PersonCommentMentionId.d.ts +0 -4
  186. package/dist/types/PersonCommentMentionView.d.ts +0 -30
  187. package/dist/types/PersonPostMention.d.ts +0 -13
  188. package/dist/types/PersonPostMentionId.d.ts +0 -4
  189. package/dist/types/PersonPostMentionView.d.ts +0 -32
  190. package/dist/types/ResolveObjectResponse.d.ts +0 -13
  191. /package/dist/types/{CommentReply.js → AdminAdd.js} +0 -0
  192. /package/dist/types/{CommentReplyId.js → AdminAddId.js} +0 -0
  193. /package/dist/types/{CommentReplyView.js → AdminAddView.js} +0 -0
  194. /package/dist/types/{InboxCombinedView.js → AdminBan.js} +0 -0
  195. /package/dist/types/{FederationError.js → AdminBanId.js} +0 -0
  196. /package/dist/types/{ListInbox.js → AdminBanView.js} +0 -0
  197. /package/dist/types/{ListInboxResponse.js → AdminRemoveCommunity.js} +0 -0
  198. /package/dist/types/{InboxDataType.js → AdminRemoveCommunityId.js} +0 -0
  199. /package/dist/types/{MarkCommentReplyAsRead.js → AdminRemoveCommunityView.js} +0 -0
  200. /package/dist/types/{ModAddCommunityId.js → CommunityNotificationsMode.js} +0 -0
  201. /package/dist/types/{ModAddId.js → CreateMultiCommunity.js} +0 -0
  202. /package/dist/types/{MarkPersonCommentMentionAsRead.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
  203. /package/dist/types/{MarkPersonPostMentionAsRead.js → ExportDataResponse.js} +0 -0
  204. /package/dist/types/{MarkPrivateMessageAsRead.js → FollowMultiCommunity.js} +0 -0
  205. /package/dist/types/{ModAdd.js → GetMultiCommunity.js} +0 -0
  206. /package/dist/types/{ModAddCommunity.js → GetMultiCommunityResponse.js} +0 -0
  207. /package/dist/types/{ModAddCommunityView.js → ListMultiCommunities.js} +0 -0
  208. /package/dist/types/{ModAddView.js → ListMultiCommunitiesResponse.js} +0 -0
  209. /package/dist/types/{ModBan.js → ListNotifications.js} +0 -0
  210. /package/dist/types/{ModBanView.js → ListNotificationsResponse.js} +0 -0
  211. /package/dist/types/{ModRemoveCommunity.js → LockComment.js} +0 -0
  212. /package/dist/types/{ModRemoveCommunityView.js → MarkNotificationAsRead.js} +0 -0
  213. /package/dist/types/{PersonCommentMention.js → ModAddToCommunity.js} +0 -0
  214. /package/dist/types/{ModBanId.js → ModAddToCommunityId.js} +0 -0
  215. /package/dist/types/{PersonCommentMentionView.js → ModAddToCommunityView.js} +0 -0
  216. /package/dist/types/{PersonPostMention.js → ModEditPost.js} +0 -0
  217. /package/dist/types/{PersonPostMentionView.js → ModLockComment.js} +0 -0
  218. /package/dist/types/{ModRemoveCommunityId.js → ModLockCommentId.js} +0 -0
  219. /package/dist/types/{ResolveObjectResponse.js → ModLockCommentView.js} +0 -0
  220. /package/dist/types/{UserBlockInstanceParams.js → MultiCommunity.js} +0 -0
  221. /package/dist/types/{PersonCommentMentionId.js → MultiCommunityId.js} +0 -0
  222. /package/dist/types/{PersonPostMentionId.js → NotificationDataType.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -5,10 +5,16 @@ export { AddAdmin } from "./types/AddAdmin";
5
5
  export { AddAdminResponse } from "./types/AddAdminResponse";
6
6
  export { AddModToCommunity } from "./types/AddModToCommunity";
7
7
  export { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
8
+ export { AdminAdd } from "./types/AdminAdd";
9
+ export { AdminAddId } from "./types/AdminAddId";
10
+ export { AdminAddView } from "./types/AdminAddView";
8
11
  export { AdminAllowInstance } from "./types/AdminAllowInstance";
9
12
  export { AdminAllowInstanceId } from "./types/AdminAllowInstanceId";
10
13
  export { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
11
14
  export { AdminAllowInstanceView } from "./types/AdminAllowInstanceView";
15
+ export { AdminBan } from "./types/AdminBan";
16
+ export { AdminBanId } from "./types/AdminBanId";
17
+ export { AdminBanView } from "./types/AdminBanView";
12
18
  export { AdminBlockInstance } from "./types/AdminBlockInstance";
13
19
  export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
14
20
  export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
@@ -27,6 +33,10 @@ export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
27
33
  export { AdminPurgePost } from "./types/AdminPurgePost";
28
34
  export { AdminPurgePostId } from "./types/AdminPurgePostId";
29
35
  export { AdminPurgePostView } from "./types/AdminPurgePostView";
36
+ export { AdminRemoveCommunity } from "./types/AdminRemoveCommunity";
37
+ export { AdminRemoveCommunityId } from "./types/AdminRemoveCommunityId";
38
+ export { AdminRemoveCommunityView } from "./types/AdminRemoveCommunityView";
39
+ export { AllLemmyErrors } from "./types/AllLemmyErrors";
30
40
  export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
31
41
  export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
32
42
  export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
@@ -43,9 +53,6 @@ export { ChangePassword } from "./types/ChangePassword";
43
53
  export { Comment } from "./types/Comment";
44
54
  export { CommentActions } from "./types/CommentActions";
45
55
  export { CommentId } from "./types/CommentId";
46
- export { CommentReply } from "./types/CommentReply";
47
- export { CommentReplyId } from "./types/CommentReplyId";
48
- export { CommentReplyView } from "./types/CommentReplyView";
49
56
  export { CommentReport } from "./types/CommentReport";
50
57
  export { CommentReportId } from "./types/CommentReportId";
51
58
  export { CommentReportResponse } from "./types/CommentReportResponse";
@@ -61,6 +68,7 @@ export { CommunityFollowerView } from "./types/CommunityFollowerView";
61
68
  export { CommunityId } from "./types/CommunityId";
62
69
  export { CommunityIdQuery } from "./types/CommunityIdQuery";
63
70
  export { CommunityModeratorView } from "./types/CommunityModeratorView";
71
+ export { CommunityNotificationsMode } from "./types/CommunityNotificationsMode";
64
72
  export { CommunityReport } from "./types/CommunityReport";
65
73
  export { CommunityReportId } from "./types/CommunityReportId";
66
74
  export { CommunityReportResponse } from "./types/CommunityReportResponse";
@@ -76,7 +84,9 @@ export { CreateCommunity } from "./types/CreateCommunity";
76
84
  export { CreateCommunityReport } from "./types/CreateCommunityReport";
77
85
  export { CreateCommunityTag } from "./types/CreateCommunityTag";
78
86
  export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
87
+ export { CreateMultiCommunity } from "./types/CreateMultiCommunity";
79
88
  export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
89
+ export { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
80
90
  export { CreatePost } from "./types/CreatePost";
81
91
  export { CreatePostLike } from "./types/CreatePostLike";
82
92
  export { CreatePostReport } from "./types/CreatePostReport";
@@ -108,12 +118,13 @@ export { EditOAuthProvider } from "./types/EditOAuthProvider";
108
118
  export { EditPost } from "./types/EditPost";
109
119
  export { EditPrivateMessage } from "./types/EditPrivateMessage";
110
120
  export { EditSite } from "./types/EditSite";
121
+ export { ExportDataResponse } from "./types/ExportDataResponse";
111
122
  export { FeaturePost } from "./types/FeaturePost";
112
123
  export { FederatedInstances } from "./types/FederatedInstances";
113
124
  export { FederationBlockList } from "./types/FederationBlockList";
114
- export { FederationError } from "./types/FederationError";
115
125
  export { FederationMode } from "./types/FederationMode";
116
126
  export { FollowCommunity } from "./types/FollowCommunity";
127
+ export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
117
128
  export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
118
129
  export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
119
130
  export { GetComment } from "./types/GetComment";
@@ -127,6 +138,8 @@ export { GetCommunityResponse } from "./types/GetCommunityResponse";
127
138
  export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
128
139
  export { GetModlog } from "./types/GetModlog";
129
140
  export { GetModlogResponse } from "./types/GetModlogResponse";
141
+ export { GetMultiCommunity } from "./types/GetMultiCommunity";
142
+ export { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
130
143
  export { GetPersonDetails } from "./types/GetPersonDetails";
131
144
  export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
132
145
  export { GetPost } from "./types/GetPost";
@@ -147,8 +160,6 @@ export { HidePost } from "./types/HidePost";
147
160
  export { ImageDetails } from "./types/ImageDetails";
148
161
  export { ImageGetParams } from "./types/ImageGetParams";
149
162
  export { ImageProxyParams } from "./types/ImageProxyParams";
150
- export { InboxCombinedView } from "./types/InboxCombinedView";
151
- export { InboxDataType } from "./types/InboxDataType";
152
163
  export { Instance } from "./types/Instance";
153
164
  export { InstanceActions } from "./types/InstanceActions";
154
165
  export { InstanceId } from "./types/InstanceId";
@@ -166,11 +177,13 @@ export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
166
177
  export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
167
178
  export { ListCustomEmojis } from "./types/ListCustomEmojis";
168
179
  export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
169
- export { ListInbox } from "./types/ListInbox";
170
- export { ListInboxResponse } from "./types/ListInboxResponse";
171
180
  export { ListLoginsResponse } from "./types/ListLoginsResponse";
172
181
  export { ListMedia } from "./types/ListMedia";
173
182
  export { ListMediaResponse } from "./types/ListMediaResponse";
183
+ export { ListMultiCommunities } from "./types/ListMultiCommunities";
184
+ export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
185
+ export { ListNotifications } from "./types/ListNotifications";
186
+ export { ListNotificationsResponse } from "./types/ListNotificationsResponse";
174
187
  export { ListPersonContent } from "./types/ListPersonContent";
175
188
  export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
176
189
  export { ListPersonHidden } from "./types/ListPersonHidden";
@@ -199,43 +212,36 @@ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
199
212
  export { LocalUser } from "./types/LocalUser";
200
213
  export { LocalUserId } from "./types/LocalUserId";
201
214
  export { LocalUserView } from "./types/LocalUserView";
215
+ export { LockComment } from "./types/LockComment";
202
216
  export { LockPost } from "./types/LockPost";
203
217
  export { Login } from "./types/Login";
204
218
  export { LoginResponse } from "./types/LoginResponse";
205
219
  export { LoginToken } from "./types/LoginToken";
206
- export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
207
220
  export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
208
- export { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
209
- export { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
221
+ export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
210
222
  export { MarkPostAsRead } from "./types/MarkPostAsRead";
211
- export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
212
- export { ModAdd } from "./types/ModAdd";
213
- export { ModAddCommunity } from "./types/ModAddCommunity";
214
- export { ModAddCommunityId } from "./types/ModAddCommunityId";
215
- export { ModAddCommunityView } from "./types/ModAddCommunityView";
216
- export { ModAddId } from "./types/ModAddId";
217
- export { ModAddView } from "./types/ModAddView";
218
- export { ModBan } from "./types/ModBan";
223
+ export { ModAddToCommunity } from "./types/ModAddToCommunity";
224
+ export { ModAddToCommunityId } from "./types/ModAddToCommunityId";
225
+ export { ModAddToCommunityView } from "./types/ModAddToCommunityView";
219
226
  export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
220
227
  export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
221
228
  export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
222
- export { ModBanId } from "./types/ModBanId";
223
- export { ModBanView } from "./types/ModBanView";
224
229
  export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
225
230
  export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
226
231
  export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
232
+ export { ModEditPost } from "./types/ModEditPost";
227
233
  export { ModFeaturePost } from "./types/ModFeaturePost";
228
234
  export { ModFeaturePostId } from "./types/ModFeaturePostId";
229
235
  export { ModFeaturePostView } from "./types/ModFeaturePostView";
236
+ export { ModLockComment } from "./types/ModLockComment";
237
+ export { ModLockCommentId } from "./types/ModLockCommentId";
238
+ export { ModLockCommentView } from "./types/ModLockCommentView";
230
239
  export { ModLockPost } from "./types/ModLockPost";
231
240
  export { ModLockPostId } from "./types/ModLockPostId";
232
241
  export { ModLockPostView } from "./types/ModLockPostView";
233
242
  export { ModRemoveComment } from "./types/ModRemoveComment";
234
243
  export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
235
244
  export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
236
- export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
237
- export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
238
- export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
239
245
  export { ModRemovePost } from "./types/ModRemovePost";
240
246
  export { ModRemovePostId } from "./types/ModRemovePostId";
241
247
  export { ModRemovePostView } from "./types/ModRemovePostView";
@@ -244,7 +250,18 @@ export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
244
250
  export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
245
251
  export { ModlogActionType } from "./types/ModlogActionType";
246
252
  export { ModlogCombinedView } from "./types/ModlogCombinedView";
253
+ export { MultiCommunity } from "./types/MultiCommunity";
254
+ export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
255
+ export { MultiCommunityId } from "./types/MultiCommunityId";
256
+ export { MultiCommunityView } from "./types/MultiCommunityView";
247
257
  export { MyUserInfo } from "./types/MyUserInfo";
258
+ export { NotePerson } from "./types/NotePerson";
259
+ export { Notification } from "./types/Notification";
260
+ export { NotificationData } from "./types/NotificationData";
261
+ export { NotificationDataType } from "./types/NotificationDataType";
262
+ export { NotificationId } from "./types/NotificationId";
263
+ export { NotificationType } from "./types/NotificationType";
264
+ export { NotificationView } from "./types/NotificationView";
248
265
  export { OAuthAccount } from "./types/OAuthAccount";
249
266
  export { OAuthProvider } from "./types/OAuthProvider";
250
267
  export { OAuthProviderId } from "./types/OAuthProviderId";
@@ -255,16 +272,10 @@ export { PasswordReset } from "./types/PasswordReset";
255
272
  export { PendingFollow } from "./types/PendingFollow";
256
273
  export { Person } from "./types/Person";
257
274
  export { PersonActions } from "./types/PersonActions";
258
- export { PersonCommentMention } from "./types/PersonCommentMention";
259
- export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
260
- export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
261
275
  export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
262
276
  export { PersonContentType } from "./types/PersonContentType";
263
277
  export { PersonId } from "./types/PersonId";
264
278
  export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
265
- export { PersonPostMention } from "./types/PersonPostMention";
266
- export { PersonPostMentionId } from "./types/PersonPostMentionId";
267
- export { PersonPostMentionView } from "./types/PersonPostMentionView";
268
279
  export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
269
280
  export { PersonView } from "./types/PersonView";
270
281
  export { PluginMetadata } from "./types/PluginMetadata";
@@ -273,6 +284,8 @@ export { PostActions } from "./types/PostActions";
273
284
  export { PostFeatureType } from "./types/PostFeatureType";
274
285
  export { PostId } from "./types/PostId";
275
286
  export { PostListingMode } from "./types/PostListingMode";
287
+ export { PostNotificationsMode } from "./types/PostNotificationsMode";
288
+ export { PostOrCommentOrPrivateMessage } from "./types/PostOrCommentOrPrivateMessage";
276
289
  export { PostReport } from "./types/PostReport";
277
290
  export { PostReportId } from "./types/PostReportId";
278
291
  export { PostReportResponse } from "./types/PostReportResponse";
@@ -309,7 +322,6 @@ export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
309
322
  export { ResolveCommentReport } from "./types/ResolveCommentReport";
310
323
  export { ResolveCommunityReport } from "./types/ResolveCommunityReport";
311
324
  export { ResolveObject } from "./types/ResolveObject";
312
- export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
313
325
  export { ResolvePostReport } from "./types/ResolvePostReport";
314
326
  export { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
315
327
  export { SaveComment } from "./types/SaveComment";
@@ -333,12 +345,18 @@ export { TaglineId } from "./types/TaglineId";
333
345
  export { TaglineResponse } from "./types/TaglineResponse";
334
346
  export { TagsView } from "./types/TagsView";
335
347
  export { TransferCommunity } from "./types/TransferCommunity";
348
+ export { UntranslatedError } from "./types/UntranslatedError";
349
+ export { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
336
350
  export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
351
+ export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
352
+ export { UpdatePostNotifications } from "./types/UpdatePostNotifications";
337
353
  export { UpdateTagline } from "./types/UpdateTagline";
338
354
  export { UpdateTotp } from "./types/UpdateTotp";
339
355
  export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
340
356
  export { UploadImageResponse } from "./types/UploadImageResponse";
341
- export { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
357
+ export { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
358
+ export { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
359
+ export { UserSettingsBackup } from "./types/UserSettingsBackup";
342
360
  export { VerifyEmail } from "./types/VerifyEmail";
343
361
  export { VoteShow } from "./types/VoteShow";
344
362
  export { VoteView } from "./types/VoteView";
package/dist/index.js CHANGED
@@ -14,4 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.AllLemmyErrors = void 0;
17
18
  __exportStar(require("./http"), exports);
19
+ var AllLemmyErrors_1 = require("./types/AllLemmyErrors");
20
+ Object.defineProperty(exports, "AllLemmyErrors", { enumerable: true, get: function () { return AllLemmyErrors_1.AllLemmyErrors; } });
@@ -6,6 +6,7 @@ import { GetComments } from "./types/GetComments";
6
6
  import { GetCommunity } from "./types/GetCommunity";
7
7
  import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
8
8
  import { GetModlog } from "./types/GetModlog";
9
+ import { GetMultiCommunity } from "./types/GetMultiCommunity";
9
10
  import { GetPersonDetails } from "./types/GetPersonDetails";
10
11
  import { GetPost } from "./types/GetPost";
11
12
  import { GetPosts } from "./types/GetPosts";
@@ -17,8 +18,9 @@ import { ListCommentLikes } from "./types/ListCommentLikes";
17
18
  import { ListCommunities } from "./types/ListCommunities";
18
19
  import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
19
20
  import { ListCustomEmojis } from "./types/ListCustomEmojis";
20
- import { ListInbox } from "./types/ListInbox";
21
+ import { ListNotifications } from "./types/ListNotifications";
21
22
  import { ListMedia } from "./types/ListMedia";
23
+ import { ListMultiCommunities } from "./types/ListMultiCommunities";
22
24
  import { ListPersonContent } from "./types/ListPersonContent";
23
25
  import { ListPersonHidden } from "./types/ListPersonHidden";
24
26
  import { ListPersonLiked } from "./types/ListPersonLiked";
@@ -72,7 +74,7 @@ export interface ListPersonContentI extends ListPersonContent {
72
74
  }
73
75
  export interface GetReportCountI extends GetReportCount {
74
76
  }
75
- export interface ListInboxI extends ListInbox {
77
+ export interface ListNotificationsI extends ListNotifications {
76
78
  }
77
79
  export interface ListPersonSavedI extends ListPersonSaved {
78
80
  }
@@ -98,3 +100,7 @@ export interface AdminListUsersI extends AdminListUsers {
98
100
  }
99
101
  export interface CommunityIdQueryI extends CommunityIdQuery {
100
102
  }
103
+ export interface ListMultiCommunitiesI extends ListMultiCommunities {
104
+ }
105
+ export interface GetMultiCommunityI extends GetMultiCommunity {
106
+ }
@@ -0,0 +1,12 @@
1
+ import type { AdminAddId } from "./AdminAddId";
2
+ import type { PersonId } from "./PersonId";
3
+ /**
4
+ * When someone is added as a site admin.
5
+ */
6
+ export type AdminAdd = {
7
+ id: AdminAddId;
8
+ mod_person_id: PersonId;
9
+ other_person_id: PersonId;
10
+ removed: boolean;
11
+ published_at: string;
12
+ };
@@ -0,0 +1 @@
1
+ export type AdminAddId = number;
@@ -1,10 +1,10 @@
1
- import type { ModAdd } from "./ModAdd";
1
+ import type { AdminAdd } from "./AdminAdd";
2
2
  import type { Person } from "./Person";
3
3
  /**
4
4
  * When someone is added as a site moderator.
5
5
  */
6
- export type ModAddView = {
7
- mod_add: ModAdd;
6
+ export type AdminAddView = {
7
+ admin_add: AdminAdd;
8
8
  moderator?: Person;
9
9
  other_person: Person;
10
10
  };
@@ -6,6 +6,6 @@ export type AdminAllowInstance = {
6
6
  instance_id: InstanceId;
7
7
  admin_person_id: PersonId;
8
8
  allowed: boolean;
9
- reason?: string;
10
- published: string;
9
+ reason: string;
10
+ published_at: string;
11
11
  };
@@ -1,5 +1,5 @@
1
1
  export type AdminAllowInstanceParams = {
2
2
  instance: string;
3
3
  allow: boolean;
4
- reason?: string;
4
+ reason: string;
5
5
  };
@@ -1,16 +1,16 @@
1
+ import type { AdminBanId } from "./AdminBanId";
1
2
  import type { InstanceId } from "./InstanceId";
2
- import type { ModBanId } from "./ModBanId";
3
3
  import type { PersonId } from "./PersonId";
4
4
  /**
5
5
  * When someone is banned from the site.
6
6
  */
7
- export type ModBan = {
8
- id: ModBanId;
7
+ export type AdminBan = {
8
+ id: AdminBanId;
9
9
  mod_person_id: PersonId;
10
10
  other_person_id: PersonId;
11
- reason?: string;
11
+ reason: string;
12
12
  banned: boolean;
13
- expires?: string;
14
- published: string;
13
+ expires_at?: string;
14
+ published_at: string;
15
15
  instance_id: InstanceId;
16
16
  };
@@ -0,0 +1 @@
1
+ export type AdminBanId = number;
@@ -1,10 +1,10 @@
1
- import type { ModBan } from "./ModBan";
1
+ import type { AdminBan } from "./AdminBan";
2
2
  import type { Person } from "./Person";
3
3
  /**
4
4
  * When someone is banned from the site.
5
5
  */
6
- export type ModBanView = {
7
- mod_ban: ModBan;
6
+ export type AdminBanView = {
7
+ admin_ban: AdminBan;
8
8
  moderator?: Person;
9
9
  other_person: Person;
10
10
  };
@@ -6,7 +6,7 @@ export type AdminBlockInstance = {
6
6
  instance_id: InstanceId;
7
7
  admin_person_id: PersonId;
8
8
  blocked: boolean;
9
- reason?: string;
10
- expires?: string;
11
- published: string;
9
+ reason: string;
10
+ expires_at?: string;
11
+ published_at: string;
12
12
  };
@@ -1,6 +1,11 @@
1
1
  export type AdminBlockInstanceParams = {
2
2
  instance: string;
3
3
  block: boolean;
4
- reason?: string;
5
- expires?: string;
4
+ reason: string;
5
+ /**
6
+ * A time that the block will expire, in unix epoch seconds.
7
+ *
8
+ * An i64 unix timestamp is used for a simpler API client implementation.
9
+ */
10
+ expires_at?: number;
6
11
  };
@@ -8,6 +8,6 @@ export type AdminPurgeComment = {
8
8
  id: AdminPurgeCommentId;
9
9
  admin_person_id: PersonId;
10
10
  post_id: PostId;
11
- reason?: string;
12
- published: string;
11
+ reason: string;
12
+ published_at: string;
13
13
  };
@@ -6,6 +6,6 @@ import type { PersonId } from "./PersonId";
6
6
  export type AdminPurgeCommunity = {
7
7
  id: AdminPurgeCommunityId;
8
8
  admin_person_id: PersonId;
9
- reason?: string;
10
- published: string;
9
+ reason: string;
10
+ published_at: string;
11
11
  };
@@ -6,6 +6,6 @@ import type { PersonId } from "./PersonId";
6
6
  export type AdminPurgePerson = {
7
7
  id: AdminPurgePersonId;
8
8
  admin_person_id: PersonId;
9
- reason?: string;
10
- published: string;
9
+ reason: string;
10
+ published_at: string;
11
11
  };
@@ -8,6 +8,6 @@ export type AdminPurgePost = {
8
8
  id: AdminPurgePostId;
9
9
  admin_person_id: PersonId;
10
10
  community_id: CommunityId;
11
- reason?: string;
12
- published: string;
11
+ reason: string;
12
+ published_at: string;
13
13
  };
@@ -1,14 +1,14 @@
1
+ import type { AdminRemoveCommunityId } from "./AdminRemoveCommunityId";
1
2
  import type { CommunityId } from "./CommunityId";
2
- import type { ModRemoveCommunityId } from "./ModRemoveCommunityId";
3
3
  import type { PersonId } from "./PersonId";
4
4
  /**
5
5
  * When a moderator removes a community.
6
6
  */
7
- export type ModRemoveCommunity = {
8
- id: ModRemoveCommunityId;
7
+ export type AdminRemoveCommunity = {
8
+ id: AdminRemoveCommunityId;
9
9
  mod_person_id: PersonId;
10
10
  community_id: CommunityId;
11
- reason?: string;
11
+ reason: string;
12
12
  removed: boolean;
13
- published: string;
13
+ published_at: string;
14
14
  };
@@ -0,0 +1 @@
1
+ export type AdminRemoveCommunityId = number;
@@ -0,0 +1,11 @@
1
+ import type { AdminRemoveCommunity } from "./AdminRemoveCommunity";
2
+ import type { Community } from "./Community";
3
+ import type { Person } from "./Person";
4
+ /**
5
+ * When an admin removes a community.
6
+ */
7
+ export type AdminRemoveCommunityView = {
8
+ admin_remove_community: AdminRemoveCommunity;
9
+ moderator?: Person;
10
+ community: Community;
11
+ };
@@ -0,0 +1 @@
1
+ export declare const AllLemmyErrors: string[];
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AllLemmyErrors = void 0;
4
+ exports.AllLemmyErrors = [
5
+ "block_keyword_too_short",
6
+ "block_keyword_too_long",
7
+ "couldnt_update",
8
+ "couldnt_create",
9
+ "report_reason_required",
10
+ "report_too_long",
11
+ "not_a_moderator",
12
+ "not_an_admin",
13
+ "cant_block_yourself",
14
+ "cant_note_yourself",
15
+ "cant_block_admin",
16
+ "passwords_do_not_match",
17
+ "email_not_verified",
18
+ "email_required",
19
+ "cannot_leave_admin",
20
+ "cannot_leave_mod",
21
+ "cannot_leave_mod",
22
+ "cannot_leave_mod",
23
+ "image_url_missing_path_segments",
24
+ "image_url_missing_last_path_segment",
25
+ "pictrs_api_key_not_provided",
26
+ "no_content_type_header",
27
+ "not_an_image_type",
28
+ "invalid_image_upload",
29
+ "image_upload_disabled",
30
+ "not_a_mod_or_admin",
31
+ "not_top_mod",
32
+ "not_logged_in",
33
+ "not_higher_mod",
34
+ "not_higher_admin",
35
+ "site_ban",
36
+ "deleted",
37
+ "person_is_blocked",
38
+ "community_is_blocked",
39
+ "instance_is_blocked",
40
+ "instance_is_private",
41
+ "invalid_password",
42
+ "site_description_length_overflow",
43
+ "honeypot_failed",
44
+ "registration_application_is_pending",
45
+ "locked",
46
+ "max_comment_depth_reached",
47
+ "no_comment_edit_allowed",
48
+ "only_admins_can_create_communities",
49
+ "already_exists",
50
+ "language_not_allowed",
51
+ "no_post_edit_allowed",
52
+ "nsfw_not_allowed",
53
+ "edit_private_message_not_allowed",
54
+ "application_question_required",
55
+ "invalid_default_post_listing_type",
56
+ "registration_closed",
57
+ "registration_application_answer_required",
58
+ "registration_username_required",
59
+ "email_already_taken",
60
+ "username_already_taken",
61
+ "person_is_banned_from_community",
62
+ "no_id_given",
63
+ "incorrect_login",
64
+ "no_email_setup",
65
+ "local_site_not_setup",
66
+ "local_site_not_setup",
67
+ "invalid_name",
68
+ "invalid_code_verifier",
69
+ "invalid_display_name",
70
+ "invalid_matrix_id",
71
+ "invalid_post_title",
72
+ "invalid_body_field",
73
+ "bio_length_overflow",
74
+ "alt_text_length_overflow",
75
+ "couldnt_parse_totp_secret",
76
+ "couldnt_generate_totp",
77
+ "missing_totp_token",
78
+ "missing_totp_secret",
79
+ "incorrect_totp_token",
80
+ "totp_already_enabled",
81
+ "blocked_url",
82
+ "invalid_url",
83
+ "email_send_failed",
84
+ "slurs",
85
+ "slurs",
86
+ "site_name_required",
87
+ "site_name_length_overflow",
88
+ "permissive_regex",
89
+ "invalid_regex",
90
+ "captcha_incorrect",
91
+ "couldnt_create_audio_captcha",
92
+ "couldnt_create_image_captcha",
93
+ "invalid_url_scheme",
94
+ "contradicting_filters",
95
+ "too_many_items",
96
+ "ban_expiration_in_past",
97
+ "invalid_unix_time",
98
+ "invalid_bot_action",
99
+ "tag_not_in_community",
100
+ "cant_block_local_instance",
101
+ "cant_block_local_instance",
102
+ "url_length_overflow",
103
+ "oauth_authorization_invalid",
104
+ "oauth_login_failed",
105
+ "oauth_registration_closed",
106
+ "not_found",
107
+ "post_schedule_time_must_be_in_future",
108
+ "too_many_scheduled_posts",
109
+ "cannot_combine_federation_blocklist_and_allowlist",
110
+ "cannot_combine_federation_blocklist_and_allowlist",
111
+ "couldnt_parse_pagination_token",
112
+ "couldnt_parse_pagination_token",
113
+ "invalid_fetch_limit",
114
+ "email_notifications_disabled",
115
+ "multi_community_update_wrong_user",
116
+ "cannot_combine_community_id_and_multi_community_id",
117
+ "multi_community_entry_limit_reached",
118
+ "too_many_requests",
119
+ ];
@@ -12,11 +12,11 @@ export type BanFromCommunity = {
12
12
  * If ban is true, then this means remove. If ban is false, it means restore.
13
13
  */
14
14
  remove_or_restore_data?: boolean;
15
- reason?: string;
15
+ reason: string;
16
16
  /**
17
17
  * A time that the ban will expire, in unix epoch seconds.
18
18
  *
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
  };
@@ -10,11 +10,11 @@ export type BanPerson = {
10
10
  * If ban is true, then this means remove. If ban is false, it means restore.
11
11
  */
12
12
  remove_or_restore_data?: boolean;
13
- reason?: string;
13
+ reason: string;
14
14
  /**
15
15
  * A time that the ban will expire, in unix epoch seconds.
16
16
  *
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
  */
@@ -53,4 +53,8 @@ export type Comment = {
53
53
  * accepted by the community (by receiving it back via federation).
54
54
  */
55
55
  federation_pending: boolean;
56
+ /**
57
+ * Whether the comment is locked.
58
+ */
59
+ locked: boolean;
56
60
  };