lemmy-js-client 1.0.0-block-nsfw.1 → 1.0.0-comment-lock.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 +6 -0
- package/dist/http.d.ts +134 -47
- package/dist/http.js +1155 -923
- package/dist/index.d.ts +77 -49
- package/dist/other_types.d.ts +23 -2
- package/dist/types/AdminAdd.d.ts +12 -0
- package/dist/types/AdminAddId.d.ts +1 -0
- package/dist/types/{ModAddView.d.ts → AdminAddView.d.ts} +3 -3
- package/dist/types/AdminAllowInstance.d.ts +1 -1
- package/dist/types/AdminBan.d.ts +16 -0
- package/dist/types/AdminBanId.d.ts +1 -0
- package/dist/types/{ModBanView.d.ts → AdminBanView.d.ts} +3 -3
- package/dist/types/AdminBlockInstance.d.ts +2 -2
- package/dist/types/AdminBlockInstanceParams.d.ts +1 -1
- package/dist/types/AdminListUsers.d.ts +7 -0
- package/dist/types/AdminListUsersResponse.d.ts +10 -0
- package/dist/types/AdminPurgeComment.d.ts +1 -1
- package/dist/types/AdminPurgeCommunity.d.ts +1 -1
- package/dist/types/AdminPurgePerson.d.ts +1 -1
- package/dist/types/AdminPurgePost.d.ts +1 -1
- package/dist/types/{ModRemoveCommunity.d.ts → AdminRemoveCommunity.d.ts} +4 -4
- package/dist/types/AdminRemoveCommunityId.d.ts +1 -0
- package/dist/types/AdminRemoveCommunityView.d.ts +11 -0
- package/dist/types/BanFromCommunity.d.ts +1 -1
- package/dist/types/BanPerson.d.ts +1 -1
- package/dist/types/Comment.d.ts +20 -2
- package/dist/types/CommentActions.d.ts +14 -0
- package/dist/types/CommentReport.d.ts +2 -2
- package/dist/types/CommentReportView.d.ts +10 -13
- package/dist/types/CommentResponse.d.ts +0 -2
- package/dist/types/CommentSlimView.d.ts +7 -13
- package/dist/types/CommentView.d.ts +13 -13
- package/dist/types/Community.d.ts +25 -6
- package/dist/types/CommunityActions.d.ts +29 -0
- package/dist/types/CommunityIdQuery.d.ts +8 -0
- package/dist/types/CommunityNotificationsMode.d.ts +4 -0
- package/dist/types/CommunityReport.d.ts +2 -2
- package/dist/types/CommunityReportResponse.d.ts +7 -0
- package/dist/types/CommunityReportView.d.ts +4 -4
- package/dist/types/CommunityView.d.ts +4 -6
- package/dist/types/CommunityVisibility.d.ts +1 -1
- package/dist/types/CreateCommunityReport.d.ts +8 -0
- package/dist/types/CreateCommunityTag.d.ts +10 -0
- package/dist/types/CreateMultiCommunity.d.ts +5 -0
- package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
- package/dist/types/CreatePost.d.ts +1 -1
- package/dist/types/CreateSite.d.ts +18 -14
- package/dist/types/CustomEmoji.d.ts +2 -2
- package/dist/types/DeleteCommunityTag.d.ts +7 -0
- package/dist/types/EditPost.d.ts +2 -2
- package/dist/types/EditSite.d.ts +30 -21
- package/dist/types/ExportDataResponse.d.ts +13 -0
- package/dist/types/FederationBlockList.d.ts +3 -3
- package/dist/types/FederationError.d.ts +4 -2
- package/dist/types/FollowMultiCommunity.d.ts +5 -0
- package/dist/types/GetComments.d.ts +3 -3
- package/dist/types/GetCommentsResponse.d.ts +3 -0
- package/dist/types/GetCommentsSlimResponse.d.ts +3 -0
- package/dist/types/GetModlog.d.ts +3 -2
- package/dist/types/GetModlogResponse.d.ts +6 -0
- package/dist/types/GetMultiCommunity.d.ts +4 -0
- package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
- package/dist/types/GetPosts.d.ts +3 -9
- package/dist/types/GetPostsResponse.d.ts +1 -0
- package/dist/types/GetSiteResponse.d.ts +4 -2
- package/dist/types/Instance.d.ts +13 -3
- package/dist/types/InstanceActions.d.ts +18 -0
- package/dist/types/InstanceWithFederationState.d.ts +11 -2
- package/dist/types/LemmyErrorType.d.ts +36 -83
- package/dist/types/LikeType.d.ts +4 -0
- package/dist/types/LinkMetadata.d.ts +4 -0
- package/dist/types/ListCommentLikes.d.ts +3 -1
- package/dist/types/ListCommentLikesResponse.d.ts +6 -0
- package/dist/types/ListCommunities.d.ts +3 -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/ListMedia.d.ts +3 -1
- package/dist/types/ListMedia.js +0 -1
- package/dist/types/ListMediaResponse.d.ts +6 -0
- package/dist/types/ListMultiCommunities.d.ts +5 -0
- package/dist/types/ListMultiCommunitiesResponse.d.ts +4 -0
- package/dist/types/ListNotifications.d.ts +12 -0
- package/dist/types/ListNotificationsResponse.d.ts +13 -0
- package/dist/types/ListPersonContent.d.ts +3 -2
- package/dist/types/ListPersonContentResponse.d.ts +6 -0
- package/dist/types/ListPersonHidden.d.ts +9 -0
- package/dist/types/ListPersonHiddenResponse.d.ts +13 -0
- package/dist/types/ListPersonLiked.d.ts +13 -0
- package/dist/types/ListPersonLikedResponse.d.ts +13 -0
- package/dist/types/ListPersonRead.d.ts +9 -0
- package/dist/types/ListPersonReadResponse.d.ts +13 -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 +3 -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/ListingType.d.ts +1 -1
- package/dist/types/LocalImage.d.ts +8 -3
- package/dist/types/LocalImageView.d.ts +2 -0
- package/dist/types/LocalSite.d.ts +31 -11
- package/dist/types/LocalSiteRateLimit.d.ts +16 -16
- package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
- package/dist/types/LocalUser.d.ts +8 -1
- package/dist/types/LocalUserView.d.ts +2 -4
- package/dist/types/LockComment.d.ts +6 -0
- package/dist/types/LockPost.d.ts +1 -0
- package/dist/types/Login.d.ts +3 -0
- package/dist/types/LoginToken.d.ts +1 -1
- package/dist/types/MarkNotificationAsRead.d.ts +8 -0
- package/dist/types/{ModAddCommunity.d.ts → ModAddToCommunity.d.ts} +4 -4
- package/dist/types/ModAddToCommunityId.d.ts +1 -0
- package/dist/types/{ModAddCommunityView.d.ts → ModAddToCommunityView.d.ts} +3 -3
- package/dist/types/ModAddToCommunityView.js +2 -0
- package/dist/types/ModBanFromCommunity.d.ts +2 -2
- package/dist/types/ModChangeCommunityVisibility.d.ts +11 -0
- package/dist/types/ModChangeCommunityVisibility.js +2 -0
- package/dist/types/ModChangeCommunityVisibilityId.d.ts +1 -0
- package/dist/types/ModChangeCommunityVisibilityView.d.ts +11 -0
- package/dist/types/ModChangeCommunityVisibilityView.js +2 -0
- package/dist/types/ModEditPost.d.ts +10 -0
- package/dist/types/ModEditPost.js +2 -0
- package/dist/types/ModFeaturePost.d.ts +1 -1
- package/dist/types/ModLockComment.d.ts +14 -0
- package/dist/types/ModLockComment.js +2 -0
- package/dist/types/ModLockCommentId.d.ts +1 -0
- package/dist/types/ModLockCommentView.d.ts +14 -0
- package/dist/types/ModLockCommentView.js +2 -0
- package/dist/types/ModLockPost.d.ts +2 -1
- package/dist/types/ModRemoveComment.d.ts +1 -1
- package/dist/types/ModRemovePost.d.ts +1 -1
- package/dist/types/ModTransferCommunity.d.ts +1 -1
- package/dist/types/ModlogActionType.d.ts +1 -1
- package/dist/types/ModlogCombinedView.d.ts +19 -16
- package/dist/types/MultiCommunity.d.ts +17 -0
- package/dist/types/MultiCommunity.js +2 -0
- package/dist/types/MultiCommunityFollow.d.ts +8 -0
- package/dist/types/MultiCommunityFollow.js +2 -0
- package/dist/types/MultiCommunityId.d.ts +1 -0
- package/dist/types/MultiCommunityView.d.ts +6 -0
- package/dist/types/MultiCommunityView.js +2 -0
- package/dist/types/MyUserInfo.d.ts +3 -1
- package/dist/types/NotePerson.d.ts +10 -0
- package/dist/types/NotePerson.js +2 -0
- package/dist/types/Notification.d.ts +16 -0
- package/dist/types/Notification.js +2 -0
- package/dist/types/NotificationData.d.ts +10 -0
- package/dist/types/NotificationData.js +2 -0
- package/dist/types/NotificationDataType.d.ts +4 -0
- package/dist/types/NotificationId.d.ts +1 -0
- package/dist/types/NotificationTypes.d.ts +4 -0
- package/dist/types/NotificationView.d.ts +6 -0
- package/dist/types/NotificationView.js +2 -0
- package/dist/types/OAuthAccount.d.ts +2 -2
- package/dist/types/OAuthProvider.d.ts +2 -2
- package/dist/types/OpenGraphData.d.ts +4 -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 +26 -0
- package/dist/types/PersonLikedCombinedView.d.ts +7 -0
- package/dist/types/PersonLikedCombinedView.js +2 -0
- package/dist/types/PersonSavedCombinedView.d.ts +7 -0
- package/dist/types/PersonSavedCombinedView.js +2 -0
- package/dist/types/PersonView.d.ts +4 -2
- package/dist/types/PluginMetadata.d.ts +5 -0
- package/dist/types/Post.d.ts +18 -3
- package/dist/types/PostActions.d.ts +33 -0
- package/dist/types/PostActions.js +2 -0
- package/dist/types/PostNotificationsMode.d.ts +4 -0
- package/dist/types/PostNotificationsMode.js +3 -0
- package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
- package/dist/types/PostOrCommentOrPrivateMessage.js +2 -0
- package/dist/types/PostReport.d.ts +2 -2
- package/dist/types/PostReportView.d.ts +10 -16
- package/dist/types/PostView.d.ts +13 -18
- package/dist/types/PrivateMessage.d.ts +2 -3
- package/dist/types/PrivateMessageReport.d.ts +2 -2
- package/dist/types/PrivateMessageReportView.d.ts +3 -1
- package/dist/types/ReadableFederationState.d.ts +2 -2
- package/dist/types/RegistrationApplication.d.ts +1 -1
- package/dist/types/ResolveCommunityReport.d.ts +8 -0
- package/dist/types/ResolveCommunityReport.js +2 -0
- package/dist/types/SaveUserSettings.d.ts +11 -1
- package/dist/types/Search.d.ts +8 -3
- package/dist/types/SearchCombinedView.d.ts +4 -1
- package/dist/types/SearchResponse.d.ts +6 -0
- package/dist/types/SearchType.d.ts +1 -1
- package/dist/types/Site.d.ts +4 -3
- package/dist/types/SiteResponse.d.ts +0 -4
- package/dist/types/SiteView.d.ts +2 -2
- package/dist/types/Tag.d.ts +7 -13
- package/dist/types/Tagline.d.ts +4 -3
- package/dist/types/Tagline.js +0 -1
- package/dist/types/TagsView.d.ts +5 -0
- package/dist/types/TagsView.js +2 -0
- package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
- package/dist/types/UpdateCommunityNotifications.js +2 -0
- package/dist/types/UpdateCommunityTag.d.ts +9 -0
- package/dist/types/UpdateCommunityTag.js +2 -0
- package/dist/types/UpdateMultiCommunity.d.ts +7 -0
- package/dist/types/UpdateMultiCommunity.js +2 -0
- package/dist/types/UpdatePostNotifications.d.ts +9 -0
- package/dist/types/UpdatePostNotifications.js +2 -0
- package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
- package/dist/types/UserBlockInstanceCommunitiesParams.js +2 -0
- package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
- package/dist/types/UserBlockInstancePersonsParams.js +2 -0
- package/dist/types/UserSettingsBackup.d.ts +27 -0
- package/dist/types/UserSettingsBackup.js +2 -0
- package/dist/types/VoteShow.d.ts +4 -0
- package/dist/types/VoteShow.js +3 -0
- package/dist/types/VoteView.d.ts +1 -0
- package/package.json +11 -7
- package/dist/types/BannedPersonsResponse.d.ts +0 -7
- package/dist/types/CommentAggregates.d.ts +0 -17
- package/dist/types/CommentReply.d.ts +0 -13
- package/dist/types/CommentReplyId.d.ts +0 -4
- package/dist/types/CommentReplyView.d.ts +0 -31
- package/dist/types/CommunityAggregates.d.ts +0 -30
- package/dist/types/InboxCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/InboxCombinedView.d.ts +0 -13
- package/dist/types/InboxDataType.d.ts +0 -4
- package/dist/types/ListInbox.d.ts +0 -11
- package/dist/types/ListInboxResponse.d.ts +0 -7
- package/dist/types/LocalUserVoteDisplayMode.d.ts +0 -9
- package/dist/types/MarkCommentReplyAsRead.d.ts +0 -8
- package/dist/types/MarkPersonCommentMentionAsRead.d.ts +0 -8
- package/dist/types/MarkPersonPostMentionAsRead.d.ts +0 -8
- package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -8
- package/dist/types/ModAdd.d.ts +0 -12
- package/dist/types/ModAddCommunityId.d.ts +0 -1
- package/dist/types/ModAddId.d.ts +0 -1
- package/dist/types/ModBan.d.ts +0 -14
- package/dist/types/ModBanId.d.ts +0 -1
- package/dist/types/ModHideCommunity.d.ts +0 -14
- package/dist/types/ModHideCommunityId.d.ts +0 -1
- package/dist/types/ModHideCommunityView.d.ts +0 -11
- package/dist/types/ModRemoveCommunityId.d.ts +0 -1
- package/dist/types/ModRemoveCommunityView.d.ts +0 -11
- package/dist/types/ModlogCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/PersonAggregates.d.ts +0 -10
- package/dist/types/PersonCommentMention.d.ts +0 -13
- package/dist/types/PersonCommentMentionId.d.ts +0 -4
- package/dist/types/PersonCommentMentionView.d.ts +0 -31
- package/dist/types/PersonContentCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/PersonPostMention.d.ts +0 -13
- package/dist/types/PersonPostMentionId.d.ts +0 -4
- package/dist/types/PersonPostMentionView.d.ts +0 -36
- package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/PostAggregates.d.ts +0 -18
- package/dist/types/PostTags.d.ts +0 -7
- package/dist/types/ReportCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/ResolveObjectResponse.d.ts +0 -13
- package/dist/types/SearchCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/SiteAggregates.d.ts +0 -27
- package/dist/types/SubscribedType.d.ts +0 -4
- /package/dist/types/{BannedPersonsResponse.js → AdminAdd.js} +0 -0
- /package/dist/types/{CommentReplyId.js → AdminAddId.js} +0 -0
- /package/dist/types/{CommentAggregates.js → AdminAddView.js} +0 -0
- /package/dist/types/{CommentReply.js → AdminBan.js} +0 -0
- /package/dist/types/{InboxCombinedPaginationCursor.js → AdminBanId.js} +0 -0
- /package/dist/types/{CommentReplyView.js → AdminBanView.js} +0 -0
- /package/dist/types/{CommunityAggregates.js → AdminListUsers.js} +0 -0
- /package/dist/types/{InboxCombinedView.js → AdminListUsersResponse.js} +0 -0
- /package/dist/types/{ListInbox.js → AdminRemoveCommunity.js} +0 -0
- /package/dist/types/{InboxDataType.js → AdminRemoveCommunityId.js} +0 -0
- /package/dist/types/{ListInboxResponse.js → AdminRemoveCommunityView.js} +0 -0
- /package/dist/types/{LocalUserVoteDisplayMode.js → CommentActions.js} +0 -0
- /package/dist/types/{MarkCommentReplyAsRead.js → CommunityActions.js} +0 -0
- /package/dist/types/{MarkPersonCommentMentionAsRead.js → CommunityIdQuery.js} +0 -0
- /package/dist/types/{ModAddCommunityId.js → CommunityNotificationsMode.js} +0 -0
- /package/dist/types/{MarkPersonPostMentionAsRead.js → CommunityReportResponse.js} +0 -0
- /package/dist/types/{MarkPrivateMessageAsRead.js → CreateCommunityReport.js} +0 -0
- /package/dist/types/{ModAdd.js → CreateCommunityTag.js} +0 -0
- /package/dist/types/{ModAddId.js → CreateMultiCommunity.js} +0 -0
- /package/dist/types/{ModAddCommunity.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
- /package/dist/types/{ModAddCommunityView.js → DeleteCommunityTag.js} +0 -0
- /package/dist/types/{ModAddView.js → ExportDataResponse.js} +0 -0
- /package/dist/types/{ModBan.js → FollowMultiCommunity.js} +0 -0
- /package/dist/types/{ModBanView.js → GetMultiCommunity.js} +0 -0
- /package/dist/types/{ModHideCommunity.js → GetMultiCommunityResponse.js} +0 -0
- /package/dist/types/{ModBanId.js → InstanceActions.js} +0 -0
- /package/dist/types/{ModHideCommunityId.js → LikeType.js} +0 -0
- /package/dist/types/{ModHideCommunityView.js → ListMultiCommunities.js} +0 -0
- /package/dist/types/{ModRemoveCommunity.js → ListMultiCommunitiesResponse.js} +0 -0
- /package/dist/types/{ModRemoveCommunityView.js → ListNotifications.js} +0 -0
- /package/dist/types/{PersonAggregates.js → ListNotificationsResponse.js} +0 -0
- /package/dist/types/{PersonCommentMention.js → ListPersonHidden.js} +0 -0
- /package/dist/types/{PersonCommentMentionView.js → ListPersonHiddenResponse.js} +0 -0
- /package/dist/types/{PersonPostMention.js → ListPersonLiked.js} +0 -0
- /package/dist/types/{PersonPostMentionView.js → ListPersonLikedResponse.js} +0 -0
- /package/dist/types/{PostAggregates.js → ListPersonRead.js} +0 -0
- /package/dist/types/{PostTags.js → ListPersonReadResponse.js} +0 -0
- /package/dist/types/{ResolveObjectResponse.js → LockComment.js} +0 -0
- /package/dist/types/{SiteAggregates.js → MarkNotificationAsRead.js} +0 -0
- /package/dist/types/{UserBlockInstanceParams.js → ModAddToCommunity.js} +0 -0
- /package/dist/types/{ModRemoveCommunityId.js → ModAddToCommunityId.js} +0 -0
- /package/dist/types/{ModlogCombinedPaginationCursor.js → ModChangeCommunityVisibilityId.js} +0 -0
- /package/dist/types/{PersonCommentMentionId.js → ModLockCommentId.js} +0 -0
- /package/dist/types/{PersonContentCombinedPaginationCursor.js → MultiCommunityId.js} +0 -0
- /package/dist/types/{PersonPostMentionId.js → NotificationDataType.js} +0 -0
- /package/dist/types/{PersonSavedCombinedPaginationCursor.js → NotificationId.js} +0 -0
- /package/dist/types/{ReportCombinedPaginationCursor.js → NotificationTypes.js} +0 -0
- /package/dist/types/{SearchCombinedPaginationCursor.js → PersonActions.js} +0 -0
- /package/dist/types/{SubscribedType.js → PluginMetadata.js} +0 -0
package/dist/index.d.ts
CHANGED
@@ -5,14 +5,22 @@ export { AddAdmin } from "./types/AddAdmin";
|
|
5
5
|
export { AddAdminResponse } from "./types/AddAdminResponse";
|
6
6
|
export { AddModToCommunity } from "./types/AddModToCommunity";
|
7
7
|
export { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
|
8
|
+
export { AdminAdd } from "./types/AdminAdd";
|
9
|
+
export { AdminAddId } from "./types/AdminAddId";
|
10
|
+
export { AdminAddView } from "./types/AdminAddView";
|
8
11
|
export { AdminAllowInstance } from "./types/AdminAllowInstance";
|
9
12
|
export { AdminAllowInstanceId } from "./types/AdminAllowInstanceId";
|
10
13
|
export { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
|
11
14
|
export { AdminAllowInstanceView } from "./types/AdminAllowInstanceView";
|
15
|
+
export { AdminBan } from "./types/AdminBan";
|
16
|
+
export { AdminBanId } from "./types/AdminBanId";
|
17
|
+
export { AdminBanView } from "./types/AdminBanView";
|
12
18
|
export { AdminBlockInstance } from "./types/AdminBlockInstance";
|
13
19
|
export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
|
14
20
|
export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
15
21
|
export { AdminBlockInstanceView } from "./types/AdminBlockInstanceView";
|
22
|
+
export { AdminListUsers } from "./types/AdminListUsers";
|
23
|
+
export { AdminListUsersResponse } from "./types/AdminListUsersResponse";
|
16
24
|
export { AdminPurgeComment } from "./types/AdminPurgeComment";
|
17
25
|
export { AdminPurgeCommentId } from "./types/AdminPurgeCommentId";
|
18
26
|
export { AdminPurgeCommentView } from "./types/AdminPurgeCommentView";
|
@@ -25,6 +33,9 @@ export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
|
|
25
33
|
export { AdminPurgePost } from "./types/AdminPurgePost";
|
26
34
|
export { AdminPurgePostId } from "./types/AdminPurgePostId";
|
27
35
|
export { AdminPurgePostView } from "./types/AdminPurgePostView";
|
36
|
+
export { AdminRemoveCommunity } from "./types/AdminRemoveCommunity";
|
37
|
+
export { AdminRemoveCommunityId } from "./types/AdminRemoveCommunityId";
|
38
|
+
export { AdminRemoveCommunityView } from "./types/AdminRemoveCommunityView";
|
28
39
|
export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
|
29
40
|
export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
|
30
41
|
export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
|
@@ -32,7 +43,6 @@ export { BanFromCommunity } from "./types/BanFromCommunity";
|
|
32
43
|
export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
|
33
44
|
export { BanPerson } from "./types/BanPerson";
|
34
45
|
export { BanPersonResponse } from "./types/BanPersonResponse";
|
35
|
-
export { BannedPersonsResponse } from "./types/BannedPersonsResponse";
|
36
46
|
export { BlockCommunity } from "./types/BlockCommunity";
|
37
47
|
export { BlockCommunityResponse } from "./types/BlockCommunityResponse";
|
38
48
|
export { BlockPerson } from "./types/BlockPerson";
|
@@ -40,11 +50,8 @@ export { BlockPersonResponse } from "./types/BlockPersonResponse";
|
|
40
50
|
export { CaptchaResponse } from "./types/CaptchaResponse";
|
41
51
|
export { ChangePassword } from "./types/ChangePassword";
|
42
52
|
export { Comment } from "./types/Comment";
|
43
|
-
export {
|
53
|
+
export { CommentActions } from "./types/CommentActions";
|
44
54
|
export { CommentId } from "./types/CommentId";
|
45
|
-
export { CommentReply } from "./types/CommentReply";
|
46
|
-
export { CommentReplyId } from "./types/CommentReplyId";
|
47
|
-
export { CommentReplyView } from "./types/CommentReplyView";
|
48
55
|
export { CommentReport } from "./types/CommentReport";
|
49
56
|
export { CommentReportId } from "./types/CommentReportId";
|
50
57
|
export { CommentReportResponse } from "./types/CommentReportResponse";
|
@@ -54,13 +61,16 @@ export { CommentSlimView } from "./types/CommentSlimView";
|
|
54
61
|
export { CommentSortType } from "./types/CommentSortType";
|
55
62
|
export { CommentView } from "./types/CommentView";
|
56
63
|
export { Community } from "./types/Community";
|
57
|
-
export {
|
64
|
+
export { CommunityActions } from "./types/CommunityActions";
|
58
65
|
export { CommunityFollowerState } from "./types/CommunityFollowerState";
|
59
66
|
export { CommunityFollowerView } from "./types/CommunityFollowerView";
|
60
67
|
export { CommunityId } from "./types/CommunityId";
|
68
|
+
export { CommunityIdQuery } from "./types/CommunityIdQuery";
|
61
69
|
export { CommunityModeratorView } from "./types/CommunityModeratorView";
|
70
|
+
export { CommunityNotificationsMode } from "./types/CommunityNotificationsMode";
|
62
71
|
export { CommunityReport } from "./types/CommunityReport";
|
63
72
|
export { CommunityReportId } from "./types/CommunityReportId";
|
73
|
+
export { CommunityReportResponse } from "./types/CommunityReportResponse";
|
64
74
|
export { CommunityReportView } from "./types/CommunityReportView";
|
65
75
|
export { CommunityResponse } from "./types/CommunityResponse";
|
66
76
|
export { CommunitySortType } from "./types/CommunitySortType";
|
@@ -70,8 +80,12 @@ export { CreateComment } from "./types/CreateComment";
|
|
70
80
|
export { CreateCommentLike } from "./types/CreateCommentLike";
|
71
81
|
export { CreateCommentReport } from "./types/CreateCommentReport";
|
72
82
|
export { CreateCommunity } from "./types/CreateCommunity";
|
83
|
+
export { CreateCommunityReport } from "./types/CreateCommunityReport";
|
84
|
+
export { CreateCommunityTag } from "./types/CreateCommunityTag";
|
73
85
|
export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
86
|
+
export { CreateMultiCommunity } from "./types/CreateMultiCommunity";
|
74
87
|
export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
88
|
+
export { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
|
75
89
|
export { CreatePost } from "./types/CreatePost";
|
76
90
|
export { CreatePostLike } from "./types/CreatePostLike";
|
77
91
|
export { CreatePostReport } from "./types/CreatePostReport";
|
@@ -88,6 +102,7 @@ export { DbUrl } from "./types/DbUrl";
|
|
88
102
|
export { DeleteAccount } from "./types/DeleteAccount";
|
89
103
|
export { DeleteComment } from "./types/DeleteComment";
|
90
104
|
export { DeleteCommunity } from "./types/DeleteCommunity";
|
105
|
+
export { DeleteCommunityTag } from "./types/DeleteCommunityTag";
|
91
106
|
export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
|
92
107
|
export { DeleteImageParams } from "./types/DeleteImageParams";
|
93
108
|
export { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
|
@@ -102,12 +117,14 @@ export { EditOAuthProvider } from "./types/EditOAuthProvider";
|
|
102
117
|
export { EditPost } from "./types/EditPost";
|
103
118
|
export { EditPrivateMessage } from "./types/EditPrivateMessage";
|
104
119
|
export { EditSite } from "./types/EditSite";
|
120
|
+
export { ExportDataResponse } from "./types/ExportDataResponse";
|
105
121
|
export { FeaturePost } from "./types/FeaturePost";
|
106
122
|
export { FederatedInstances } from "./types/FederatedInstances";
|
107
123
|
export { FederationBlockList } from "./types/FederationBlockList";
|
108
124
|
export { FederationError } from "./types/FederationError";
|
109
125
|
export { FederationMode } from "./types/FederationMode";
|
110
126
|
export { FollowCommunity } from "./types/FollowCommunity";
|
127
|
+
export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
|
111
128
|
export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
112
129
|
export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
|
113
130
|
export { GetComment } from "./types/GetComment";
|
@@ -121,6 +138,8 @@ export { GetCommunityResponse } from "./types/GetCommunityResponse";
|
|
121
138
|
export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
|
122
139
|
export { GetModlog } from "./types/GetModlog";
|
123
140
|
export { GetModlogResponse } from "./types/GetModlogResponse";
|
141
|
+
export { GetMultiCommunity } from "./types/GetMultiCommunity";
|
142
|
+
export { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
|
124
143
|
export { GetPersonDetails } from "./types/GetPersonDetails";
|
125
144
|
export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
|
126
145
|
export { GetPost } from "./types/GetPost";
|
@@ -141,15 +160,14 @@ export { HidePost } from "./types/HidePost";
|
|
141
160
|
export { ImageDetails } from "./types/ImageDetails";
|
142
161
|
export { ImageGetParams } from "./types/ImageGetParams";
|
143
162
|
export { ImageProxyParams } from "./types/ImageProxyParams";
|
144
|
-
export { InboxCombinedPaginationCursor } from "./types/InboxCombinedPaginationCursor";
|
145
|
-
export { InboxCombinedView } from "./types/InboxCombinedView";
|
146
|
-
export { InboxDataType } from "./types/InboxDataType";
|
147
163
|
export { Instance } from "./types/Instance";
|
164
|
+
export { InstanceActions } from "./types/InstanceActions";
|
148
165
|
export { InstanceId } from "./types/InstanceId";
|
149
166
|
export { InstanceWithFederationState } from "./types/InstanceWithFederationState";
|
150
167
|
export { Language } from "./types/Language";
|
151
168
|
export { LanguageId } from "./types/LanguageId";
|
152
169
|
export { LemmyErrorType } from "./types/LemmyErrorType";
|
170
|
+
export { LikeType } from "./types/LikeType";
|
153
171
|
export { LinkMetadata } from "./types/LinkMetadata";
|
154
172
|
export { ListCommentLikes } from "./types/ListCommentLikes";
|
155
173
|
export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
@@ -159,13 +177,21 @@ export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
|
|
159
177
|
export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
|
160
178
|
export { ListCustomEmojis } from "./types/ListCustomEmojis";
|
161
179
|
export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
|
162
|
-
export { ListInbox } from "./types/ListInbox";
|
163
|
-
export { ListInboxResponse } from "./types/ListInboxResponse";
|
164
180
|
export { ListLoginsResponse } from "./types/ListLoginsResponse";
|
165
181
|
export { ListMedia } from "./types/ListMedia";
|
166
182
|
export { ListMediaResponse } from "./types/ListMediaResponse";
|
183
|
+
export { ListMultiCommunities } from "./types/ListMultiCommunities";
|
184
|
+
export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
|
185
|
+
export { ListNotifications } from "./types/ListNotifications";
|
186
|
+
export { ListNotificationsResponse } from "./types/ListNotificationsResponse";
|
167
187
|
export { ListPersonContent } from "./types/ListPersonContent";
|
168
188
|
export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
189
|
+
export { ListPersonHidden } from "./types/ListPersonHidden";
|
190
|
+
export { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
|
191
|
+
export { ListPersonLiked } from "./types/ListPersonLiked";
|
192
|
+
export { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
|
193
|
+
export { ListPersonRead } from "./types/ListPersonRead";
|
194
|
+
export { ListPersonReadResponse } from "./types/ListPersonReadResponse";
|
169
195
|
export { ListPersonSaved } from "./types/ListPersonSaved";
|
170
196
|
export { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
|
171
197
|
export { ListPostLikes } from "./types/ListPostLikes";
|
@@ -186,44 +212,36 @@ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
|
|
186
212
|
export { LocalUser } from "./types/LocalUser";
|
187
213
|
export { LocalUserId } from "./types/LocalUserId";
|
188
214
|
export { LocalUserView } from "./types/LocalUserView";
|
189
|
-
export {
|
215
|
+
export { LockComment } from "./types/LockComment";
|
190
216
|
export { LockPost } from "./types/LockPost";
|
191
217
|
export { Login } from "./types/Login";
|
192
218
|
export { LoginResponse } from "./types/LoginResponse";
|
193
219
|
export { LoginToken } from "./types/LoginToken";
|
194
|
-
export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
195
220
|
export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
196
|
-
export {
|
197
|
-
export { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
|
221
|
+
export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
198
222
|
export { MarkPostAsRead } from "./types/MarkPostAsRead";
|
199
|
-
export {
|
200
|
-
export {
|
201
|
-
export {
|
202
|
-
export { ModAddCommunityId } from "./types/ModAddCommunityId";
|
203
|
-
export { ModAddCommunityView } from "./types/ModAddCommunityView";
|
204
|
-
export { ModAddId } from "./types/ModAddId";
|
205
|
-
export { ModAddView } from "./types/ModAddView";
|
206
|
-
export { ModBan } from "./types/ModBan";
|
223
|
+
export { ModAddToCommunity } from "./types/ModAddToCommunity";
|
224
|
+
export { ModAddToCommunityId } from "./types/ModAddToCommunityId";
|
225
|
+
export { ModAddToCommunityView } from "./types/ModAddToCommunityView";
|
207
226
|
export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
|
208
227
|
export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
|
209
228
|
export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
|
210
|
-
export {
|
211
|
-
export {
|
229
|
+
export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
|
230
|
+
export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
|
231
|
+
export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
|
232
|
+
export { ModEditPost } from "./types/ModEditPost";
|
212
233
|
export { ModFeaturePost } from "./types/ModFeaturePost";
|
213
234
|
export { ModFeaturePostId } from "./types/ModFeaturePostId";
|
214
235
|
export { ModFeaturePostView } from "./types/ModFeaturePostView";
|
215
|
-
export {
|
216
|
-
export {
|
217
|
-
export {
|
236
|
+
export { ModLockComment } from "./types/ModLockComment";
|
237
|
+
export { ModLockCommentId } from "./types/ModLockCommentId";
|
238
|
+
export { ModLockCommentView } from "./types/ModLockCommentView";
|
218
239
|
export { ModLockPost } from "./types/ModLockPost";
|
219
240
|
export { ModLockPostId } from "./types/ModLockPostId";
|
220
241
|
export { ModLockPostView } from "./types/ModLockPostView";
|
221
242
|
export { ModRemoveComment } from "./types/ModRemoveComment";
|
222
243
|
export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
|
223
244
|
export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
|
224
|
-
export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
|
225
|
-
export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
|
226
|
-
export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
|
227
245
|
export { ModRemovePost } from "./types/ModRemovePost";
|
228
246
|
export { ModRemovePostId } from "./types/ModRemovePostId";
|
229
247
|
export { ModRemovePostView } from "./types/ModRemovePostView";
|
@@ -231,9 +249,19 @@ export { ModTransferCommunity } from "./types/ModTransferCommunity";
|
|
231
249
|
export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
|
232
250
|
export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
|
233
251
|
export { ModlogActionType } from "./types/ModlogActionType";
|
234
|
-
export { ModlogCombinedPaginationCursor } from "./types/ModlogCombinedPaginationCursor";
|
235
252
|
export { ModlogCombinedView } from "./types/ModlogCombinedView";
|
253
|
+
export { MultiCommunity } from "./types/MultiCommunity";
|
254
|
+
export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
|
255
|
+
export { MultiCommunityId } from "./types/MultiCommunityId";
|
256
|
+
export { MultiCommunityView } from "./types/MultiCommunityView";
|
236
257
|
export { MyUserInfo } from "./types/MyUserInfo";
|
258
|
+
export { NotePerson } from "./types/NotePerson";
|
259
|
+
export { Notification } from "./types/Notification";
|
260
|
+
export { NotificationData } from "./types/NotificationData";
|
261
|
+
export { NotificationDataType } from "./types/NotificationDataType";
|
262
|
+
export { NotificationId } from "./types/NotificationId";
|
263
|
+
export { NotificationTypes } from "./types/NotificationTypes";
|
264
|
+
export { NotificationView } from "./types/NotificationView";
|
237
265
|
export { OAuthAccount } from "./types/OAuthAccount";
|
238
266
|
export { OAuthProvider } from "./types/OAuthProvider";
|
239
267
|
export { OAuthProviderId } from "./types/OAuthProviderId";
|
@@ -243,31 +271,27 @@ export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
|
243
271
|
export { PasswordReset } from "./types/PasswordReset";
|
244
272
|
export { PendingFollow } from "./types/PendingFollow";
|
245
273
|
export { Person } from "./types/Person";
|
246
|
-
export {
|
247
|
-
export { PersonCommentMention } from "./types/PersonCommentMention";
|
248
|
-
export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
|
249
|
-
export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
|
250
|
-
export { PersonContentCombinedPaginationCursor } from "./types/PersonContentCombinedPaginationCursor";
|
274
|
+
export { PersonActions } from "./types/PersonActions";
|
251
275
|
export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
|
252
276
|
export { PersonContentType } from "./types/PersonContentType";
|
253
277
|
export { PersonId } from "./types/PersonId";
|
254
|
-
export {
|
255
|
-
export {
|
256
|
-
export { PersonPostMentionView } from "./types/PersonPostMentionView";
|
257
|
-
export { PersonSavedCombinedPaginationCursor } from "./types/PersonSavedCombinedPaginationCursor";
|
278
|
+
export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
|
279
|
+
export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
|
258
280
|
export { PersonView } from "./types/PersonView";
|
281
|
+
export { PluginMetadata } from "./types/PluginMetadata";
|
259
282
|
export { Post } from "./types/Post";
|
260
|
-
export {
|
283
|
+
export { PostActions } from "./types/PostActions";
|
261
284
|
export { PostFeatureType } from "./types/PostFeatureType";
|
262
285
|
export { PostId } from "./types/PostId";
|
263
286
|
export { PostListingMode } from "./types/PostListingMode";
|
287
|
+
export { PostNotificationsMode } from "./types/PostNotificationsMode";
|
288
|
+
export { PostOrCommentOrPrivateMessage } from "./types/PostOrCommentOrPrivateMessage";
|
264
289
|
export { PostReport } from "./types/PostReport";
|
265
290
|
export { PostReportId } from "./types/PostReportId";
|
266
291
|
export { PostReportResponse } from "./types/PostReportResponse";
|
267
292
|
export { PostReportView } from "./types/PostReportView";
|
268
293
|
export { PostResponse } from "./types/PostResponse";
|
269
294
|
export { PostSortType } from "./types/PostSortType";
|
270
|
-
export { PostTags } from "./types/PostTags";
|
271
295
|
export { PostView } from "./types/PostView";
|
272
296
|
export { PrivateMessage } from "./types/PrivateMessage";
|
273
297
|
export { PrivateMessageId } from "./types/PrivateMessageId";
|
@@ -292,42 +316,46 @@ export { RegistrationMode } from "./types/RegistrationMode";
|
|
292
316
|
export { RemoveComment } from "./types/RemoveComment";
|
293
317
|
export { RemoveCommunity } from "./types/RemoveCommunity";
|
294
318
|
export { RemovePost } from "./types/RemovePost";
|
295
|
-
export { ReportCombinedPaginationCursor } from "./types/ReportCombinedPaginationCursor";
|
296
319
|
export { ReportCombinedView } from "./types/ReportCombinedView";
|
297
320
|
export { ReportType } from "./types/ReportType";
|
298
321
|
export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
299
322
|
export { ResolveCommentReport } from "./types/ResolveCommentReport";
|
323
|
+
export { ResolveCommunityReport } from "./types/ResolveCommunityReport";
|
300
324
|
export { ResolveObject } from "./types/ResolveObject";
|
301
|
-
export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
|
302
325
|
export { ResolvePostReport } from "./types/ResolvePostReport";
|
303
326
|
export { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
|
304
327
|
export { SaveComment } from "./types/SaveComment";
|
305
328
|
export { SavePost } from "./types/SavePost";
|
306
329
|
export { SaveUserSettings } from "./types/SaveUserSettings";
|
307
330
|
export { Search } from "./types/Search";
|
308
|
-
export { SearchCombinedPaginationCursor } from "./types/SearchCombinedPaginationCursor";
|
309
331
|
export { SearchCombinedView } from "./types/SearchCombinedView";
|
310
332
|
export { SearchResponse } from "./types/SearchResponse";
|
311
333
|
export { SearchSortType } from "./types/SearchSortType";
|
312
334
|
export { SearchType } from "./types/SearchType";
|
313
335
|
export { SensitiveString } from "./types/SensitiveString";
|
314
336
|
export { Site } from "./types/Site";
|
315
|
-
export { SiteAggregates } from "./types/SiteAggregates";
|
316
337
|
export { SiteId } from "./types/SiteId";
|
317
338
|
export { SiteResponse } from "./types/SiteResponse";
|
318
339
|
export { SiteView } from "./types/SiteView";
|
319
|
-
export { SubscribedType } from "./types/SubscribedType";
|
320
340
|
export { SuccessResponse } from "./types/SuccessResponse";
|
321
341
|
export { Tag } from "./types/Tag";
|
322
342
|
export { TagId } from "./types/TagId";
|
323
343
|
export { Tagline } from "./types/Tagline";
|
324
344
|
export { TaglineId } from "./types/TaglineId";
|
325
345
|
export { TaglineResponse } from "./types/TaglineResponse";
|
346
|
+
export { TagsView } from "./types/TagsView";
|
326
347
|
export { TransferCommunity } from "./types/TransferCommunity";
|
348
|
+
export { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
|
349
|
+
export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
350
|
+
export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
351
|
+
export { UpdatePostNotifications } from "./types/UpdatePostNotifications";
|
327
352
|
export { UpdateTagline } from "./types/UpdateTagline";
|
328
353
|
export { UpdateTotp } from "./types/UpdateTotp";
|
329
354
|
export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
330
355
|
export { UploadImageResponse } from "./types/UploadImageResponse";
|
331
|
-
export {
|
356
|
+
export { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
|
357
|
+
export { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
|
358
|
+
export { UserSettingsBackup } from "./types/UserSettingsBackup";
|
332
359
|
export { VerifyEmail } from "./types/VerifyEmail";
|
360
|
+
export { VoteShow } from "./types/VoteShow";
|
333
361
|
export { VoteView } from "./types/VoteView";
|
package/dist/other_types.d.ts
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
+
import { AdminListUsers } from "./types/AdminListUsers";
|
2
|
+
import { CommunityIdQuery } from "./types/CommunityIdQuery";
|
1
3
|
import { DeleteImageParams } from "./types/DeleteImageParams";
|
2
4
|
import { GetComment } from "./types/GetComment";
|
3
5
|
import { GetComments } from "./types/GetComments";
|
4
6
|
import { GetCommunity } from "./types/GetCommunity";
|
5
7
|
import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
|
6
8
|
import { GetModlog } from "./types/GetModlog";
|
9
|
+
import { GetMultiCommunity } from "./types/GetMultiCommunity";
|
7
10
|
import { GetPersonDetails } from "./types/GetPersonDetails";
|
8
11
|
import { GetPost } from "./types/GetPost";
|
9
12
|
import { GetPosts } from "./types/GetPosts";
|
@@ -15,9 +18,13 @@ import { ListCommentLikes } from "./types/ListCommentLikes";
|
|
15
18
|
import { ListCommunities } from "./types/ListCommunities";
|
16
19
|
import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
|
17
20
|
import { ListCustomEmojis } from "./types/ListCustomEmojis";
|
18
|
-
import {
|
21
|
+
import { ListNotifications } from "./types/ListNotifications";
|
19
22
|
import { ListMedia } from "./types/ListMedia";
|
23
|
+
import { ListMultiCommunities } from "./types/ListMultiCommunities";
|
20
24
|
import { ListPersonContent } from "./types/ListPersonContent";
|
25
|
+
import { ListPersonHidden } from "./types/ListPersonHidden";
|
26
|
+
import { ListPersonLiked } from "./types/ListPersonLiked";
|
27
|
+
import { ListPersonRead } from "./types/ListPersonRead";
|
21
28
|
import { ListPersonSaved } from "./types/ListPersonSaved";
|
22
29
|
import { ListPostLikes } from "./types/ListPostLikes";
|
23
30
|
import { ListRegistrationApplications } from "./types/ListRegistrationApplications";
|
@@ -67,10 +74,16 @@ export interface ListPersonContentI extends ListPersonContent {
|
|
67
74
|
}
|
68
75
|
export interface GetReportCountI extends GetReportCount {
|
69
76
|
}
|
70
|
-
export interface
|
77
|
+
export interface ListNotificationsI extends ListNotifications {
|
71
78
|
}
|
72
79
|
export interface ListPersonSavedI extends ListPersonSaved {
|
73
80
|
}
|
81
|
+
export interface ListPersonReadI extends ListPersonRead {
|
82
|
+
}
|
83
|
+
export interface ListPersonHiddenI extends ListPersonHidden {
|
84
|
+
}
|
85
|
+
export interface ListPersonLikedI extends ListPersonLiked {
|
86
|
+
}
|
74
87
|
export interface ListRegistrationApplicationsI extends ListRegistrationApplications {
|
75
88
|
}
|
76
89
|
export interface GetRegistrationApplicationI extends GetRegistrationApplication {
|
@@ -83,3 +96,11 @@ export interface ListReportsI extends ListReports {
|
|
83
96
|
}
|
84
97
|
export interface DeleteImageParamsI extends DeleteImageParams {
|
85
98
|
}
|
99
|
+
export interface AdminListUsersI extends AdminListUsers {
|
100
|
+
}
|
101
|
+
export interface CommunityIdQueryI extends CommunityIdQuery {
|
102
|
+
}
|
103
|
+
export interface ListMultiCommunitiesI extends ListMultiCommunities {
|
104
|
+
}
|
105
|
+
export interface GetMultiCommunityI extends GetMultiCommunity {
|
106
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { AdminAddId } from "./AdminAddId";
|
2
|
+
import type { PersonId } from "./PersonId";
|
3
|
+
/**
|
4
|
+
* When someone is added as a site admin.
|
5
|
+
*/
|
6
|
+
export type AdminAdd = {
|
7
|
+
id: AdminAddId;
|
8
|
+
mod_person_id: PersonId;
|
9
|
+
other_person_id: PersonId;
|
10
|
+
removed: boolean;
|
11
|
+
published_at: string;
|
12
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export type AdminAddId = number;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import type {
|
1
|
+
import type { AdminAdd } from "./AdminAdd";
|
2
2
|
import type { Person } from "./Person";
|
3
3
|
/**
|
4
4
|
* When someone is added as a site moderator.
|
5
5
|
*/
|
6
|
-
export type
|
7
|
-
|
6
|
+
export type AdminAddView = {
|
7
|
+
admin_add: AdminAdd;
|
8
8
|
moderator?: Person;
|
9
9
|
other_person: Person;
|
10
10
|
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type { AdminBanId } from "./AdminBanId";
|
2
|
+
import type { InstanceId } from "./InstanceId";
|
3
|
+
import type { PersonId } from "./PersonId";
|
4
|
+
/**
|
5
|
+
* When someone is banned from the site.
|
6
|
+
*/
|
7
|
+
export type AdminBan = {
|
8
|
+
id: AdminBanId;
|
9
|
+
mod_person_id: PersonId;
|
10
|
+
other_person_id: PersonId;
|
11
|
+
reason?: string;
|
12
|
+
banned: boolean;
|
13
|
+
expires_at?: string;
|
14
|
+
published_at: string;
|
15
|
+
instance_id: InstanceId;
|
16
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export type AdminBanId = number;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import type {
|
1
|
+
import type { AdminBan } from "./AdminBan";
|
2
2
|
import type { Person } from "./Person";
|
3
3
|
/**
|
4
4
|
* When someone is banned from the site.
|
5
5
|
*/
|
6
|
-
export type
|
7
|
-
|
6
|
+
export type AdminBanView = {
|
7
|
+
admin_ban: AdminBan;
|
8
8
|
moderator?: Person;
|
9
9
|
other_person: Person;
|
10
10
|
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { LocalUserView } from "./LocalUserView";
|
2
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
3
|
+
export type AdminListUsersResponse = {
|
4
|
+
users: Array<LocalUserView>;
|
5
|
+
/**
|
6
|
+
* the pagination cursor to use to fetch the next page
|
7
|
+
*/
|
8
|
+
next_page?: PaginationCursor;
|
9
|
+
prev_page?: PaginationCursor;
|
10
|
+
};
|
@@ -1,14 +1,14 @@
|
|
1
|
+
import type { AdminRemoveCommunityId } from "./AdminRemoveCommunityId";
|
1
2
|
import type { CommunityId } from "./CommunityId";
|
2
|
-
import type { ModRemoveCommunityId } from "./ModRemoveCommunityId";
|
3
3
|
import type { PersonId } from "./PersonId";
|
4
4
|
/**
|
5
5
|
* When a moderator removes a community.
|
6
6
|
*/
|
7
|
-
export type
|
8
|
-
id:
|
7
|
+
export type AdminRemoveCommunity = {
|
8
|
+
id: AdminRemoveCommunityId;
|
9
9
|
mod_person_id: PersonId;
|
10
10
|
community_id: CommunityId;
|
11
11
|
reason?: string;
|
12
12
|
removed: boolean;
|
13
|
-
|
13
|
+
published_at: string;
|
14
14
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export type AdminRemoveCommunityId = number;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { AdminRemoveCommunity } from "./AdminRemoveCommunity";
|
2
|
+
import type { Community } from "./Community";
|
3
|
+
import type { Person } from "./Person";
|
4
|
+
/**
|
5
|
+
* When an admin removes a community.
|
6
|
+
*/
|
7
|
+
export type AdminRemoveCommunityView = {
|
8
|
+
admin_remove_community: AdminRemoveCommunity;
|
9
|
+
moderator?: Person;
|
10
|
+
community: Community;
|
11
|
+
};
|
package/dist/types/Comment.d.ts
CHANGED
@@ -15,8 +15,8 @@ export type Comment = {
|
|
15
15
|
* Whether the comment has been removed.
|
16
16
|
*/
|
17
17
|
removed: boolean;
|
18
|
-
|
19
|
-
|
18
|
+
published_at: string;
|
19
|
+
updated_at?: string;
|
20
20
|
/**
|
21
21
|
* Whether the comment has been deleted by its creator.
|
22
22
|
*/
|
@@ -39,4 +39,22 @@ 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;
|
56
|
+
/**
|
57
|
+
* Whether the comment is locked.
|
58
|
+
*/
|
59
|
+
locked: boolean;
|
42
60
|
};
|