lemmy-js-client 0.20.0-modlog-combined.0 → 0.20.0-move-community-hidden.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 (163) hide show
  1. package/README.md +13 -4
  2. package/dist/http.d.ts +189 -466
  3. package/dist/http.js +1109 -418
  4. package/dist/index.d.ts +26 -25
  5. package/dist/other_types.d.ts +81 -0
  6. package/dist/types/AdminAllowInstance.d.ts +1 -1
  7. package/dist/types/AdminBlockInstance.d.ts +1 -1
  8. package/dist/types/AdminPurgeComment.d.ts +1 -1
  9. package/dist/types/AdminPurgeCommunity.d.ts +1 -1
  10. package/dist/types/AdminPurgePerson.d.ts +1 -1
  11. package/dist/types/AdminPurgePost.d.ts +1 -1
  12. package/dist/types/Comment.d.ts +9 -0
  13. package/dist/types/CommentReplyView.d.ts +5 -3
  14. package/dist/types/CommentReport.d.ts +1 -0
  15. package/dist/types/CommentReportView.d.ts +4 -3
  16. package/dist/types/CommentSlimView.d.ts +22 -0
  17. package/dist/types/CommentView.d.ts +5 -3
  18. package/dist/types/Community.d.ts +24 -6
  19. package/dist/types/CommunityReport.d.ts +22 -0
  20. package/dist/types/CommunityReportId.d.ts +4 -0
  21. package/dist/types/CommunityReportView.d.ts +14 -0
  22. package/dist/types/CommunitySortType.d.ts +1 -1
  23. package/dist/types/CommunityView.d.ts +1 -2
  24. package/dist/types/CommunityVisibility.d.ts +1 -1
  25. package/dist/types/CreateCommentReport.d.ts +1 -0
  26. package/dist/types/CreatePostReport.d.ts +1 -0
  27. package/dist/types/CreateSite.d.ts +3 -2
  28. package/dist/types/DeleteImageParams.d.ts +0 -1
  29. package/dist/types/EditSite.d.ts +13 -8
  30. package/dist/types/FederationError.d.ts +2 -2
  31. package/dist/types/GetComments.d.ts +5 -0
  32. package/dist/types/GetCommentsSlimResponse.d.ts +7 -0
  33. package/dist/types/GetModlog.d.ts +27 -3
  34. package/dist/types/GetModlogResponse.d.ts +5 -0
  35. package/dist/types/GetPostResponse.d.ts +0 -2
  36. package/dist/types/GetPosts.d.ts +12 -2
  37. package/dist/types/GetPostsResponse.d.ts +2 -2
  38. package/dist/types/GetRandomCommunity.d.ts +1 -0
  39. package/dist/types/GetSiteResponse.d.ts +2 -2
  40. package/dist/types/GetUnreadCountResponse.d.ts +2 -4
  41. package/dist/types/ImageDetails.d.ts +1 -0
  42. package/dist/types/InboxCombinedView.d.ts +13 -0
  43. package/dist/types/InboxDataType.d.ts +4 -0
  44. package/dist/types/LemmyErrorType.d.ts +5 -5
  45. package/dist/types/ListCommunities.d.ts +5 -0
  46. package/dist/types/ListInbox.d.ts +11 -0
  47. package/dist/types/ListInboxResponse.d.ts +12 -0
  48. package/dist/types/ListPersonContent.d.ts +2 -2
  49. package/dist/types/ListPersonContentResponse.d.ts +5 -0
  50. package/dist/types/ListPersonSaved.d.ts +2 -2
  51. package/dist/types/ListPersonSavedResponse.d.ts +7 -2
  52. package/dist/types/ListReports.d.ts +20 -2
  53. package/dist/types/ListReportsResponse.d.ts +5 -0
  54. package/dist/types/LocalImage.d.ts +0 -1
  55. package/dist/types/LocalSite.d.ts +33 -0
  56. package/dist/types/LocalUser.d.ts +17 -0
  57. package/dist/types/LocalUserView.d.ts +0 -4
  58. package/dist/types/MarkPersonCommentMentionAsRead.d.ts +8 -0
  59. package/dist/types/MarkPersonPostMentionAsRead.d.ts +8 -0
  60. package/dist/types/ModAdd.d.ts +1 -1
  61. package/dist/types/ModAddCommunity.d.ts +1 -1
  62. package/dist/types/ModAddCommunityView.d.ts +1 -1
  63. package/dist/types/ModAddView.d.ts +1 -1
  64. package/dist/types/ModBan.d.ts +1 -1
  65. package/dist/types/ModBanFromCommunity.d.ts +1 -1
  66. package/dist/types/ModBanFromCommunityView.d.ts +1 -1
  67. package/dist/types/ModBanView.d.ts +1 -1
  68. package/dist/types/ModChangeCommunityVisibility.d.ts +12 -0
  69. package/dist/types/ModChangeCommunityVisibilityId.d.ts +1 -0
  70. package/dist/types/ModChangeCommunityVisibilityView.d.ts +11 -0
  71. package/dist/types/ModFeaturePost.d.ts +1 -1
  72. package/dist/types/ModFeaturePostView.d.ts +1 -1
  73. package/dist/types/ModLockPost.d.ts +1 -1
  74. package/dist/types/ModLockPostView.d.ts +1 -1
  75. package/dist/types/ModRemoveComment.d.ts +1 -1
  76. package/dist/types/ModRemoveCommentView.d.ts +1 -1
  77. package/dist/types/ModRemoveCommunity.d.ts +1 -1
  78. package/dist/types/ModRemovePost.d.ts +1 -1
  79. package/dist/types/ModRemovePostView.d.ts +1 -1
  80. package/dist/types/ModTransferCommunity.d.ts +1 -1
  81. package/dist/types/ModTransferCommunityView.d.ts +1 -1
  82. package/dist/types/ModlogActionType.d.ts +1 -1
  83. package/dist/types/ModlogCombinedView.d.ts +3 -3
  84. package/dist/types/PaginationCursor.d.ts +1 -4
  85. package/dist/types/Person.d.ts +4 -2
  86. package/dist/types/{PersonMention.d.ts → PersonCommentMention.d.ts} +3 -3
  87. package/dist/types/PersonCommentMentionId.d.ts +4 -0
  88. package/dist/types/{PersonMentionView.d.ts → PersonCommentMentionView.d.ts} +9 -7
  89. package/dist/types/PersonContentType.d.ts +1 -1
  90. package/dist/types/PersonPostMention.d.ts +13 -0
  91. package/dist/types/PersonPostMentionId.d.ts +4 -0
  92. package/dist/types/PersonPostMentionView.d.ts +34 -0
  93. package/dist/types/PersonSavedCombinedView.d.ts +7 -0
  94. package/dist/types/PersonView.d.ts +0 -2
  95. package/dist/types/Post.d.ts +10 -0
  96. package/dist/types/PostPaginationCursor.d.ts +7 -0
  97. package/dist/types/PostReport.d.ts +1 -0
  98. package/dist/types/PostReportView.d.ts +4 -3
  99. package/dist/types/PostSortType.d.ts +1 -1
  100. package/dist/types/PostView.d.ts +5 -3
  101. package/dist/types/PrivateMessage.d.ts +1 -0
  102. package/dist/types/ReportCombinedView.d.ts +4 -1
  103. package/dist/types/ReportType.d.ts +4 -0
  104. package/dist/types/ResendVerificationEmail.d.ts +7 -0
  105. package/dist/types/SaveUserSettings.d.ts +8 -0
  106. package/dist/types/Search.d.ts +12 -6
  107. package/dist/types/SearchCombinedView.d.ts +13 -0
  108. package/dist/types/SearchResponse.d.ts +7 -10
  109. package/dist/types/SearchSortType.d.ts +4 -0
  110. package/dist/types/SearchSortType.js +3 -0
  111. package/dist/types/Site.d.ts +2 -2
  112. package/dist/types/SiteView.d.ts +0 -2
  113. package/dist/types/SuccessResponse.d.ts +1 -1
  114. package/dist/types/UploadImageResponse.d.ts +0 -1
  115. package/package.json +9 -4
  116. package/dist/types/CommentAggregates.d.ts +0 -17
  117. package/dist/types/CommentReplyResponse.d.ts +0 -7
  118. package/dist/types/CommunityAggregates.d.ts +0 -28
  119. package/dist/types/GetPersonMentions.d.ts +0 -10
  120. package/dist/types/GetPersonMentionsResponse.d.ts +0 -7
  121. package/dist/types/GetPrivateMessages.d.ts +0 -10
  122. package/dist/types/GetReplies.d.ts +0 -10
  123. package/dist/types/GetRepliesResponse.d.ts +0 -7
  124. package/dist/types/LocalUserVoteDisplayMode.d.ts +0 -9
  125. package/dist/types/MarkPersonMentionAsRead.d.ts +0 -8
  126. package/dist/types/ModHideCommunity.d.ts +0 -14
  127. package/dist/types/ModHideCommunityId.d.ts +0 -1
  128. package/dist/types/ModHideCommunityView.d.ts +0 -11
  129. package/dist/types/ModlogCombinedPaginationCursor.d.ts +0 -4
  130. package/dist/types/PersonAggregates.d.ts +0 -9
  131. package/dist/types/PersonContentCombinedPaginationCursor.d.ts +0 -4
  132. package/dist/types/PersonMentionId.d.ts +0 -4
  133. package/dist/types/PersonMentionResponse.d.ts +0 -7
  134. package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +0 -4
  135. package/dist/types/PostAggregates.d.ts +0 -18
  136. package/dist/types/PrivateMessagesResponse.d.ts +0 -7
  137. package/dist/types/ReportCombinedPaginationCursor.d.ts +0 -4
  138. package/dist/types/SiteAggregates.d.ts +0 -27
  139. /package/dist/types/{CommentAggregates.js → CommentSlimView.js} +0 -0
  140. /package/dist/types/{CommentReplyResponse.js → CommunityReport.js} +0 -0
  141. /package/dist/types/{LocalUserVoteDisplayMode.js → CommunityReportId.js} +0 -0
  142. /package/dist/types/{CommunityAggregates.js → CommunityReportView.js} +0 -0
  143. /package/dist/types/{GetPersonMentions.js → GetCommentsSlimResponse.js} +0 -0
  144. /package/dist/types/{GetPersonMentionsResponse.js → InboxCombinedView.js} +0 -0
  145. /package/dist/types/{ModHideCommunityId.js → InboxDataType.js} +0 -0
  146. /package/dist/types/{GetPrivateMessages.js → ListInbox.js} +0 -0
  147. /package/dist/types/{GetReplies.js → ListInboxResponse.js} +0 -0
  148. /package/dist/types/{GetRepliesResponse.js → MarkPersonCommentMentionAsRead.js} +0 -0
  149. /package/dist/types/{MarkPersonMentionAsRead.js → MarkPersonPostMentionAsRead.js} +0 -0
  150. /package/dist/types/{ModHideCommunity.js → ModChangeCommunityVisibility.js} +0 -0
  151. /package/dist/types/{ModlogCombinedPaginationCursor.js → ModChangeCommunityVisibilityId.js} +0 -0
  152. /package/dist/types/{ModHideCommunityView.js → ModChangeCommunityVisibilityView.js} +0 -0
  153. /package/dist/types/{PersonAggregates.js → PersonCommentMention.js} +0 -0
  154. /package/dist/types/{PersonContentCombinedPaginationCursor.js → PersonCommentMentionId.js} +0 -0
  155. /package/dist/types/{PersonMention.js → PersonCommentMentionView.js} +0 -0
  156. /package/dist/types/{PersonMentionResponse.js → PersonPostMention.js} +0 -0
  157. /package/dist/types/{PersonMentionId.js → PersonPostMentionId.js} +0 -0
  158. /package/dist/types/{PersonMentionView.js → PersonPostMentionView.js} +0 -0
  159. /package/dist/types/{PostAggregates.js → PersonSavedCombinedView.js} +0 -0
  160. /package/dist/types/{PersonSavedCombinedPaginationCursor.js → PostPaginationCursor.js} +0 -0
  161. /package/dist/types/{ReportCombinedPaginationCursor.js → ReportType.js} +0 -0
  162. /package/dist/types/{PrivateMessagesResponse.js → ResendVerificationEmail.js} +0 -0
  163. /package/dist/types/{SiteAggregates.js → SearchCombinedView.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -40,25 +40,26 @@ export { BlockPersonResponse } from "./types/BlockPersonResponse";
40
40
  export { CaptchaResponse } from "./types/CaptchaResponse";
41
41
  export { ChangePassword } from "./types/ChangePassword";
42
42
  export { Comment } from "./types/Comment";
43
- export { CommentAggregates } from "./types/CommentAggregates";
44
43
  export { CommentId } from "./types/CommentId";
45
44
  export { CommentReply } from "./types/CommentReply";
46
45
  export { CommentReplyId } from "./types/CommentReplyId";
47
- export { CommentReplyResponse } from "./types/CommentReplyResponse";
48
46
  export { CommentReplyView } from "./types/CommentReplyView";
49
47
  export { CommentReport } from "./types/CommentReport";
50
48
  export { CommentReportId } from "./types/CommentReportId";
51
49
  export { CommentReportResponse } from "./types/CommentReportResponse";
52
50
  export { CommentReportView } from "./types/CommentReportView";
53
51
  export { CommentResponse } from "./types/CommentResponse";
52
+ export { CommentSlimView } from "./types/CommentSlimView";
54
53
  export { CommentSortType } from "./types/CommentSortType";
55
54
  export { CommentView } from "./types/CommentView";
56
55
  export { Community } from "./types/Community";
57
- export { CommunityAggregates } from "./types/CommunityAggregates";
58
56
  export { CommunityFollowerState } from "./types/CommunityFollowerState";
59
57
  export { CommunityFollowerView } from "./types/CommunityFollowerView";
60
58
  export { CommunityId } from "./types/CommunityId";
61
59
  export { CommunityModeratorView } from "./types/CommunityModeratorView";
60
+ export { CommunityReport } from "./types/CommunityReport";
61
+ export { CommunityReportId } from "./types/CommunityReportId";
62
+ export { CommunityReportView } from "./types/CommunityReportView";
62
63
  export { CommunityResponse } from "./types/CommunityResponse";
63
64
  export { CommunitySortType } from "./types/CommunitySortType";
64
65
  export { CommunityView } from "./types/CommunityView";
@@ -110,6 +111,7 @@ export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
110
111
  export { GetComment } from "./types/GetComment";
111
112
  export { GetComments } from "./types/GetComments";
112
113
  export { GetCommentsResponse } from "./types/GetCommentsResponse";
114
+ export { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
113
115
  export { GetCommunity } from "./types/GetCommunity";
114
116
  export { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
115
117
  export { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
@@ -119,17 +121,12 @@ export { GetModlog } from "./types/GetModlog";
119
121
  export { GetModlogResponse } from "./types/GetModlogResponse";
120
122
  export { GetPersonDetails } from "./types/GetPersonDetails";
121
123
  export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
122
- export { GetPersonMentions } from "./types/GetPersonMentions";
123
- export { GetPersonMentionsResponse } from "./types/GetPersonMentionsResponse";
124
124
  export { GetPost } from "./types/GetPost";
125
125
  export { GetPostResponse } from "./types/GetPostResponse";
126
126
  export { GetPosts } from "./types/GetPosts";
127
127
  export { GetPostsResponse } from "./types/GetPostsResponse";
128
- export { GetPrivateMessages } from "./types/GetPrivateMessages";
129
128
  export { GetRandomCommunity } from "./types/GetRandomCommunity";
130
129
  export { GetRegistrationApplication } from "./types/GetRegistrationApplication";
131
- export { GetReplies } from "./types/GetReplies";
132
- export { GetRepliesResponse } from "./types/GetRepliesResponse";
133
130
  export { GetReportCount } from "./types/GetReportCount";
134
131
  export { GetReportCountResponse } from "./types/GetReportCountResponse";
135
132
  export { GetSiteMetadata } from "./types/GetSiteMetadata";
@@ -142,6 +139,8 @@ export { HidePost } from "./types/HidePost";
142
139
  export { ImageDetails } from "./types/ImageDetails";
143
140
  export { ImageGetParams } from "./types/ImageGetParams";
144
141
  export { ImageProxyParams } from "./types/ImageProxyParams";
142
+ export { InboxCombinedView } from "./types/InboxCombinedView";
143
+ export { InboxDataType } from "./types/InboxDataType";
145
144
  export { Instance } from "./types/Instance";
146
145
  export { InstanceId } from "./types/InstanceId";
147
146
  export { InstanceWithFederationState } from "./types/InstanceWithFederationState";
@@ -157,6 +156,8 @@ export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
157
156
  export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
158
157
  export { ListCustomEmojis } from "./types/ListCustomEmojis";
159
158
  export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
159
+ export { ListInbox } from "./types/ListInbox";
160
+ export { ListInboxResponse } from "./types/ListInboxResponse";
160
161
  export { ListLoginsResponse } from "./types/ListLoginsResponse";
161
162
  export { ListMedia } from "./types/ListMedia";
162
163
  export { ListMediaResponse } from "./types/ListMediaResponse";
@@ -182,14 +183,14 @@ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
182
183
  export { LocalUser } from "./types/LocalUser";
183
184
  export { LocalUserId } from "./types/LocalUserId";
184
185
  export { LocalUserView } from "./types/LocalUserView";
185
- export { LocalUserVoteDisplayMode } from "./types/LocalUserVoteDisplayMode";
186
186
  export { LockPost } from "./types/LockPost";
187
187
  export { Login } from "./types/Login";
188
188
  export { LoginResponse } from "./types/LoginResponse";
189
189
  export { LoginToken } from "./types/LoginToken";
190
190
  export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
191
191
  export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
192
- export { MarkPersonMentionAsRead } from "./types/MarkPersonMentionAsRead";
192
+ export { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
193
+ export { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
193
194
  export { MarkPostAsRead } from "./types/MarkPostAsRead";
194
195
  export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
195
196
  export { ModAdd } from "./types/ModAdd";
@@ -204,12 +205,12 @@ export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
204
205
  export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
205
206
  export { ModBanId } from "./types/ModBanId";
206
207
  export { ModBanView } from "./types/ModBanView";
208
+ export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
209
+ export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
210
+ export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
207
211
  export { ModFeaturePost } from "./types/ModFeaturePost";
208
212
  export { ModFeaturePostId } from "./types/ModFeaturePostId";
209
213
  export { ModFeaturePostView } from "./types/ModFeaturePostView";
210
- export { ModHideCommunity } from "./types/ModHideCommunity";
211
- export { ModHideCommunityId } from "./types/ModHideCommunityId";
212
- export { ModHideCommunityView } from "./types/ModHideCommunityView";
213
214
  export { ModLockPost } from "./types/ModLockPost";
214
215
  export { ModLockPostId } from "./types/ModLockPostId";
215
216
  export { ModLockPostView } from "./types/ModLockPostView";
@@ -226,7 +227,6 @@ export { ModTransferCommunity } from "./types/ModTransferCommunity";
226
227
  export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
227
228
  export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
228
229
  export { ModlogActionType } from "./types/ModlogActionType";
229
- export { ModlogCombinedPaginationCursor } from "./types/ModlogCombinedPaginationCursor";
230
230
  export { ModlogCombinedView } from "./types/ModlogCombinedView";
231
231
  export { MyUserInfo } from "./types/MyUserInfo";
232
232
  export { OAuthAccount } from "./types/OAuthAccount";
@@ -238,22 +238,22 @@ export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
238
238
  export { PasswordReset } from "./types/PasswordReset";
239
239
  export { PendingFollow } from "./types/PendingFollow";
240
240
  export { Person } from "./types/Person";
241
- export { PersonAggregates } from "./types/PersonAggregates";
242
- export { PersonContentCombinedPaginationCursor } from "./types/PersonContentCombinedPaginationCursor";
241
+ export { PersonCommentMention } from "./types/PersonCommentMention";
242
+ export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
243
+ export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
243
244
  export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
244
245
  export { PersonContentType } from "./types/PersonContentType";
245
246
  export { PersonId } from "./types/PersonId";
246
- export { PersonMention } from "./types/PersonMention";
247
- export { PersonMentionId } from "./types/PersonMentionId";
248
- export { PersonMentionResponse } from "./types/PersonMentionResponse";
249
- export { PersonMentionView } from "./types/PersonMentionView";
250
- export { PersonSavedCombinedPaginationCursor } from "./types/PersonSavedCombinedPaginationCursor";
247
+ export { PersonPostMention } from "./types/PersonPostMention";
248
+ export { PersonPostMentionId } from "./types/PersonPostMentionId";
249
+ export { PersonPostMentionView } from "./types/PersonPostMentionView";
250
+ export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
251
251
  export { PersonView } from "./types/PersonView";
252
252
  export { Post } from "./types/Post";
253
- export { PostAggregates } from "./types/PostAggregates";
254
253
  export { PostFeatureType } from "./types/PostFeatureType";
255
254
  export { PostId } from "./types/PostId";
256
255
  export { PostListingMode } from "./types/PostListingMode";
256
+ export { PostPaginationCursor } from "./types/PostPaginationCursor";
257
257
  export { PostReport } from "./types/PostReport";
258
258
  export { PostReportId } from "./types/PostReportId";
259
259
  export { PostReportResponse } from "./types/PostReportResponse";
@@ -270,7 +270,6 @@ export { PrivateMessageReportResponse } from "./types/PrivateMessageReportRespon
270
270
  export { PrivateMessageReportView } from "./types/PrivateMessageReportView";
271
271
  export { PrivateMessageResponse } from "./types/PrivateMessageResponse";
272
272
  export { PrivateMessageView } from "./types/PrivateMessageView";
273
- export { PrivateMessagesResponse } from "./types/PrivateMessagesResponse";
274
273
  export { PublicOAuthProvider } from "./types/PublicOAuthProvider";
275
274
  export { PurgeComment } from "./types/PurgeComment";
276
275
  export { PurgeCommunity } from "./types/PurgeCommunity";
@@ -286,8 +285,9 @@ export { RegistrationMode } from "./types/RegistrationMode";
286
285
  export { RemoveComment } from "./types/RemoveComment";
287
286
  export { RemoveCommunity } from "./types/RemoveCommunity";
288
287
  export { RemovePost } from "./types/RemovePost";
289
- export { ReportCombinedPaginationCursor } from "./types/ReportCombinedPaginationCursor";
290
288
  export { ReportCombinedView } from "./types/ReportCombinedView";
289
+ export { ReportType } from "./types/ReportType";
290
+ export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
291
291
  export { ResolveCommentReport } from "./types/ResolveCommentReport";
292
292
  export { ResolveObject } from "./types/ResolveObject";
293
293
  export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
@@ -297,11 +297,12 @@ export { SaveComment } from "./types/SaveComment";
297
297
  export { SavePost } from "./types/SavePost";
298
298
  export { SaveUserSettings } from "./types/SaveUserSettings";
299
299
  export { Search } from "./types/Search";
300
+ export { SearchCombinedView } from "./types/SearchCombinedView";
300
301
  export { SearchResponse } from "./types/SearchResponse";
302
+ export { SearchSortType } from "./types/SearchSortType";
301
303
  export { SearchType } from "./types/SearchType";
302
304
  export { SensitiveString } from "./types/SensitiveString";
303
305
  export { Site } from "./types/Site";
304
- export { SiteAggregates } from "./types/SiteAggregates";
305
306
  export { SiteId } from "./types/SiteId";
306
307
  export { SiteResponse } from "./types/SiteResponse";
307
308
  export { SiteView } from "./types/SiteView";
@@ -1,4 +1,85 @@
1
+ import { DeleteImageParams } from "./types/DeleteImageParams";
2
+ import { GetComment } from "./types/GetComment";
3
+ import { GetComments } from "./types/GetComments";
4
+ import { GetCommunity } from "./types/GetCommunity";
5
+ import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
6
+ import { GetModlog } from "./types/GetModlog";
7
+ import { GetPersonDetails } from "./types/GetPersonDetails";
8
+ import { GetPost } from "./types/GetPost";
9
+ import { GetPosts } from "./types/GetPosts";
10
+ import { GetRandomCommunity } from "./types/GetRandomCommunity";
11
+ import { GetRegistrationApplication } from "./types/GetRegistrationApplication";
12
+ import { GetReportCount } from "./types/GetReportCount";
13
+ import { GetSiteMetadata } from "./types/GetSiteMetadata";
14
+ import { ListCommentLikes } from "./types/ListCommentLikes";
15
+ import { ListCommunities } from "./types/ListCommunities";
16
+ import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
17
+ import { ListCustomEmojis } from "./types/ListCustomEmojis";
18
+ import { ListInbox } from "./types/ListInbox";
19
+ import { ListMedia } from "./types/ListMedia";
20
+ import { ListPersonContent } from "./types/ListPersonContent";
21
+ import { ListPersonSaved } from "./types/ListPersonSaved";
22
+ import { ListPostLikes } from "./types/ListPostLikes";
23
+ import { ListRegistrationApplications } from "./types/ListRegistrationApplications";
24
+ import { ListReports } from "./types/ListReports";
25
+ import { ListTaglines } from "./types/ListTaglines";
26
+ import { ResolveObject } from "./types/ResolveObject";
27
+ import { Search } from "./types/Search";
1
28
  export declare const VERSION = "v4";
2
29
  export interface UploadImage {
3
30
  image: File | Buffer;
4
31
  }
32
+ export interface ListMediaI extends ListMedia {
33
+ }
34
+ export interface GetModlogI extends GetModlog {
35
+ }
36
+ export interface SearchI extends Search {
37
+ }
38
+ export interface ResolveObjectI extends ResolveObject {
39
+ }
40
+ export interface GetCommunityI extends GetCommunity {
41
+ }
42
+ export interface ListCommunitiesI extends ListCommunities {
43
+ }
44
+ export interface GetCommunityPendingFollowsCountI extends GetCommunityPendingFollowsCount {
45
+ }
46
+ export interface ListCommunityPendingFollowsI extends ListCommunityPendingFollows {
47
+ }
48
+ export interface GetRandomCommunityI extends GetRandomCommunity {
49
+ }
50
+ export interface GetPostI extends GetPost {
51
+ }
52
+ export interface GetPostsI extends GetPosts {
53
+ }
54
+ export interface ListPostLikesI extends ListPostLikes {
55
+ }
56
+ export interface GetSiteMetadataI extends GetSiteMetadata {
57
+ }
58
+ export interface ListCommentLikesI extends ListCommentLikes {
59
+ }
60
+ export interface GetCommentsI extends GetComments {
61
+ }
62
+ export interface GetCommentI extends GetComment {
63
+ }
64
+ export interface GetPersonDetailsI extends GetPersonDetails {
65
+ }
66
+ export interface ListPersonContentI extends ListPersonContent {
67
+ }
68
+ export interface GetReportCountI extends GetReportCount {
69
+ }
70
+ export interface ListInboxI extends ListInbox {
71
+ }
72
+ export interface ListPersonSavedI extends ListPersonSaved {
73
+ }
74
+ export interface ListRegistrationApplicationsI extends ListRegistrationApplications {
75
+ }
76
+ export interface GetRegistrationApplicationI extends GetRegistrationApplication {
77
+ }
78
+ export interface ListCustomEmojisI extends ListCustomEmojis {
79
+ }
80
+ export interface ListTaglinesI extends ListTaglines {
81
+ }
82
+ export interface ListReportsI extends ListReports {
83
+ }
84
+ export interface DeleteImageParamsI extends DeleteImageParams {
85
+ }
@@ -7,5 +7,5 @@ export type AdminAllowInstance = {
7
7
  admin_person_id: PersonId;
8
8
  allowed: boolean;
9
9
  reason?: string;
10
- when_: string;
10
+ published: string;
11
11
  };
@@ -8,5 +8,5 @@ export type AdminBlockInstance = {
8
8
  blocked: boolean;
9
9
  reason?: string;
10
10
  expires?: string;
11
- when_: string;
11
+ published: string;
12
12
  };
@@ -9,5 +9,5 @@ export type AdminPurgeComment = {
9
9
  admin_person_id: PersonId;
10
10
  post_id: PostId;
11
11
  reason?: string;
12
- when_: string;
12
+ published: 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
- when_: string;
10
+ published: 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
- when_: string;
10
+ published: 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
- when_: string;
12
+ published: string;
13
13
  };
@@ -39,4 +39,13 @@ 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;
42
51
  };
@@ -1,5 +1,4 @@
1
1
  import type { Comment } from "./Comment";
2
- import type { CommentAggregates } from "./CommentAggregates";
3
2
  import type { CommentReply } from "./CommentReply";
4
3
  import type { Community } from "./Community";
5
4
  import type { Person } from "./Person";
@@ -15,13 +14,16 @@ export type CommentReplyView = {
15
14
  post: Post;
16
15
  community: Community;
17
16
  recipient: Person;
18
- counts: CommentAggregates;
19
17
  creator_banned_from_community: boolean;
20
18
  banned_from_community: boolean;
21
19
  creator_is_moderator: boolean;
22
20
  creator_is_admin: boolean;
23
21
  subscribed: SubscribedType;
24
- saved: boolean;
22
+ /**
23
+ * The time when the comment was saved.
24
+ */
25
+ saved?: string;
25
26
  creator_blocked: boolean;
26
27
  my_vote?: number;
28
+ can_mod: boolean;
27
29
  };
@@ -14,4 +14,5 @@ export type CommentReport = {
14
14
  resolver_id?: PersonId;
15
15
  published: string;
16
16
  updated?: string;
17
+ violates_instance_rules: boolean;
17
18
  };
@@ -1,5 +1,4 @@
1
1
  import type { Comment } from "./Comment";
2
- import type { CommentAggregates } from "./CommentAggregates";
3
2
  import type { CommentReport } from "./CommentReport";
4
3
  import type { Community } from "./Community";
5
4
  import type { Person } from "./Person";
@@ -15,13 +14,15 @@ export type CommentReportView = {
15
14
  community: Community;
16
15
  creator: Person;
17
16
  comment_creator: Person;
18
- counts: CommentAggregates;
19
17
  creator_banned_from_community: boolean;
20
18
  creator_is_moderator: boolean;
21
19
  creator_is_admin: boolean;
22
20
  creator_blocked: boolean;
23
21
  subscribed: SubscribedType;
24
- saved: boolean;
22
+ /**
23
+ * The time when the comment was saved.
24
+ */
25
+ saved?: string;
25
26
  my_vote?: number;
26
27
  resolver?: Person;
27
28
  };
@@ -0,0 +1,22 @@
1
+ import type { Comment } from "./Comment";
2
+ import type { Person } from "./Person";
3
+ import type { SubscribedType } from "./SubscribedType";
4
+ /**
5
+ * A slimmer comment view, without the post, or community.
6
+ */
7
+ export type CommentSlimView = {
8
+ comment: Comment;
9
+ creator: Person;
10
+ creator_banned_from_community: boolean;
11
+ banned_from_community: boolean;
12
+ creator_is_moderator: boolean;
13
+ creator_is_admin: boolean;
14
+ subscribed: SubscribedType;
15
+ /**
16
+ * The time when the comment was saved.
17
+ */
18
+ saved?: string;
19
+ creator_blocked: boolean;
20
+ my_vote?: number;
21
+ can_mod: boolean;
22
+ };
@@ -1,5 +1,4 @@
1
1
  import type { Comment } from "./Comment";
2
- import type { CommentAggregates } from "./CommentAggregates";
3
2
  import type { Community } from "./Community";
4
3
  import type { Person } from "./Person";
5
4
  import type { Post } from "./Post";
@@ -12,13 +11,16 @@ export type CommentView = {
12
11
  creator: Person;
13
12
  post: Post;
14
13
  community: Community;
15
- counts: CommentAggregates;
16
14
  creator_banned_from_community: boolean;
17
15
  banned_from_community: boolean;
18
16
  creator_is_moderator: boolean;
19
17
  creator_is_admin: boolean;
20
18
  subscribed: SubscribedType;
21
- saved: boolean;
19
+ /**
20
+ * The time when the comment was saved.
21
+ */
22
+ saved?: string;
22
23
  creator_blocked: boolean;
23
24
  my_vote?: number;
25
+ can_mod: boolean;
24
26
  };
@@ -31,9 +31,9 @@ export type Community = {
31
31
  */
32
32
  nsfw: boolean;
33
33
  /**
34
- * The federated actor_id.
34
+ * The federated ap_id.
35
35
  */
36
- actor_id: DbUrl;
36
+ ap_id: DbUrl;
37
37
  /**
38
38
  * Whether the community is local.
39
39
  */
@@ -46,10 +46,6 @@ export type Community = {
46
46
  * A URL for a banner.
47
47
  */
48
48
  banner?: DbUrl;
49
- /**
50
- * Whether the community is hidden.
51
- */
52
- hidden: boolean;
53
49
  /**
54
50
  * Whether posting is restricted to mods only.
55
51
  */
@@ -60,4 +56,26 @@ export type Community = {
60
56
  * A shorter, one-line description of the site.
61
57
  */
62
58
  description?: string;
59
+ subscribers: number;
60
+ posts: number;
61
+ comments: number;
62
+ /**
63
+ * The number of users with any activity in the last day.
64
+ */
65
+ users_active_day: number;
66
+ /**
67
+ * The number of users with any activity in the last week.
68
+ */
69
+ users_active_week: number;
70
+ /**
71
+ * The number of users with any activity in the last month.
72
+ */
73
+ users_active_month: number;
74
+ /**
75
+ * The number of users with any activity in the last year.
76
+ */
77
+ users_active_half_year: number;
78
+ subscribers_local: number;
79
+ report_count: number;
80
+ unresolved_report_count: number;
63
81
  };
@@ -0,0 +1,22 @@
1
+ import type { CommunityId } from "./CommunityId";
2
+ import type { CommunityReportId } from "./CommunityReportId";
3
+ import type { PersonId } from "./PersonId";
4
+ /**
5
+ * A comment report.
6
+ */
7
+ export type CommunityReport = {
8
+ id: CommunityReportId;
9
+ creator_id: PersonId;
10
+ community_id: CommunityId;
11
+ original_community_name: string;
12
+ original_community_title: string;
13
+ original_community_description?: string;
14
+ original_community_sidebar?: string;
15
+ original_community_icon?: string;
16
+ original_community_banner?: string;
17
+ reason: string;
18
+ resolved: boolean;
19
+ resolver_id?: PersonId;
20
+ published: string;
21
+ updated?: string;
22
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * The community report id.
3
+ */
4
+ export type CommunityReportId = number;
@@ -0,0 +1,14 @@
1
+ import type { Community } from "./Community";
2
+ import type { CommunityReport } from "./CommunityReport";
3
+ import type { Person } from "./Person";
4
+ import type { SubscribedType } from "./SubscribedType";
5
+ /**
6
+ * A community report view.
7
+ */
8
+ export type CommunityReportView = {
9
+ community_report: CommunityReport;
10
+ community: Community;
11
+ creator: Person;
12
+ subscribed: SubscribedType;
13
+ resolver?: Person;
14
+ };
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The community sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
3
3
  */
4
- export type CommunitySortType = "Active" | "Hot" | "New" | "Old" | "TopDay" | "TopWeek" | "TopMonth" | "TopYear" | "TopAll" | "MostComments" | "NewComments" | "TopHour" | "TopSixHour" | "TopTwelveHour" | "TopThreeMonths" | "TopSixMonths" | "TopNineMonths" | "Controversial" | "Scaled" | "NameAsc" | "NameDesc";
4
+ export type CommunitySortType = "ActiveSixMonths" | "ActiveMonthly" | "ActiveWeekly" | "ActiveDaily" | "Hot" | "New" | "Old" | "NameAsc" | "NameDesc" | "Comments" | "Posts" | "Subscribers" | "SubscribersLocal";
@@ -1,5 +1,4 @@
1
1
  import type { Community } from "./Community";
2
- import type { CommunityAggregates } from "./CommunityAggregates";
3
2
  import type { SubscribedType } from "./SubscribedType";
4
3
  /**
5
4
  * A community view.
@@ -8,6 +7,6 @@ export type CommunityView = {
8
7
  community: Community;
9
8
  subscribed: SubscribedType;
10
9
  blocked: boolean;
11
- counts: CommunityAggregates;
12
10
  banned_from_community: boolean;
11
+ can_mod: boolean;
13
12
  };
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Defines who can browse and interact with content in a community.
3
3
  */
4
- export type CommunityVisibility = "Public" | "LocalOnly" | "Private";
4
+ export type CommunityVisibility = "Public" | "Hidden" | "LocalOnlyPublic" | "LocalOnlyPrivate" | "Private";
@@ -5,4 +5,5 @@ import type { CommentId } from "./CommentId";
5
5
  export type CreateCommentReport = {
6
6
  comment_id: CommentId;
7
7
  reason: string;
8
+ violates_instance_rules?: boolean;
8
9
  };
@@ -5,4 +5,5 @@ import type { PostId } from "./PostId";
5
5
  export type CreatePostReport = {
6
6
  post_id: PostId;
7
7
  reason: string;
8
+ violates_instance_rules?: boolean;
8
9
  };
@@ -12,7 +12,6 @@ export type CreateSite = {
12
12
  name: string;
13
13
  sidebar?: string;
14
14
  description?: string;
15
- enable_nsfw?: boolean;
16
15
  community_creation_admin_only?: boolean;
17
16
  require_email_verification?: boolean;
18
17
  application_question?: string;
@@ -21,6 +20,7 @@ export type CreateSite = {
21
20
  default_post_listing_type?: ListingType;
22
21
  default_post_listing_mode?: PostListingMode;
23
22
  default_post_sort_type?: PostSortType;
23
+ default_post_time_range_seconds?: number;
24
24
  default_comment_sort_type?: CommentSortType;
25
25
  legal_information?: string;
26
26
  application_email_admins?: boolean;
@@ -41,7 +41,6 @@ export type CreateSite = {
41
41
  rate_limit_search?: number;
42
42
  rate_limit_search_per_second?: number;
43
43
  federation_enabled?: boolean;
44
- federation_debug?: boolean;
45
44
  captcha_enabled?: boolean;
46
45
  captcha_difficulty?: string;
47
46
  registration_mode?: RegistrationMode;
@@ -51,4 +50,6 @@ export type CreateSite = {
51
50
  post_downvotes?: FederationMode;
52
51
  comment_upvotes?: FederationMode;
53
52
  comment_downvotes?: FederationMode;
53
+ disable_donation_dialog?: boolean;
54
+ disallow_nsfw_content?: boolean;
54
55
  };
@@ -1,4 +1,3 @@
1
1
  export type DeleteImageParams = {
2
2
  filename: string;
3
- token: string;
4
3
  };
@@ -18,10 +18,6 @@ export type EditSite = {
18
18
  * A shorter, one line description of your site.
19
19
  */
20
20
  description?: string;
21
- /**
22
- * Whether to enable NSFW.
23
- */
24
- enable_nsfw?: boolean;
25
21
  /**
26
22
  * Limits community creation to admins only.
27
23
  */
@@ -54,6 +50,10 @@ export type EditSite = {
54
50
  * The default post sort, usually "active"
55
51
  */
56
52
  default_post_sort_type?: PostSortType;
53
+ /**
54
+ * A default time range limit to apply to post sorts, in seconds. 0 means none.
55
+ */
56
+ default_post_time_range_seconds?: number;
57
57
  /**
58
58
  * The default comment sort, usually "hot"
59
59
  */
@@ -116,10 +116,6 @@ export type EditSite = {
116
116
  * Whether to enable federation.
117
117
  */
118
118
  federation_enabled?: boolean;
119
- /**
120
- * Enables federation debugging.
121
- */
122
- federation_debug?: boolean;
123
119
  /**
124
120
  * Whether to enable captchas for signups.
125
121
  */
@@ -162,4 +158,13 @@ export type EditSite = {
162
158
  * What kind of comment downvotes your site allows.
163
159
  */
164
160
  comment_downvotes?: FederationMode;
161
+ /**
162
+ * If this is true, users will never see the dialog asking to support Lemmy development with
163
+ * donations.
164
+ */
165
+ disable_donation_dialog?: boolean;
166
+ /**
167
+ * Block NSFW content being created
168
+ */
169
+ disallow_nsfw_content?: boolean;
165
170
  };