lemmy-js-client 1.0.0-post-tags.0 → 1.0.0-remove-page-limit.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.
- package/README.md +12 -3
- package/dist/http.d.ts +38 -34
- package/dist/http.js +845 -835
- package/dist/index.d.ts +16 -21
- package/dist/other_types.d.ts +3 -0
- package/dist/types/BannedPersonsResponse.d.ts +6 -0
- package/dist/types/Comment.d.ts +14 -0
- package/dist/types/CommentActions.d.ts +18 -0
- package/dist/types/CommentReplyView.d.ts +16 -11
- package/dist/types/CommentReport.d.ts +1 -0
- package/dist/types/CommentReportView.d.ts +8 -10
- package/dist/types/CommentSlimView.d.ts +12 -10
- package/dist/types/CommentView.d.ts +15 -10
- package/dist/types/Community.d.ts +25 -6
- package/dist/types/CommunityActions.d.ts +35 -0
- package/dist/types/CommunityReportResponse.d.ts +7 -0
- package/dist/types/CommunityReportView.d.ts +0 -4
- package/dist/types/CommunitySortType.d.ts +1 -1
- package/dist/types/CommunityView.d.ts +7 -6
- package/dist/types/CommunityVisibility.d.ts +1 -1
- package/dist/types/CreateCommentReport.d.ts +1 -0
- package/dist/types/CreateCommunityReport.d.ts +8 -0
- package/dist/types/CreateCommunityTag.d.ts +1 -2
- package/dist/types/CreatePostReport.d.ts +1 -0
- package/dist/types/CreateSite.d.ts +2 -1
- package/dist/types/EditPost.d.ts +2 -0
- package/dist/types/EditSite.d.ts +6 -3
- package/dist/types/FederationError.d.ts +1 -1
- package/dist/types/GetComments.d.ts +8 -1
- package/dist/types/GetCommentsResponse.d.ts +3 -0
- package/dist/types/GetCommentsSlimResponse.d.ts +3 -0
- package/dist/types/GetModlog.d.ts +27 -2
- package/dist/types/GetModlogResponse.d.ts +6 -0
- package/dist/types/GetPostResponse.d.ts +0 -2
- package/dist/types/GetPosts.d.ts +5 -5
- package/dist/types/GetPostsResponse.d.ts +1 -0
- package/dist/types/GetSiteResponse.d.ts +4 -2
- package/dist/types/ImageDetails.d.ts +1 -0
- package/dist/types/Instance.d.ts +9 -0
- package/dist/types/InstanceActions.d.ts +18 -0
- package/dist/types/InstanceWithFederationState.d.ts +9 -0
- package/dist/types/LemmyErrorType.d.ts +95 -24
- package/dist/types/ListBannedPersons.d.ts +9 -0
- package/dist/types/ListCommentLikes.d.ts +3 -1
- package/dist/types/ListCommentLikesResponse.d.ts +6 -0
- package/dist/types/ListCommunities.d.ts +8 -1
- package/dist/types/ListCommunitiesResponse.d.ts +6 -0
- package/dist/types/ListCommunityPendingFollows.d.ts +3 -1
- package/dist/types/ListCommunityPendingFollows.js +0 -1
- package/dist/types/ListCommunityPendingFollowsResponse.d.ts +6 -0
- package/dist/types/ListCustomEmojis.d.ts +0 -3
- package/dist/types/ListInbox.d.ts +3 -2
- package/dist/types/ListInboxResponse.d.ts +6 -0
- package/dist/types/ListMedia.d.ts +3 -1
- package/dist/types/ListMedia.js +0 -1
- package/dist/types/ListMediaResponse.d.ts +6 -0
- package/dist/types/ListPersonContent.d.ts +3 -2
- package/dist/types/ListPersonContentResponse.d.ts +6 -0
- package/dist/types/ListPersonSaved.d.ts +3 -2
- package/dist/types/ListPersonSavedResponse.d.ts +8 -2
- package/dist/types/ListPostLikes.d.ts +3 -1
- package/dist/types/ListPostLikesResponse.d.ts +6 -0
- package/dist/types/ListRegistrationApplications.d.ts +3 -1
- package/dist/types/ListRegistrationApplications.js +0 -1
- package/dist/types/ListRegistrationApplicationsResponse.d.ts +6 -0
- package/dist/types/ListReports.d.ts +11 -2
- package/dist/types/ListReportsResponse.d.ts +6 -0
- package/dist/types/ListTaglines.d.ts +3 -1
- package/dist/types/ListTaglines.js +0 -1
- package/dist/types/ListTaglinesResponse.d.ts +6 -0
- package/dist/types/LocalSite.d.ts +26 -3
- package/dist/types/LocalUser.d.ts +8 -0
- package/dist/types/LocalUserView.d.ts +2 -4
- package/dist/types/ModBan.d.ts +2 -0
- package/dist/types/ModChangeCommunityVisibility.d.ts +12 -0
- package/dist/types/ModChangeCommunityVisibilityId.d.ts +1 -0
- package/dist/types/ModChangeCommunityVisibilityView.d.ts +11 -0
- package/dist/types/ModlogActionType.d.ts +1 -1
- package/dist/types/ModlogCombinedView.d.ts +3 -3
- package/dist/types/MyUserInfo.d.ts +1 -0
- package/dist/types/PaginationCursor.d.ts +1 -4
- package/dist/types/PendingFollow.d.ts +2 -2
- package/dist/types/Person.d.ts +4 -10
- package/dist/types/PersonActions.d.ts +9 -0
- package/dist/types/PersonCommentMentionView.d.ts +14 -11
- package/dist/types/PersonPostMentionView.d.ts +16 -16
- package/dist/types/PersonSavedCombinedView.d.ts +7 -0
- package/dist/types/PersonView.d.ts +4 -2
- package/dist/types/PluginMetadata.d.ts +5 -0
- package/dist/types/Post.d.ts +15 -0
- package/dist/types/PostActions.d.ts +35 -0
- package/dist/types/PostReport.d.ts +1 -0
- package/dist/types/PostReportView.d.ts +8 -13
- package/dist/types/PostSortType.d.ts +1 -1
- package/dist/types/PostView.d.ts +15 -15
- package/dist/types/PrivateMessage.d.ts +1 -0
- package/dist/types/PrivateMessageReportView.d.ts +1 -1
- package/dist/types/ResendVerificationEmail.d.ts +7 -0
- package/dist/types/ResolveCommunityReport.d.ts +8 -0
- package/dist/types/ResolveCommunityReport.js +2 -0
- package/dist/types/SaveUserSettings.d.ts +5 -0
- package/dist/types/Search.d.ts +8 -2
- package/dist/types/SearchResponse.d.ts +6 -0
- package/dist/types/Site.d.ts +2 -2
- package/dist/types/SiteView.d.ts +2 -2
- package/dist/types/Tag.d.ts +8 -6
- package/dist/types/Tagline.d.ts +2 -1
- package/dist/types/Tagline.js +0 -1
- package/dist/types/{PostTags.d.ts → TagsView.d.ts} +1 -1
- package/dist/types/TagsView.js +2 -0
- package/dist/types/UpdateCommunityTag.d.ts +1 -1
- package/dist/types/VoteView.d.ts +1 -0
- package/package.json +6 -3
- package/dist/types/CommentAggregates.d.ts +0 -17
- package/dist/types/CommunityAggregates.d.ts +0 -30
- package/dist/types/CommunityTagResponse.d.ts +0 -7
- package/dist/types/InboxCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/ListCommunityTags.d.ts +0 -7
- package/dist/types/ListCommunityTagsResponse.d.ts +0 -4
- package/dist/types/LocalUserVoteDisplayMode.d.ts +0 -9
- package/dist/types/ModHideCommunity.d.ts +0 -14
- package/dist/types/ModHideCommunityId.d.ts +0 -1
- package/dist/types/ModHideCommunityId.js +0 -3
- package/dist/types/ModHideCommunityView.d.ts +0 -11
- package/dist/types/ModlogCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/ModlogCombinedPaginationCursor.js +0 -3
- package/dist/types/PersonAggregates.d.ts +0 -9
- package/dist/types/PersonContentCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/PersonContentCombinedPaginationCursor.js +0 -3
- package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/PersonSavedCombinedPaginationCursor.js +0 -3
- package/dist/types/PostAggregates.d.ts +0 -18
- package/dist/types/ReportCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/ReportCombinedPaginationCursor.js +0 -3
- package/dist/types/SearchCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/SearchCombinedPaginationCursor.js +0 -3
- package/dist/types/SiteAggregates.d.ts +0 -27
- package/dist/types/SubscribedType.d.ts +0 -4
- package/dist/types/SubscribedType.js +0 -3
- package/dist/types/UpdatePostTags.d.ts +0 -9
- /package/dist/types/{CommentAggregates.js → CommentActions.js} +0 -0
- /package/dist/types/{CommunityAggregates.js → CommunityActions.js} +0 -0
- /package/dist/types/{CommunityTagResponse.js → CommunityReportResponse.js} +0 -0
- /package/dist/types/{ListCommunityTags.js → CreateCommunityReport.js} +0 -0
- /package/dist/types/{ListCommunityTagsResponse.js → InstanceActions.js} +0 -0
- /package/dist/types/{ModHideCommunity.js → ListBannedPersons.js} +0 -0
- /package/dist/types/{ModHideCommunityView.js → ModChangeCommunityVisibility.js} +0 -0
- /package/dist/types/{InboxCombinedPaginationCursor.js → ModChangeCommunityVisibilityId.js} +0 -0
- /package/dist/types/{PersonAggregates.js → ModChangeCommunityVisibilityView.js} +0 -0
- /package/dist/types/{PostAggregates.js → PersonActions.js} +0 -0
- /package/dist/types/{PostTags.js → PersonSavedCombinedView.js} +0 -0
- /package/dist/types/{LocalUserVoteDisplayMode.js → PluginMetadata.js} +0 -0
- /package/dist/types/{SiteAggregates.js → PostActions.js} +0 -0
- /package/dist/types/{UpdatePostTags.js → ResendVerificationEmail.js} +0 -0
package/dist/index.d.ts
CHANGED
@@ -40,7 +40,7 @@ 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 {
|
43
|
+
export { CommentActions } from "./types/CommentActions";
|
44
44
|
export { CommentId } from "./types/CommentId";
|
45
45
|
export { CommentReply } from "./types/CommentReply";
|
46
46
|
export { CommentReplyId } from "./types/CommentReplyId";
|
@@ -54,23 +54,24 @@ export { CommentSlimView } from "./types/CommentSlimView";
|
|
54
54
|
export { CommentSortType } from "./types/CommentSortType";
|
55
55
|
export { CommentView } from "./types/CommentView";
|
56
56
|
export { Community } from "./types/Community";
|
57
|
-
export {
|
57
|
+
export { CommunityActions } from "./types/CommunityActions";
|
58
58
|
export { CommunityFollowerState } from "./types/CommunityFollowerState";
|
59
59
|
export { CommunityFollowerView } from "./types/CommunityFollowerView";
|
60
60
|
export { CommunityId } from "./types/CommunityId";
|
61
61
|
export { CommunityModeratorView } from "./types/CommunityModeratorView";
|
62
62
|
export { CommunityReport } from "./types/CommunityReport";
|
63
63
|
export { CommunityReportId } from "./types/CommunityReportId";
|
64
|
+
export { CommunityReportResponse } from "./types/CommunityReportResponse";
|
64
65
|
export { CommunityReportView } from "./types/CommunityReportView";
|
65
66
|
export { CommunityResponse } from "./types/CommunityResponse";
|
66
67
|
export { CommunitySortType } from "./types/CommunitySortType";
|
67
|
-
export { CommunityTagResponse } from "./types/CommunityTagResponse";
|
68
68
|
export { CommunityView } from "./types/CommunityView";
|
69
69
|
export { CommunityVisibility } from "./types/CommunityVisibility";
|
70
70
|
export { CreateComment } from "./types/CreateComment";
|
71
71
|
export { CreateCommentLike } from "./types/CreateCommentLike";
|
72
72
|
export { CreateCommentReport } from "./types/CreateCommentReport";
|
73
73
|
export { CreateCommunity } from "./types/CreateCommunity";
|
74
|
+
export { CreateCommunityReport } from "./types/CreateCommunityReport";
|
74
75
|
export { CreateCommunityTag } from "./types/CreateCommunityTag";
|
75
76
|
export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
76
77
|
export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
@@ -144,24 +145,23 @@ export { HidePost } from "./types/HidePost";
|
|
144
145
|
export { ImageDetails } from "./types/ImageDetails";
|
145
146
|
export { ImageGetParams } from "./types/ImageGetParams";
|
146
147
|
export { ImageProxyParams } from "./types/ImageProxyParams";
|
147
|
-
export { InboxCombinedPaginationCursor } from "./types/InboxCombinedPaginationCursor";
|
148
148
|
export { InboxCombinedView } from "./types/InboxCombinedView";
|
149
149
|
export { InboxDataType } from "./types/InboxDataType";
|
150
150
|
export { Instance } from "./types/Instance";
|
151
|
+
export { InstanceActions } from "./types/InstanceActions";
|
151
152
|
export { InstanceId } from "./types/InstanceId";
|
152
153
|
export { InstanceWithFederationState } from "./types/InstanceWithFederationState";
|
153
154
|
export { Language } from "./types/Language";
|
154
155
|
export { LanguageId } from "./types/LanguageId";
|
155
156
|
export { LemmyErrorType } from "./types/LemmyErrorType";
|
156
157
|
export { LinkMetadata } from "./types/LinkMetadata";
|
158
|
+
export { ListBannedPersons } from "./types/ListBannedPersons";
|
157
159
|
export { ListCommentLikes } from "./types/ListCommentLikes";
|
158
160
|
export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
159
161
|
export { ListCommunities } from "./types/ListCommunities";
|
160
162
|
export { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
|
161
163
|
export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
|
162
164
|
export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
|
163
|
-
export { ListCommunityTags } from "./types/ListCommunityTags";
|
164
|
-
export { ListCommunityTagsResponse } from "./types/ListCommunityTagsResponse";
|
165
165
|
export { ListCustomEmojis } from "./types/ListCustomEmojis";
|
166
166
|
export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
|
167
167
|
export { ListInbox } from "./types/ListInbox";
|
@@ -191,7 +191,6 @@ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
|
|
191
191
|
export { LocalUser } from "./types/LocalUser";
|
192
192
|
export { LocalUserId } from "./types/LocalUserId";
|
193
193
|
export { LocalUserView } from "./types/LocalUserView";
|
194
|
-
export { LocalUserVoteDisplayMode } from "./types/LocalUserVoteDisplayMode";
|
195
194
|
export { LockPost } from "./types/LockPost";
|
196
195
|
export { Login } from "./types/Login";
|
197
196
|
export { LoginResponse } from "./types/LoginResponse";
|
@@ -214,12 +213,12 @@ export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
|
|
214
213
|
export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
|
215
214
|
export { ModBanId } from "./types/ModBanId";
|
216
215
|
export { ModBanView } from "./types/ModBanView";
|
216
|
+
export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
|
217
|
+
export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
|
218
|
+
export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
|
217
219
|
export { ModFeaturePost } from "./types/ModFeaturePost";
|
218
220
|
export { ModFeaturePostId } from "./types/ModFeaturePostId";
|
219
221
|
export { ModFeaturePostView } from "./types/ModFeaturePostView";
|
220
|
-
export { ModHideCommunity } from "./types/ModHideCommunity";
|
221
|
-
export { ModHideCommunityId } from "./types/ModHideCommunityId";
|
222
|
-
export { ModHideCommunityView } from "./types/ModHideCommunityView";
|
223
222
|
export { ModLockPost } from "./types/ModLockPost";
|
224
223
|
export { ModLockPostId } from "./types/ModLockPostId";
|
225
224
|
export { ModLockPostView } from "./types/ModLockPostView";
|
@@ -236,7 +235,6 @@ export { ModTransferCommunity } from "./types/ModTransferCommunity";
|
|
236
235
|
export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
|
237
236
|
export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
|
238
237
|
export { ModlogActionType } from "./types/ModlogActionType";
|
239
|
-
export { ModlogCombinedPaginationCursor } from "./types/ModlogCombinedPaginationCursor";
|
240
238
|
export { ModlogCombinedView } from "./types/ModlogCombinedView";
|
241
239
|
export { MyUserInfo } from "./types/MyUserInfo";
|
242
240
|
export { OAuthAccount } from "./types/OAuthAccount";
|
@@ -248,21 +246,21 @@ export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
|
248
246
|
export { PasswordReset } from "./types/PasswordReset";
|
249
247
|
export { PendingFollow } from "./types/PendingFollow";
|
250
248
|
export { Person } from "./types/Person";
|
251
|
-
export {
|
249
|
+
export { PersonActions } from "./types/PersonActions";
|
252
250
|
export { PersonCommentMention } from "./types/PersonCommentMention";
|
253
251
|
export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
|
254
252
|
export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
|
255
|
-
export { PersonContentCombinedPaginationCursor } from "./types/PersonContentCombinedPaginationCursor";
|
256
253
|
export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
|
257
254
|
export { PersonContentType } from "./types/PersonContentType";
|
258
255
|
export { PersonId } from "./types/PersonId";
|
259
256
|
export { PersonPostMention } from "./types/PersonPostMention";
|
260
257
|
export { PersonPostMentionId } from "./types/PersonPostMentionId";
|
261
258
|
export { PersonPostMentionView } from "./types/PersonPostMentionView";
|
262
|
-
export {
|
259
|
+
export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
|
263
260
|
export { PersonView } from "./types/PersonView";
|
261
|
+
export { PluginMetadata } from "./types/PluginMetadata";
|
264
262
|
export { Post } from "./types/Post";
|
265
|
-
export {
|
263
|
+
export { PostActions } from "./types/PostActions";
|
266
264
|
export { PostFeatureType } from "./types/PostFeatureType";
|
267
265
|
export { PostId } from "./types/PostId";
|
268
266
|
export { PostListingMode } from "./types/PostListingMode";
|
@@ -272,7 +270,6 @@ export { PostReportResponse } from "./types/PostReportResponse";
|
|
272
270
|
export { PostReportView } from "./types/PostReportView";
|
273
271
|
export { PostResponse } from "./types/PostResponse";
|
274
272
|
export { PostSortType } from "./types/PostSortType";
|
275
|
-
export { PostTags } from "./types/PostTags";
|
276
273
|
export { PostView } from "./types/PostView";
|
277
274
|
export { PrivateMessage } from "./types/PrivateMessage";
|
278
275
|
export { PrivateMessageId } from "./types/PrivateMessageId";
|
@@ -297,10 +294,11 @@ export { RegistrationMode } from "./types/RegistrationMode";
|
|
297
294
|
export { RemoveComment } from "./types/RemoveComment";
|
298
295
|
export { RemoveCommunity } from "./types/RemoveCommunity";
|
299
296
|
export { RemovePost } from "./types/RemovePost";
|
300
|
-
export { ReportCombinedPaginationCursor } from "./types/ReportCombinedPaginationCursor";
|
301
297
|
export { ReportCombinedView } from "./types/ReportCombinedView";
|
302
298
|
export { ReportType } from "./types/ReportType";
|
299
|
+
export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
303
300
|
export { ResolveCommentReport } from "./types/ResolveCommentReport";
|
301
|
+
export { ResolveCommunityReport } from "./types/ResolveCommunityReport";
|
304
302
|
export { ResolveObject } from "./types/ResolveObject";
|
305
303
|
export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
|
306
304
|
export { ResolvePostReport } from "./types/ResolvePostReport";
|
@@ -309,27 +307,24 @@ export { SaveComment } from "./types/SaveComment";
|
|
309
307
|
export { SavePost } from "./types/SavePost";
|
310
308
|
export { SaveUserSettings } from "./types/SaveUserSettings";
|
311
309
|
export { Search } from "./types/Search";
|
312
|
-
export { SearchCombinedPaginationCursor } from "./types/SearchCombinedPaginationCursor";
|
313
310
|
export { SearchCombinedView } from "./types/SearchCombinedView";
|
314
311
|
export { SearchResponse } from "./types/SearchResponse";
|
315
312
|
export { SearchSortType } from "./types/SearchSortType";
|
316
313
|
export { SearchType } from "./types/SearchType";
|
317
314
|
export { SensitiveString } from "./types/SensitiveString";
|
318
315
|
export { Site } from "./types/Site";
|
319
|
-
export { SiteAggregates } from "./types/SiteAggregates";
|
320
316
|
export { SiteId } from "./types/SiteId";
|
321
317
|
export { SiteResponse } from "./types/SiteResponse";
|
322
318
|
export { SiteView } from "./types/SiteView";
|
323
|
-
export { SubscribedType } from "./types/SubscribedType";
|
324
319
|
export { SuccessResponse } from "./types/SuccessResponse";
|
325
320
|
export { Tag } from "./types/Tag";
|
326
321
|
export { TagId } from "./types/TagId";
|
327
322
|
export { Tagline } from "./types/Tagline";
|
328
323
|
export { TaglineId } from "./types/TaglineId";
|
329
324
|
export { TaglineResponse } from "./types/TaglineResponse";
|
325
|
+
export { TagsView } from "./types/TagsView";
|
330
326
|
export { TransferCommunity } from "./types/TransferCommunity";
|
331
327
|
export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
332
|
-
export { UpdatePostTags } from "./types/UpdatePostTags";
|
333
328
|
export { UpdateTagline } from "./types/UpdateTagline";
|
334
329
|
export { UpdateTotp } from "./types/UpdateTotp";
|
335
330
|
export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
package/dist/other_types.d.ts
CHANGED
@@ -11,6 +11,7 @@ import { GetRandomCommunity } from "./types/GetRandomCommunity";
|
|
11
11
|
import { GetRegistrationApplication } from "./types/GetRegistrationApplication";
|
12
12
|
import { GetReportCount } from "./types/GetReportCount";
|
13
13
|
import { GetSiteMetadata } from "./types/GetSiteMetadata";
|
14
|
+
import { ListBannedPersons } from "./types/ListBannedPersons";
|
14
15
|
import { ListCommentLikes } from "./types/ListCommentLikes";
|
15
16
|
import { ListCommunities } from "./types/ListCommunities";
|
16
17
|
import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
|
@@ -83,3 +84,5 @@ export interface ListReportsI extends ListReports {
|
|
83
84
|
}
|
84
85
|
export interface DeleteImageParamsI extends DeleteImageParams {
|
85
86
|
}
|
87
|
+
export interface ListBannedPersonsI extends ListBannedPersons {
|
88
|
+
}
|
@@ -1,7 +1,13 @@
|
|
1
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
1
2
|
import type { PersonView } from "./PersonView";
|
2
3
|
/**
|
3
4
|
* The list of banned persons.
|
4
5
|
*/
|
5
6
|
export type BannedPersonsResponse = {
|
6
7
|
banned: Array<PersonView>;
|
8
|
+
/**
|
9
|
+
* the pagination cursor to use to fetch the next page
|
10
|
+
*/
|
11
|
+
next_page?: PaginationCursor;
|
12
|
+
prev_page?: PaginationCursor;
|
7
13
|
};
|
package/dist/types/Comment.d.ts
CHANGED
@@ -39,4 +39,18 @@ export type Comment = {
|
|
39
39
|
*/
|
40
40
|
distinguished: boolean;
|
41
41
|
language_id: LanguageId;
|
42
|
+
score: number;
|
43
|
+
upvotes: number;
|
44
|
+
downvotes: number;
|
45
|
+
/**
|
46
|
+
* The total number of children in this comment branch.
|
47
|
+
*/
|
48
|
+
child_count: number;
|
49
|
+
report_count: number;
|
50
|
+
unresolved_report_count: number;
|
51
|
+
/**
|
52
|
+
* If a local user comments in a remote community, the comment is hidden until it is confirmed
|
53
|
+
* accepted by the community (by receiving it back via federation).
|
54
|
+
*/
|
55
|
+
federation_pending: boolean;
|
42
56
|
};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import type { CommentId } from "./CommentId";
|
2
|
+
import type { PersonId } from "./PersonId";
|
3
|
+
export type CommentActions = {
|
4
|
+
person_id: PersonId;
|
5
|
+
comment_id: CommentId;
|
6
|
+
/**
|
7
|
+
* The like / score for the comment.
|
8
|
+
*/
|
9
|
+
like_score?: number;
|
10
|
+
/**
|
11
|
+
* When the comment was liked.
|
12
|
+
*/
|
13
|
+
liked?: string;
|
14
|
+
/**
|
15
|
+
* When the comment was saved.
|
16
|
+
*/
|
17
|
+
saved?: string;
|
18
|
+
};
|
@@ -1,27 +1,32 @@
|
|
1
1
|
import type { Comment } from "./Comment";
|
2
|
-
import type {
|
2
|
+
import type { CommentActions } from "./CommentActions";
|
3
3
|
import type { CommentReply } from "./CommentReply";
|
4
4
|
import type { Community } from "./Community";
|
5
|
+
import type { CommunityActions } from "./CommunityActions";
|
6
|
+
import type { InstanceActions } from "./InstanceActions";
|
5
7
|
import type { Person } from "./Person";
|
8
|
+
import type { PersonActions } from "./PersonActions";
|
6
9
|
import type { Post } from "./Post";
|
7
|
-
import type {
|
10
|
+
import type { TagsView } from "./TagsView";
|
8
11
|
/**
|
9
12
|
* A comment reply view.
|
10
13
|
*/
|
11
14
|
export type CommentReplyView = {
|
12
15
|
comment_reply: CommentReply;
|
16
|
+
recipient: Person;
|
13
17
|
comment: Comment;
|
14
18
|
creator: Person;
|
15
19
|
post: Post;
|
16
20
|
community: Community;
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
21
|
+
community_actions?: CommunityActions;
|
22
|
+
comment_actions?: CommentActions;
|
23
|
+
person_actions?: PersonActions;
|
24
|
+
instance_actions?: InstanceActions;
|
25
|
+
creator_home_instance_actions?: InstanceActions;
|
26
|
+
creator_local_instance_actions?: InstanceActions;
|
27
|
+
creator_community_actions?: CommunityActions;
|
22
28
|
creator_is_admin: boolean;
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
my_vote?: number;
|
29
|
+
post_tags: TagsView;
|
30
|
+
can_mod: boolean;
|
31
|
+
creator_banned: boolean;
|
27
32
|
};
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import type { Comment } from "./Comment";
|
2
|
-
import type {
|
2
|
+
import type { CommentActions } from "./CommentActions";
|
3
3
|
import type { CommentReport } from "./CommentReport";
|
4
4
|
import type { Community } from "./Community";
|
5
|
+
import type { CommunityActions } from "./CommunityActions";
|
5
6
|
import type { Person } from "./Person";
|
7
|
+
import type { PersonActions } from "./PersonActions";
|
6
8
|
import type { Post } from "./Post";
|
7
|
-
import type { SubscribedType } from "./SubscribedType";
|
8
9
|
/**
|
9
10
|
* A comment report view.
|
10
11
|
*/
|
@@ -15,13 +16,10 @@ export type CommentReportView = {
|
|
15
16
|
community: Community;
|
16
17
|
creator: Person;
|
17
18
|
comment_creator: Person;
|
18
|
-
|
19
|
-
creator_banned_from_community: boolean;
|
20
|
-
creator_is_moderator: boolean;
|
21
|
-
creator_is_admin: boolean;
|
22
|
-
creator_blocked: boolean;
|
23
|
-
subscribed: SubscribedType;
|
24
|
-
saved: boolean;
|
25
|
-
my_vote?: number;
|
19
|
+
comment_actions?: CommentActions;
|
26
20
|
resolver?: Person;
|
21
|
+
creator_community_actions?: CommunityActions;
|
22
|
+
person_actions?: PersonActions;
|
23
|
+
community_actions?: CommunityActions;
|
24
|
+
creator_is_admin: boolean;
|
27
25
|
};
|
@@ -1,20 +1,22 @@
|
|
1
1
|
import type { Comment } from "./Comment";
|
2
|
-
import type {
|
2
|
+
import type { CommentActions } from "./CommentActions";
|
3
|
+
import type { CommunityActions } from "./CommunityActions";
|
4
|
+
import type { InstanceActions } from "./InstanceActions";
|
3
5
|
import type { Person } from "./Person";
|
4
|
-
import type {
|
6
|
+
import type { PersonActions } from "./PersonActions";
|
5
7
|
/**
|
6
8
|
* A slimmer comment view, without the post, or community.
|
7
9
|
*/
|
8
10
|
export type CommentSlimView = {
|
9
11
|
comment: Comment;
|
10
12
|
creator: Person;
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
13
|
+
comment_actions?: CommentActions;
|
14
|
+
person_actions?: PersonActions;
|
15
|
+
creator_community_actions?: CommunityActions;
|
16
|
+
instance_actions?: InstanceActions;
|
17
|
+
creator_home_instance_actions?: InstanceActions;
|
18
|
+
creator_local_instance_actions?: InstanceActions;
|
15
19
|
creator_is_admin: boolean;
|
16
|
-
|
17
|
-
|
18
|
-
creator_blocked: boolean;
|
19
|
-
my_vote?: number;
|
20
|
+
can_mod: boolean;
|
21
|
+
creator_banned: boolean;
|
20
22
|
};
|
@@ -1,9 +1,12 @@
|
|
1
1
|
import type { Comment } from "./Comment";
|
2
|
-
import type {
|
2
|
+
import type { CommentActions } from "./CommentActions";
|
3
3
|
import type { Community } from "./Community";
|
4
|
+
import type { CommunityActions } from "./CommunityActions";
|
5
|
+
import type { InstanceActions } from "./InstanceActions";
|
4
6
|
import type { Person } from "./Person";
|
7
|
+
import type { PersonActions } from "./PersonActions";
|
5
8
|
import type { Post } from "./Post";
|
6
|
-
import type {
|
9
|
+
import type { TagsView } from "./TagsView";
|
7
10
|
/**
|
8
11
|
* A comment view.
|
9
12
|
*/
|
@@ -12,13 +15,15 @@ export type CommentView = {
|
|
12
15
|
creator: Person;
|
13
16
|
post: Post;
|
14
17
|
community: Community;
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
18
|
+
community_actions?: CommunityActions;
|
19
|
+
comment_actions?: CommentActions;
|
20
|
+
person_actions?: PersonActions;
|
21
|
+
instance_actions?: InstanceActions;
|
22
|
+
creator_home_instance_actions?: InstanceActions;
|
23
|
+
creator_local_instance_actions?: InstanceActions;
|
24
|
+
creator_community_actions?: CommunityActions;
|
19
25
|
creator_is_admin: boolean;
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
my_vote?: number;
|
26
|
+
post_tags: TagsView;
|
27
|
+
can_mod: boolean;
|
28
|
+
creator_banned: boolean;
|
24
29
|
};
|
@@ -31,9 +31,9 @@ export type Community = {
|
|
31
31
|
*/
|
32
32
|
nsfw: boolean;
|
33
33
|
/**
|
34
|
-
* The federated
|
34
|
+
* The federated ap_id.
|
35
35
|
*/
|
36
|
-
|
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,27 @@ 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;
|
81
|
+
local_removed: boolean;
|
63
82
|
};
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import type { CommunityFollowerState } from "./CommunityFollowerState";
|
2
|
+
import type { CommunityId } from "./CommunityId";
|
3
|
+
import type { PersonId } from "./PersonId";
|
4
|
+
export type CommunityActions = {
|
5
|
+
community_id: CommunityId;
|
6
|
+
person_id: PersonId;
|
7
|
+
/**
|
8
|
+
* When the community was followed.
|
9
|
+
*/
|
10
|
+
followed?: string;
|
11
|
+
/**
|
12
|
+
* The state of the community follow.
|
13
|
+
*/
|
14
|
+
follow_state?: CommunityFollowerState;
|
15
|
+
/**
|
16
|
+
* The approver of the community follow.
|
17
|
+
*/
|
18
|
+
follow_approver_id?: PersonId;
|
19
|
+
/**
|
20
|
+
* When the community was blocked.
|
21
|
+
*/
|
22
|
+
blocked?: string;
|
23
|
+
/**
|
24
|
+
* When this user became a moderator.
|
25
|
+
*/
|
26
|
+
became_moderator?: string;
|
27
|
+
/**
|
28
|
+
* When this user received a ban.
|
29
|
+
*/
|
30
|
+
received_ban?: string;
|
31
|
+
/**
|
32
|
+
* When their ban expires.
|
33
|
+
*/
|
34
|
+
ban_expires?: string;
|
35
|
+
};
|
@@ -1,8 +1,6 @@
|
|
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
|
-
import type { SubscribedType } from "./SubscribedType";
|
6
4
|
/**
|
7
5
|
* A community report view.
|
8
6
|
*/
|
@@ -10,7 +8,5 @@ export type CommunityReportView = {
|
|
10
8
|
community_report: CommunityReport;
|
11
9
|
community: Community;
|
12
10
|
creator: Person;
|
13
|
-
counts: CommunityAggregates;
|
14
|
-
subscribed: SubscribedType;
|
15
11
|
resolver?: Person;
|
16
12
|
};
|
@@ -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 = "
|
4
|
+
export type CommunitySortType = "ActiveSixMonths" | "ActiveMonthly" | "ActiveWeekly" | "ActiveDaily" | "Hot" | "New" | "Old" | "NameAsc" | "NameDesc" | "Comments" | "Posts" | "Subscribers" | "SubscribersLocal";
|
@@ -1,13 +1,14 @@
|
|
1
1
|
import type { Community } from "./Community";
|
2
|
-
import type {
|
3
|
-
import type {
|
2
|
+
import type { CommunityActions } from "./CommunityActions";
|
3
|
+
import type { InstanceActions } from "./InstanceActions";
|
4
|
+
import type { TagsView } from "./TagsView";
|
4
5
|
/**
|
5
6
|
* A community view.
|
6
7
|
*/
|
7
8
|
export type CommunityView = {
|
8
9
|
community: Community;
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
community_actions?: CommunityActions;
|
11
|
+
instance_actions?: InstanceActions;
|
12
|
+
can_mod: boolean;
|
13
|
+
post_tags: TagsView;
|
13
14
|
};
|
@@ -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,5 +50,5 @@ export type CreateSite = {
|
|
49
50
|
post_downvotes?: FederationMode;
|
50
51
|
comment_upvotes?: FederationMode;
|
51
52
|
comment_downvotes?: FederationMode;
|
52
|
-
|
53
|
+
disallow_nsfw_content?: boolean;
|
53
54
|
};
|
package/dist/types/EditPost.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { LanguageId } from "./LanguageId";
|
2
2
|
import type { PostId } from "./PostId";
|
3
|
+
import type { TagId } from "./TagId";
|
3
4
|
/**
|
4
5
|
* Edit a post.
|
5
6
|
*/
|
@@ -25,4 +26,5 @@ export type EditPost = {
|
|
25
26
|
* Time when this post should be scheduled. Null means publish immediately.
|
26
27
|
*/
|
27
28
|
scheduled_publish_time?: number;
|
29
|
+
tags?: Array<TagId>;
|
28
30
|
};
|
package/dist/types/EditSite.d.ts
CHANGED
@@ -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
|
*/
|
@@ -155,8 +159,7 @@ export type EditSite = {
|
|
155
159
|
*/
|
156
160
|
comment_downvotes?: FederationMode;
|
157
161
|
/**
|
158
|
-
*
|
159
|
-
* donations.
|
162
|
+
* Block NSFW content being created
|
160
163
|
*/
|
161
|
-
|
164
|
+
disallow_nsfw_content?: boolean;
|
162
165
|
};
|
@@ -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";
|