lemmy-js-client 0.20.0-modlog-combined.1 → 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 (134) 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 +23 -25
  5. package/dist/other_types.d.ts +81 -0
  6. package/dist/types/Comment.d.ts +9 -0
  7. package/dist/types/CommentReplyView.d.ts +5 -3
  8. package/dist/types/CommentReport.d.ts +1 -0
  9. package/dist/types/CommentReportView.d.ts +4 -3
  10. package/dist/types/CommentSlimView.d.ts +22 -0
  11. package/dist/types/CommentView.d.ts +5 -3
  12. package/dist/types/Community.d.ts +24 -6
  13. package/dist/types/CommunityReportView.d.ts +0 -2
  14. package/dist/types/CommunitySortType.d.ts +1 -1
  15. package/dist/types/CommunityView.d.ts +1 -2
  16. package/dist/types/CommunityVisibility.d.ts +1 -1
  17. package/dist/types/CreateCommentReport.d.ts +1 -0
  18. package/dist/types/CreatePostReport.d.ts +1 -0
  19. package/dist/types/CreateSite.d.ts +3 -0
  20. package/dist/types/DeleteImageParams.d.ts +0 -1
  21. package/dist/types/EditSite.d.ts +13 -0
  22. package/dist/types/FederationError.d.ts +1 -1
  23. package/dist/types/GetComments.d.ts +5 -0
  24. package/dist/types/GetCommentsSlimResponse.d.ts +7 -0
  25. package/dist/types/GetModlog.d.ts +26 -2
  26. package/dist/types/GetModlogResponse.d.ts +5 -0
  27. package/dist/types/GetPostResponse.d.ts +0 -2
  28. package/dist/types/GetPosts.d.ts +12 -2
  29. package/dist/types/GetPostsResponse.d.ts +2 -2
  30. package/dist/types/GetRandomCommunity.d.ts +1 -0
  31. package/dist/types/GetSiteResponse.d.ts +2 -2
  32. package/dist/types/GetUnreadCountResponse.d.ts +2 -4
  33. package/dist/types/ImageDetails.d.ts +1 -0
  34. package/dist/types/InboxCombinedView.d.ts +13 -0
  35. package/dist/types/InboxDataType.d.ts +4 -0
  36. package/dist/types/LemmyErrorType.d.ts +5 -5
  37. package/dist/types/ListCommunities.d.ts +5 -0
  38. package/dist/types/ListInbox.d.ts +11 -0
  39. package/dist/types/ListInboxResponse.d.ts +12 -0
  40. package/dist/types/ListPersonContent.d.ts +2 -2
  41. package/dist/types/ListPersonContentResponse.d.ts +5 -0
  42. package/dist/types/ListPersonSaved.d.ts +2 -2
  43. package/dist/types/ListPersonSavedResponse.d.ts +7 -2
  44. package/dist/types/ListReports.d.ts +20 -2
  45. package/dist/types/ListReportsResponse.d.ts +5 -0
  46. package/dist/types/LocalImage.d.ts +0 -1
  47. package/dist/types/LocalSite.d.ts +33 -0
  48. package/dist/types/LocalUser.d.ts +17 -0
  49. package/dist/types/LocalUserView.d.ts +0 -4
  50. package/dist/types/MarkPersonCommentMentionAsRead.d.ts +8 -0
  51. package/dist/types/MarkPersonPostMentionAsRead.d.ts +8 -0
  52. package/dist/types/ModChangeCommunityVisibility.d.ts +12 -0
  53. package/dist/types/ModChangeCommunityVisibilityId.d.ts +1 -0
  54. package/dist/types/ModChangeCommunityVisibilityView.d.ts +11 -0
  55. package/dist/types/ModlogActionType.d.ts +1 -1
  56. package/dist/types/ModlogCombinedView.d.ts +3 -3
  57. package/dist/types/PaginationCursor.d.ts +1 -4
  58. package/dist/types/Person.d.ts +4 -2
  59. package/dist/types/{PersonMention.d.ts → PersonCommentMention.d.ts} +3 -3
  60. package/dist/types/PersonCommentMentionId.d.ts +4 -0
  61. package/dist/types/{PersonMentionView.d.ts → PersonCommentMentionView.d.ts} +9 -7
  62. package/dist/types/PersonContentType.d.ts +1 -1
  63. package/dist/types/PersonPostMention.d.ts +13 -0
  64. package/dist/types/PersonPostMentionId.d.ts +4 -0
  65. package/dist/types/PersonPostMentionView.d.ts +34 -0
  66. package/dist/types/PersonSavedCombinedView.d.ts +7 -0
  67. package/dist/types/PersonView.d.ts +0 -2
  68. package/dist/types/Post.d.ts +10 -0
  69. package/dist/types/PostPaginationCursor.d.ts +7 -0
  70. package/dist/types/PostReport.d.ts +1 -0
  71. package/dist/types/PostReportView.d.ts +4 -3
  72. package/dist/types/PostSortType.d.ts +1 -1
  73. package/dist/types/PostView.d.ts +5 -3
  74. package/dist/types/PrivateMessage.d.ts +1 -0
  75. package/dist/types/ReportType.d.ts +4 -0
  76. package/dist/types/ResendVerificationEmail.d.ts +7 -0
  77. package/dist/types/SaveUserSettings.d.ts +8 -0
  78. package/dist/types/Search.d.ts +12 -6
  79. package/dist/types/SearchCombinedView.d.ts +13 -0
  80. package/dist/types/SearchResponse.d.ts +7 -10
  81. package/dist/types/SearchSortType.d.ts +4 -0
  82. package/dist/types/Site.d.ts +2 -2
  83. package/dist/types/SiteView.d.ts +0 -2
  84. package/dist/types/SuccessResponse.d.ts +1 -1
  85. package/dist/types/UploadImageResponse.d.ts +0 -1
  86. package/package.json +9 -4
  87. package/dist/types/CommentAggregates.d.ts +0 -17
  88. package/dist/types/CommentReplyResponse.d.ts +0 -7
  89. package/dist/types/CommunityAggregates.d.ts +0 -30
  90. package/dist/types/GetPersonMentions.d.ts +0 -10
  91. package/dist/types/GetPersonMentionsResponse.d.ts +0 -7
  92. package/dist/types/GetPrivateMessages.d.ts +0 -10
  93. package/dist/types/GetReplies.d.ts +0 -10
  94. package/dist/types/GetRepliesResponse.d.ts +0 -7
  95. package/dist/types/LocalUserVoteDisplayMode.d.ts +0 -9
  96. package/dist/types/MarkPersonMentionAsRead.d.ts +0 -8
  97. package/dist/types/ModHideCommunity.d.ts +0 -14
  98. package/dist/types/ModHideCommunityId.d.ts +0 -1
  99. package/dist/types/ModHideCommunityView.d.ts +0 -11
  100. package/dist/types/ModlogCombinedPaginationCursor.d.ts +0 -4
  101. package/dist/types/PersonAggregates.d.ts +0 -9
  102. package/dist/types/PersonContentCombinedPaginationCursor.d.ts +0 -4
  103. package/dist/types/PersonMentionId.d.ts +0 -4
  104. package/dist/types/PersonMentionResponse.d.ts +0 -7
  105. package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +0 -4
  106. package/dist/types/PostAggregates.d.ts +0 -18
  107. package/dist/types/PrivateMessagesResponse.d.ts +0 -7
  108. package/dist/types/PrivateMessagesResponse.js +0 -2
  109. package/dist/types/ReportCombinedPaginationCursor.d.ts +0 -4
  110. package/dist/types/SiteAggregates.d.ts +0 -27
  111. package/dist/types/SiteAggregates.js +0 -2
  112. /package/dist/types/{CommentAggregates.js → CommentSlimView.js} +0 -0
  113. /package/dist/types/{CommentReplyResponse.js → GetCommentsSlimResponse.js} +0 -0
  114. /package/dist/types/{CommunityAggregates.js → InboxCombinedView.js} +0 -0
  115. /package/dist/types/{LocalUserVoteDisplayMode.js → InboxDataType.js} +0 -0
  116. /package/dist/types/{GetPersonMentions.js → ListInbox.js} +0 -0
  117. /package/dist/types/{GetPersonMentionsResponse.js → ListInboxResponse.js} +0 -0
  118. /package/dist/types/{GetPrivateMessages.js → MarkPersonCommentMentionAsRead.js} +0 -0
  119. /package/dist/types/{GetReplies.js → MarkPersonPostMentionAsRead.js} +0 -0
  120. /package/dist/types/{GetRepliesResponse.js → ModChangeCommunityVisibility.js} +0 -0
  121. /package/dist/types/{ModHideCommunityId.js → ModChangeCommunityVisibilityId.js} +0 -0
  122. /package/dist/types/{MarkPersonMentionAsRead.js → ModChangeCommunityVisibilityView.js} +0 -0
  123. /package/dist/types/{ModHideCommunity.js → PersonCommentMention.js} +0 -0
  124. /package/dist/types/{ModlogCombinedPaginationCursor.js → PersonCommentMentionId.js} +0 -0
  125. /package/dist/types/{ModHideCommunityView.js → PersonCommentMentionView.js} +0 -0
  126. /package/dist/types/{PersonAggregates.js → PersonPostMention.js} +0 -0
  127. /package/dist/types/{PersonContentCombinedPaginationCursor.js → PersonPostMentionId.js} +0 -0
  128. /package/dist/types/{PersonMention.js → PersonPostMentionView.js} +0 -0
  129. /package/dist/types/{PersonMentionResponse.js → PersonSavedCombinedView.js} +0 -0
  130. /package/dist/types/{PersonMentionId.js → PostPaginationCursor.js} +0 -0
  131. /package/dist/types/{PersonSavedCombinedPaginationCursor.js → ReportType.js} +0 -0
  132. /package/dist/types/{PersonMentionView.js → ResendVerificationEmail.js} +0 -0
  133. /package/dist/types/{PostAggregates.js → SearchCombinedView.js} +0 -0
  134. /package/dist/types/{ReportCombinedPaginationCursor.js → SearchSortType.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -40,21 +40,19 @@ 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";
@@ -113,6 +111,7 @@ export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
113
111
  export { GetComment } from "./types/GetComment";
114
112
  export { GetComments } from "./types/GetComments";
115
113
  export { GetCommentsResponse } from "./types/GetCommentsResponse";
114
+ export { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
116
115
  export { GetCommunity } from "./types/GetCommunity";
117
116
  export { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
118
117
  export { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
@@ -122,17 +121,12 @@ export { GetModlog } from "./types/GetModlog";
122
121
  export { GetModlogResponse } from "./types/GetModlogResponse";
123
122
  export { GetPersonDetails } from "./types/GetPersonDetails";
124
123
  export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
125
- export { GetPersonMentions } from "./types/GetPersonMentions";
126
- export { GetPersonMentionsResponse } from "./types/GetPersonMentionsResponse";
127
124
  export { GetPost } from "./types/GetPost";
128
125
  export { GetPostResponse } from "./types/GetPostResponse";
129
126
  export { GetPosts } from "./types/GetPosts";
130
127
  export { GetPostsResponse } from "./types/GetPostsResponse";
131
- export { GetPrivateMessages } from "./types/GetPrivateMessages";
132
128
  export { GetRandomCommunity } from "./types/GetRandomCommunity";
133
129
  export { GetRegistrationApplication } from "./types/GetRegistrationApplication";
134
- export { GetReplies } from "./types/GetReplies";
135
- export { GetRepliesResponse } from "./types/GetRepliesResponse";
136
130
  export { GetReportCount } from "./types/GetReportCount";
137
131
  export { GetReportCountResponse } from "./types/GetReportCountResponse";
138
132
  export { GetSiteMetadata } from "./types/GetSiteMetadata";
@@ -145,6 +139,8 @@ export { HidePost } from "./types/HidePost";
145
139
  export { ImageDetails } from "./types/ImageDetails";
146
140
  export { ImageGetParams } from "./types/ImageGetParams";
147
141
  export { ImageProxyParams } from "./types/ImageProxyParams";
142
+ export { InboxCombinedView } from "./types/InboxCombinedView";
143
+ export { InboxDataType } from "./types/InboxDataType";
148
144
  export { Instance } from "./types/Instance";
149
145
  export { InstanceId } from "./types/InstanceId";
150
146
  export { InstanceWithFederationState } from "./types/InstanceWithFederationState";
@@ -160,6 +156,8 @@ export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
160
156
  export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
161
157
  export { ListCustomEmojis } from "./types/ListCustomEmojis";
162
158
  export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
159
+ export { ListInbox } from "./types/ListInbox";
160
+ export { ListInboxResponse } from "./types/ListInboxResponse";
163
161
  export { ListLoginsResponse } from "./types/ListLoginsResponse";
164
162
  export { ListMedia } from "./types/ListMedia";
165
163
  export { ListMediaResponse } from "./types/ListMediaResponse";
@@ -185,14 +183,14 @@ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
185
183
  export { LocalUser } from "./types/LocalUser";
186
184
  export { LocalUserId } from "./types/LocalUserId";
187
185
  export { LocalUserView } from "./types/LocalUserView";
188
- export { LocalUserVoteDisplayMode } from "./types/LocalUserVoteDisplayMode";
189
186
  export { LockPost } from "./types/LockPost";
190
187
  export { Login } from "./types/Login";
191
188
  export { LoginResponse } from "./types/LoginResponse";
192
189
  export { LoginToken } from "./types/LoginToken";
193
190
  export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
194
191
  export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
195
- export { MarkPersonMentionAsRead } from "./types/MarkPersonMentionAsRead";
192
+ export { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
193
+ export { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
196
194
  export { MarkPostAsRead } from "./types/MarkPostAsRead";
197
195
  export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
198
196
  export { ModAdd } from "./types/ModAdd";
@@ -207,12 +205,12 @@ export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
207
205
  export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
208
206
  export { ModBanId } from "./types/ModBanId";
209
207
  export { ModBanView } from "./types/ModBanView";
208
+ export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
209
+ export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
210
+ export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
210
211
  export { ModFeaturePost } from "./types/ModFeaturePost";
211
212
  export { ModFeaturePostId } from "./types/ModFeaturePostId";
212
213
  export { ModFeaturePostView } from "./types/ModFeaturePostView";
213
- export { ModHideCommunity } from "./types/ModHideCommunity";
214
- export { ModHideCommunityId } from "./types/ModHideCommunityId";
215
- export { ModHideCommunityView } from "./types/ModHideCommunityView";
216
214
  export { ModLockPost } from "./types/ModLockPost";
217
215
  export { ModLockPostId } from "./types/ModLockPostId";
218
216
  export { ModLockPostView } from "./types/ModLockPostView";
@@ -229,7 +227,6 @@ export { ModTransferCommunity } from "./types/ModTransferCommunity";
229
227
  export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
230
228
  export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
231
229
  export { ModlogActionType } from "./types/ModlogActionType";
232
- export { ModlogCombinedPaginationCursor } from "./types/ModlogCombinedPaginationCursor";
233
230
  export { ModlogCombinedView } from "./types/ModlogCombinedView";
234
231
  export { MyUserInfo } from "./types/MyUserInfo";
235
232
  export { OAuthAccount } from "./types/OAuthAccount";
@@ -241,22 +238,22 @@ export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
241
238
  export { PasswordReset } from "./types/PasswordReset";
242
239
  export { PendingFollow } from "./types/PendingFollow";
243
240
  export { Person } from "./types/Person";
244
- export { PersonAggregates } from "./types/PersonAggregates";
245
- export { PersonContentCombinedPaginationCursor } from "./types/PersonContentCombinedPaginationCursor";
241
+ export { PersonCommentMention } from "./types/PersonCommentMention";
242
+ export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
243
+ export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
246
244
  export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
247
245
  export { PersonContentType } from "./types/PersonContentType";
248
246
  export { PersonId } from "./types/PersonId";
249
- export { PersonMention } from "./types/PersonMention";
250
- export { PersonMentionId } from "./types/PersonMentionId";
251
- export { PersonMentionResponse } from "./types/PersonMentionResponse";
252
- export { PersonMentionView } from "./types/PersonMentionView";
253
- 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";
254
251
  export { PersonView } from "./types/PersonView";
255
252
  export { Post } from "./types/Post";
256
- export { PostAggregates } from "./types/PostAggregates";
257
253
  export { PostFeatureType } from "./types/PostFeatureType";
258
254
  export { PostId } from "./types/PostId";
259
255
  export { PostListingMode } from "./types/PostListingMode";
256
+ export { PostPaginationCursor } from "./types/PostPaginationCursor";
260
257
  export { PostReport } from "./types/PostReport";
261
258
  export { PostReportId } from "./types/PostReportId";
262
259
  export { PostReportResponse } from "./types/PostReportResponse";
@@ -273,7 +270,6 @@ export { PrivateMessageReportResponse } from "./types/PrivateMessageReportRespon
273
270
  export { PrivateMessageReportView } from "./types/PrivateMessageReportView";
274
271
  export { PrivateMessageResponse } from "./types/PrivateMessageResponse";
275
272
  export { PrivateMessageView } from "./types/PrivateMessageView";
276
- export { PrivateMessagesResponse } from "./types/PrivateMessagesResponse";
277
273
  export { PublicOAuthProvider } from "./types/PublicOAuthProvider";
278
274
  export { PurgeComment } from "./types/PurgeComment";
279
275
  export { PurgeCommunity } from "./types/PurgeCommunity";
@@ -289,8 +285,9 @@ export { RegistrationMode } from "./types/RegistrationMode";
289
285
  export { RemoveComment } from "./types/RemoveComment";
290
286
  export { RemoveCommunity } from "./types/RemoveCommunity";
291
287
  export { RemovePost } from "./types/RemovePost";
292
- export { ReportCombinedPaginationCursor } from "./types/ReportCombinedPaginationCursor";
293
288
  export { ReportCombinedView } from "./types/ReportCombinedView";
289
+ export { ReportType } from "./types/ReportType";
290
+ export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
294
291
  export { ResolveCommentReport } from "./types/ResolveCommentReport";
295
292
  export { ResolveObject } from "./types/ResolveObject";
296
293
  export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
@@ -300,11 +297,12 @@ export { SaveComment } from "./types/SaveComment";
300
297
  export { SavePost } from "./types/SavePost";
301
298
  export { SaveUserSettings } from "./types/SaveUserSettings";
302
299
  export { Search } from "./types/Search";
300
+ export { SearchCombinedView } from "./types/SearchCombinedView";
303
301
  export { SearchResponse } from "./types/SearchResponse";
302
+ export { SearchSortType } from "./types/SearchSortType";
304
303
  export { SearchType } from "./types/SearchType";
305
304
  export { SensitiveString } from "./types/SensitiveString";
306
305
  export { Site } from "./types/Site";
307
- export { SiteAggregates } from "./types/SiteAggregates";
308
306
  export { SiteId } from "./types/SiteId";
309
307
  export { SiteResponse } from "./types/SiteResponse";
310
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
+ }
@@ -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
  };
@@ -1,5 +1,4 @@
1
1
  import type { Community } from "./Community";
2
- import type { CommunityAggregates } from "./CommunityAggregates";
3
2
  import type { CommunityReport } from "./CommunityReport";
4
3
  import type { Person } from "./Person";
5
4
  import type { SubscribedType } from "./SubscribedType";
@@ -10,7 +9,6 @@ export type CommunityReportView = {
10
9
  community_report: CommunityReport;
11
10
  community: Community;
12
11
  creator: Person;
13
- counts: CommunityAggregates;
14
12
  subscribed: SubscribedType;
15
13
  resolver?: Person;
16
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
  };
@@ -20,6 +20,7 @@ export type CreateSite = {
20
20
  default_post_listing_type?: ListingType;
21
21
  default_post_listing_mode?: PostListingMode;
22
22
  default_post_sort_type?: PostSortType;
23
+ default_post_time_range_seconds?: number;
23
24
  default_comment_sort_type?: CommentSortType;
24
25
  legal_information?: string;
25
26
  application_email_admins?: boolean;
@@ -49,4 +50,6 @@ export type CreateSite = {
49
50
  post_downvotes?: FederationMode;
50
51
  comment_upvotes?: FederationMode;
51
52
  comment_downvotes?: FederationMode;
53
+ disable_donation_dialog?: boolean;
54
+ disallow_nsfw_content?: boolean;
52
55
  };
@@ -1,4 +1,3 @@
1
1
  export type DeleteImageParams = {
2
2
  filename: string;
3
- token: string;
4
3
  };
@@ -50,6 +50,10 @@ export type EditSite = {
50
50
  * The default post sort, usually "active"
51
51
  */
52
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;
53
57
  /**
54
58
  * The default comment sort, usually "hot"
55
59
  */
@@ -154,4 +158,13 @@ export type EditSite = {
154
158
  * What kind of comment downvotes your site allows.
155
159
  */
156
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;
157
170
  };
@@ -7,4 +7,4 @@ export type FederationError = "InvalidCommunity" | "CannotCreatePostOrCommentInD
7
7
  DomainBlocked: string;
8
8
  } | {
9
9
  DomainNotInAllowList: string;
10
- } | "FederationDisabledByStrictAllowList" | "ContradictingFilters" | "UrlWithoutDomain" | "InboxTimeout" | "CantDeleteSite" | "ObjectIsNotPublic" | "ObjectIsNotPrivate" | "Unreachable";
10
+ } | "FederationDisabledByStrictAllowList" | "ContradictingFilters" | "UrlWithoutDomain" | "InboxTimeout" | "CantDeleteSite" | "ObjectIsNotPublic" | "ObjectIsNotPrivate" | "PlatformLackingPrivateCommunitySupport" | "Unreachable";
@@ -9,6 +9,11 @@ import type { PostId } from "./PostId";
9
9
  export type GetComments = {
10
10
  type_?: ListingType;
11
11
  sort?: CommentSortType;
12
+ /**
13
+ * Filter to within a given time range, in seconds.
14
+ * IE 60 would give results for the past minute.
15
+ */
16
+ time_range_seconds?: number;
12
17
  max_depth?: number;
13
18
  page?: number;
14
19
  limit?: number;
@@ -0,0 +1,7 @@
1
+ import type { CommentSlimView } from "./CommentSlimView";
2
+ /**
3
+ * A slimmer comment list response, without the post or community.
4
+ */
5
+ export type GetCommentsSlimResponse = {
6
+ comments: Array<CommentSlimView>;
7
+ };
@@ -1,19 +1,43 @@
1
1
  import type { CommentId } from "./CommentId";
2
2
  import type { CommunityId } from "./CommunityId";
3
+ import type { ListingType } from "./ListingType";
3
4
  import type { ModlogActionType } from "./ModlogActionType";
4
- import type { ModlogCombinedPaginationCursor } from "./ModlogCombinedPaginationCursor";
5
+ import type { PaginationCursor } from "./PaginationCursor";
5
6
  import type { PersonId } from "./PersonId";
6
7
  import type { PostId } from "./PostId";
7
8
  /**
8
9
  * Fetches the modlog.
9
10
  */
10
11
  export type GetModlog = {
12
+ /**
13
+ * Filter by the moderator.
14
+ */
11
15
  mod_person_id?: PersonId;
16
+ /**
17
+ * Filter by the community.
18
+ */
12
19
  community_id?: CommunityId;
20
+ /**
21
+ * Filter by the modlog action type.
22
+ */
13
23
  type_?: ModlogActionType;
24
+ /**
25
+ * Filter by listing type. When not using All, it will remove the non-community modlog entries,
26
+ * such as site bans, instance blocks, adding an admin, etc.
27
+ */
28
+ listing_type?: ListingType;
29
+ /**
30
+ * Filter by the other / modded person.
31
+ */
14
32
  other_person_id?: PersonId;
33
+ /**
34
+ * Filter by post. Will include comments of that post.
35
+ */
15
36
  post_id?: PostId;
37
+ /**
38
+ * Filter by comment.
39
+ */
16
40
  comment_id?: CommentId;
17
- page_cursor?: ModlogCombinedPaginationCursor;
41
+ page_cursor?: PaginationCursor;
18
42
  page_back?: boolean;
19
43
  };
@@ -1,7 +1,12 @@
1
1
  import type { ModlogCombinedView } from "./ModlogCombinedView";
2
+ import type { PaginationCursor } from "./PaginationCursor";
2
3
  /**
3
4
  * The modlog fetch response.
4
5
  */
5
6
  export type GetModlogResponse = {
6
7
  modlog: Array<ModlogCombinedView>;
8
+ /**
9
+ * the pagination cursor to use to fetch the next page
10
+ */
11
+ next_page?: PaginationCursor;
7
12
  };
@@ -1,4 +1,3 @@
1
- import type { CommunityModeratorView } from "./CommunityModeratorView";
2
1
  import type { CommunityView } from "./CommunityView";
3
2
  import type { PostView } from "./PostView";
4
3
  /**
@@ -7,7 +6,6 @@ import type { PostView } from "./PostView";
7
6
  export type GetPostResponse = {
8
7
  post_view: PostView;
9
8
  community_view: CommunityView;
10
- moderators: Array<CommunityModeratorView>;
11
9
  /**
12
10
  * A list of cross-posts, or other times / communities this link has been posted to.
13
11
  */