lemmy-js-client 1.0.0-post-tags.1 → 1.0.0-post-comment-combined-view.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/http.d.ts +95 -70
- package/dist/http.js +141 -61
- package/dist/index.d.ts +25 -96
- package/dist/index.js +3 -0
- package/dist/other_types.d.ts +3 -3
- package/dist/types/AdminAllowInstanceParams.d.ts +1 -1
- package/dist/types/AdminBlockInstanceParams.d.ts +7 -2
- package/dist/types/AdminListUsers.d.ts +0 -1
- package/dist/types/AllLemmyErrors.d.ts +1 -0
- package/dist/types/AllLemmyErrors.js +117 -0
- package/dist/types/AuthenticateWithOauth.d.ts +4 -0
- package/dist/types/BanFromCommunity.d.ts +1 -1
- package/dist/types/BanPerson.d.ts +1 -1
- package/dist/types/ChangePassword.d.ts +4 -0
- package/dist/types/Comment.d.ts +4 -0
- package/dist/types/CommentActions.d.ts +6 -6
- package/dist/types/CommentReportView.d.ts +2 -0
- package/dist/types/CommentSlimView.d.ts +0 -2
- package/dist/types/CommentSortType.d.ts +1 -1
- package/dist/types/CommentView.d.ts +2 -2
- package/dist/types/CommunityActions.d.ts +4 -4
- package/dist/types/CommunityFollowerState.d.ts +1 -1
- package/dist/types/CommunityNotificationsMode.d.ts +1 -1
- package/dist/types/CommunityReportView.d.ts +2 -0
- package/dist/types/CommunitySortType.d.ts +1 -1
- package/dist/types/CommunityView.d.ts +0 -2
- package/dist/types/CommunityVisibility.d.ts +1 -1
- package/dist/types/CreateCommentLike.d.ts +2 -2
- package/dist/types/CreateCommunityTag.d.ts +2 -0
- package/dist/types/CreateCustomEmoji.d.ts +2 -1
- package/dist/types/CreateCustomEmoji.js +0 -1
- package/dist/types/CreatePostLike.d.ts +2 -2
- package/dist/types/CreateSite.d.ts +0 -1
- package/dist/types/EditCustomEmoji.d.ts +7 -5
- package/dist/types/EditSite.d.ts +4 -4
- package/dist/types/FederatedInstanceView.d.ts +12 -0
- package/dist/types/FederationAllowList.d.ts +4 -0
- package/dist/types/FederationBlockList.d.ts +0 -2
- package/dist/types/FederationBlockList.js +1 -0
- package/dist/types/FederationMode.d.ts +1 -1
- package/dist/types/FederationQueueState.d.ts +18 -0
- package/dist/types/GetComments.d.ts +0 -1
- package/dist/types/GetFederatedInstances.d.ts +8 -0
- package/dist/types/GetFederatedInstancesKind.d.ts +1 -0
- package/dist/types/GetModlog.d.ts +2 -3
- package/dist/types/GetMultiCommunity.d.ts +2 -1
- package/dist/types/GetPersonDetailsResponse.d.ts +2 -0
- package/dist/types/GetPosts.d.ts +1 -1
- package/dist/types/GetSiteResponse.d.ts +6 -0
- package/dist/types/HideCommunity.d.ts +1 -1
- package/dist/types/InstanceActions.d.ts +6 -2
- package/dist/types/LemmyErrorType.d.ts +23 -133
- package/dist/types/LikeType.d.ts +1 -1
- package/dist/types/LinkMetadata.d.ts +4 -0
- package/dist/types/ListCommentLikes.d.ts +0 -1
- package/dist/types/ListCommunities.d.ts +0 -1
- package/dist/types/ListCommunityPendingFollows.d.ts +1 -2
- package/dist/types/ListMedia.d.ts +0 -1
- package/dist/types/ListMultiCommunities.d.ts +12 -1
- package/dist/types/ListNotifications.d.ts +0 -1
- package/dist/types/ListPersonContent.d.ts +0 -1
- package/dist/types/ListPersonHidden.d.ts +0 -1
- package/dist/types/ListPersonLiked.d.ts +0 -1
- package/dist/types/ListPersonRead.d.ts +0 -1
- package/dist/types/ListPersonSaved.d.ts +0 -1
- package/dist/types/ListPostLikes.d.ts +0 -1
- package/dist/types/ListRegistrationApplications.d.ts +0 -1
- package/dist/types/ListReports.d.ts +0 -1
- package/dist/types/ListTaglines.d.ts +0 -1
- package/dist/types/ListingType.d.ts +1 -1
- package/dist/types/LocalSite.d.ts +1 -6
- package/dist/types/LocalUser.d.ts +10 -13
- package/dist/types/LocalUserView.d.ts +1 -0
- package/dist/types/LockComment.d.ts +9 -0
- package/dist/types/LockPost.d.ts +1 -1
- package/dist/types/Login.d.ts +4 -0
- package/dist/types/MarkManyPostsAsRead.d.ts +1 -0
- package/dist/types/ModEditPost.d.ts +10 -0
- package/dist/types/Modlog.d.ts +10 -0
- package/dist/types/ModlogId.d.ts +1 -0
- package/dist/types/ModlogKind.d.ts +4 -0
- package/dist/types/ModlogView.d.ts +15 -0
- package/dist/types/MultiCommunity.d.ts +3 -0
- package/dist/types/MultiCommunityEntry.d.ts +6 -0
- package/dist/types/MultiCommunityListingType.d.ts +4 -0
- package/dist/types/MultiCommunityResponse.d.ts +4 -0
- package/dist/types/MultiCommunitySortType.d.ts +1 -0
- package/dist/types/MultiCommunityView.d.ts +2 -0
- package/dist/types/MyUserInfo.d.ts +4 -1
- package/dist/types/Notification.d.ts +4 -2
- package/dist/types/NotificationData.d.ts +7 -4
- package/dist/types/NotificationDataType.d.ts +1 -1
- package/dist/types/NotificationType.d.ts +4 -0
- package/dist/types/OpenGraphData.d.ts +4 -0
- package/dist/types/PagedResponse.d.ts +11 -0
- package/dist/types/PaginationCursor.d.ts +5 -1
- package/dist/types/PendingFollowerView.d.ts +9 -0
- package/dist/types/PersonContentType.d.ts +1 -1
- package/dist/types/PersonResponse.d.ts +7 -0
- package/dist/types/PersonView.d.ts +2 -1
- package/dist/types/PluginMetadata.d.ts +2 -2
- package/dist/types/Post.d.ts +6 -4
- package/dist/types/PostActions.d.ts +11 -11
- package/dist/types/{PersonSavedCombinedView.d.ts → PostCommentCombinedView.d.ts} +3 -3
- package/dist/types/PostFeatureType.d.ts +1 -1
- package/dist/types/PostListingMode.d.ts +1 -1
- package/dist/types/PostNotificationsMode.d.ts +1 -1
- package/dist/types/PostOrCommentOrPrivateMessage.d.ts +7 -7
- package/dist/types/PostReportView.d.ts +2 -0
- package/dist/types/PostSortType.d.ts +1 -1
- package/dist/types/PostView.d.ts +2 -2
- package/dist/types/PrivateMessageReportView.d.ts +1 -0
- package/dist/types/PurgeComment.d.ts +1 -1
- package/dist/types/PurgeCommunity.d.ts +1 -1
- package/dist/types/PurgePerson.d.ts +1 -1
- package/dist/types/PurgePost.d.ts +1 -1
- package/dist/types/ReadableFederationState.d.ts +1 -1
- package/dist/types/Register.d.ts +4 -0
- package/dist/types/RegistrationApplication.d.ts +1 -0
- package/dist/types/RegistrationMode.d.ts +1 -1
- package/dist/types/RemoveComment.d.ts +1 -1
- package/dist/types/RemoveCommunity.d.ts +1 -1
- package/dist/types/RemovePost.d.ts +1 -1
- package/dist/types/ReportCombinedView.d.ts +4 -4
- package/dist/types/ReportType.d.ts +1 -1
- package/dist/types/SaveUserSettings.d.ts +5 -5
- package/dist/types/Search.d.ts +4 -1
- package/dist/types/SearchCombinedView.d.ts +5 -5
- package/dist/types/SearchResponse.d.ts +11 -1
- package/dist/types/SearchSortType.d.ts +1 -1
- package/dist/types/SearchType.d.ts +1 -1
- package/dist/types/Tag.d.ts +5 -13
- package/dist/types/TagsView.d.ts +1 -1
- package/dist/types/UntranslatedError.d.ts +14 -0
- package/dist/types/UpdateCommunityTag.d.ts +9 -0
- package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
- package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
- package/dist/types/UserSettingsBackup.d.ts +4 -1
- package/dist/types/VoteShow.d.ts +1 -1
- package/dist/types/VoteView.d.ts +4 -1
- package/package.json +7 -6
- package/dist/types/AdminAllowInstance.d.ts +0 -11
- package/dist/types/AdminAllowInstanceId.d.ts +0 -1
- package/dist/types/AdminAllowInstanceView.d.ts +0 -11
- package/dist/types/AdminBlockInstance.d.ts +0 -12
- package/dist/types/AdminBlockInstanceId.d.ts +0 -1
- package/dist/types/AdminBlockInstanceView.d.ts +0 -11
- package/dist/types/AdminListUsersResponse.d.ts +0 -10
- package/dist/types/AdminPurgeComment.d.ts +0 -13
- package/dist/types/AdminPurgeCommentId.d.ts +0 -1
- package/dist/types/AdminPurgeCommentView.d.ts +0 -11
- package/dist/types/AdminPurgeCommunity.d.ts +0 -11
- package/dist/types/AdminPurgeCommunityId.d.ts +0 -1
- package/dist/types/AdminPurgeCommunityView.d.ts +0 -9
- package/dist/types/AdminPurgePerson.d.ts +0 -11
- package/dist/types/AdminPurgePersonId.d.ts +0 -1
- package/dist/types/AdminPurgePersonView.d.ts +0 -9
- package/dist/types/AdminPurgePost.d.ts +0 -13
- package/dist/types/AdminPurgePostId.d.ts +0 -1
- package/dist/types/AdminPurgePostView.d.ts +0 -11
- package/dist/types/BanFromCommunityResponse.d.ts +0 -8
- package/dist/types/BanPersonResponse.d.ts +0 -8
- package/dist/types/BlockCommunityResponse.d.ts +0 -8
- package/dist/types/BlockPersonResponse.d.ts +0 -8
- package/dist/types/BlockPersonResponse.js +0 -2
- package/dist/types/CommentReply.d.ts +0 -13
- package/dist/types/CommentReply.js +0 -2
- package/dist/types/CommentReplyId.d.ts +0 -4
- package/dist/types/FederatedInstances.d.ts +0 -9
- package/dist/types/FederatedInstances.js +0 -2
- package/dist/types/FederationError.d.ts +0 -10
- package/dist/types/GetCommentsResponse.d.ts +0 -10
- package/dist/types/GetCommentsResponse.js +0 -2
- package/dist/types/GetCommentsSlimResponse.d.ts +0 -10
- package/dist/types/GetCommentsSlimResponse.js +0 -2
- package/dist/types/GetCommunityPendingFollowsCount.d.ts +0 -4
- package/dist/types/GetCommunityPendingFollowsCount.js +0 -2
- package/dist/types/GetFederatedInstancesResponse.d.ts +0 -10
- package/dist/types/GetFederatedInstancesResponse.js +0 -2
- package/dist/types/GetModlogResponse.d.ts +0 -13
- package/dist/types/GetModlogResponse.js +0 -2
- package/dist/types/GetPostsResponse.d.ts +0 -13
- package/dist/types/GetPostsResponse.js +0 -2
- package/dist/types/InboxDataType.d.ts +0 -4
- package/dist/types/InboxDataType.js +0 -3
- package/dist/types/ListCommentLikesResponse.d.ts +0 -13
- package/dist/types/ListCommentLikesResponse.js +0 -2
- package/dist/types/ListCommunitiesResponse.d.ts +0 -13
- package/dist/types/ListCommunitiesResponse.js +0 -2
- package/dist/types/ListCommunityPendingFollowsResponse.d.ts +0 -10
- package/dist/types/ListCommunityPendingFollowsResponse.js +0 -2
- package/dist/types/ListMediaResponse.d.ts +0 -10
- package/dist/types/ListMediaResponse.js +0 -2
- package/dist/types/ListMultiCommunitiesResponse.d.ts +0 -4
- package/dist/types/ListMultiCommunitiesResponse.js +0 -2
- package/dist/types/ListNotificationsResponse.d.ts +0 -13
- package/dist/types/ListNotificationsResponse.js +0 -2
- package/dist/types/ListPersonContentResponse.d.ts +0 -13
- package/dist/types/ListPersonContentResponse.js +0 -2
- package/dist/types/ListPersonHiddenResponse.d.ts +0 -13
- package/dist/types/ListPersonHiddenResponse.js +0 -2
- package/dist/types/ListPersonLikedResponse.d.ts +0 -13
- package/dist/types/ListPersonLikedResponse.js +0 -2
- package/dist/types/ListPersonReadResponse.d.ts +0 -13
- package/dist/types/ListPersonReadResponse.js +0 -2
- package/dist/types/ListPersonSavedResponse.d.ts +0 -13
- package/dist/types/ListPersonSavedResponse.js +0 -2
- package/dist/types/ListPostLikesResponse.d.ts +0 -13
- package/dist/types/ListPostLikesResponse.js +0 -2
- package/dist/types/ListRegistrationApplicationsResponse.d.ts +0 -13
- package/dist/types/ListRegistrationApplicationsResponse.js +0 -2
- package/dist/types/ListReportsResponse.d.ts +0 -13
- package/dist/types/ListReportsResponse.js +0 -2
- package/dist/types/ListTaglinesResponse.d.ts +0 -13
- package/dist/types/ListTaglinesResponse.js +0 -2
- package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -8
- package/dist/types/MarkPrivateMessageAsRead.js +0 -2
- package/dist/types/ModAdd.d.ts +0 -12
- package/dist/types/ModAdd.js +0 -2
- package/dist/types/ModAddCommunity.d.ts +0 -14
- package/dist/types/ModAddCommunity.js +0 -2
- package/dist/types/ModAddCommunityId.d.ts +0 -1
- package/dist/types/ModAddCommunityId.js +0 -3
- package/dist/types/ModAddCommunityView.d.ts +0 -12
- package/dist/types/ModAddCommunityView.js +0 -2
- package/dist/types/ModAddId.d.ts +0 -1
- package/dist/types/ModAddId.js +0 -3
- package/dist/types/ModAddView.d.ts +0 -10
- package/dist/types/ModAddView.js +0 -2
- package/dist/types/ModBan.d.ts +0 -16
- package/dist/types/ModBan.js +0 -2
- package/dist/types/ModBanFromCommunity.d.ts +0 -16
- package/dist/types/ModBanFromCommunity.js +0 -2
- package/dist/types/ModBanFromCommunityId.d.ts +0 -1
- package/dist/types/ModBanFromCommunityId.js +0 -3
- package/dist/types/ModBanFromCommunityView.d.ts +0 -12
- package/dist/types/ModBanFromCommunityView.js +0 -2
- package/dist/types/ModBanId.d.ts +0 -1
- package/dist/types/ModBanId.js +0 -3
- package/dist/types/ModBanView.d.ts +0 -10
- package/dist/types/ModBanView.js +0 -2
- package/dist/types/ModChangeCommunityVisibility.d.ts +0 -11
- package/dist/types/ModChangeCommunityVisibility.js +0 -2
- package/dist/types/ModChangeCommunityVisibilityId.d.ts +0 -1
- package/dist/types/ModChangeCommunityVisibilityId.js +0 -3
- package/dist/types/ModChangeCommunityVisibilityView.d.ts +0 -11
- package/dist/types/ModChangeCommunityVisibilityView.js +0 -2
- package/dist/types/ModFeaturePost.d.ts +0 -14
- package/dist/types/ModFeaturePost.js +0 -2
- package/dist/types/ModFeaturePostId.d.ts +0 -1
- package/dist/types/ModFeaturePostId.js +0 -3
- package/dist/types/ModFeaturePostView.d.ts +0 -14
- package/dist/types/ModFeaturePostView.js +0 -2
- package/dist/types/ModLockPost.d.ts +0 -14
- package/dist/types/ModLockPost.js +0 -2
- package/dist/types/ModLockPostId.d.ts +0 -1
- package/dist/types/ModLockPostId.js +0 -3
- package/dist/types/ModLockPostView.d.ts +0 -14
- package/dist/types/ModLockPostView.js +0 -2
- package/dist/types/ModRemoveComment.d.ts +0 -14
- package/dist/types/ModRemoveComment.js +0 -2
- package/dist/types/ModRemoveCommentId.d.ts +0 -1
- package/dist/types/ModRemoveCommentId.js +0 -3
- package/dist/types/ModRemoveCommentView.d.ts +0 -16
- package/dist/types/ModRemoveCommentView.js +0 -2
- package/dist/types/ModRemoveCommunity.d.ts +0 -14
- package/dist/types/ModRemoveCommunity.js +0 -2
- package/dist/types/ModRemoveCommunityId.d.ts +0 -1
- package/dist/types/ModRemoveCommunityId.js +0 -3
- package/dist/types/ModRemoveCommunityView.d.ts +0 -11
- package/dist/types/ModRemoveCommunityView.js +0 -2
- package/dist/types/ModRemovePost.d.ts +0 -14
- package/dist/types/ModRemovePost.js +0 -2
- package/dist/types/ModRemovePostId.d.ts +0 -1
- package/dist/types/ModRemovePostId.js +0 -3
- package/dist/types/ModRemovePostView.d.ts +0 -14
- package/dist/types/ModRemovePostView.js +0 -2
- package/dist/types/ModTransferCommunity.d.ts +0 -13
- package/dist/types/ModTransferCommunity.js +0 -2
- package/dist/types/ModTransferCommunityId.d.ts +0 -1
- package/dist/types/ModTransferCommunityId.js +0 -3
- package/dist/types/ModTransferCommunityView.d.ts +0 -12
- package/dist/types/ModTransferCommunityView.js +0 -2
- package/dist/types/ModlogActionType.d.ts +0 -4
- package/dist/types/ModlogActionType.js +0 -3
- package/dist/types/ModlogCombinedView.d.ts +0 -52
- package/dist/types/ModlogCombinedView.js +0 -2
- package/dist/types/NotificationTypes.d.ts +0 -4
- package/dist/types/NotificationTypes.js +0 -3
- package/dist/types/NotificationsMode.d.ts +0 -4
- package/dist/types/NotificationsMode.js +0 -3
- package/dist/types/PersonCommentMention.d.ts +0 -13
- package/dist/types/PersonCommentMention.js +0 -2
- package/dist/types/PersonCommentMentionId.d.ts +0 -4
- package/dist/types/PersonCommentMentionId.js +0 -3
- package/dist/types/PersonContentCombinedView.d.ts +0 -7
- package/dist/types/PersonContentCombinedView.js +0 -2
- package/dist/types/PersonLikedCombinedView.d.ts +0 -7
- package/dist/types/PersonLikedCombinedView.js +0 -2
- package/dist/types/PersonNotification.d.ts +0 -9
- package/dist/types/PersonNotification.js +0 -2
- package/dist/types/PersonPostMention.d.ts +0 -13
- package/dist/types/PersonPostMention.js +0 -2
- package/dist/types/PersonPostMentionId.d.ts +0 -4
- package/dist/types/PersonPostMentionId.js +0 -3
- package/dist/types/PersonSavedCombinedView.js +0 -2
- package/dist/types/UserBlockInstanceParams.js +0 -2
- /package/dist/types/{AdminAllowInstance.js → FederatedInstanceView.js} +0 -0
- /package/dist/types/{AdminAllowInstanceId.js → FederationAllowList.js} +0 -0
- /package/dist/types/{AdminAllowInstanceView.js → FederationQueueState.js} +0 -0
- /package/dist/types/{AdminBlockInstance.js → GetFederatedInstances.js} +0 -0
- /package/dist/types/{AdminBlockInstanceId.js → GetFederatedInstancesKind.js} +0 -0
- /package/dist/types/{AdminBlockInstanceView.js → LockComment.js} +0 -0
- /package/dist/types/{AdminListUsersResponse.js → ModEditPost.js} +0 -0
- /package/dist/types/{AdminPurgeComment.js → Modlog.js} +0 -0
- /package/dist/types/{AdminPurgeCommentId.js → ModlogId.js} +0 -0
- /package/dist/types/{AdminPurgeCommunityId.js → ModlogKind.js} +0 -0
- /package/dist/types/{AdminPurgeCommentView.js → ModlogView.js} +0 -0
- /package/dist/types/{AdminPurgeCommunity.js → MultiCommunityEntry.js} +0 -0
- /package/dist/types/{AdminPurgePersonId.js → MultiCommunityListingType.js} +0 -0
- /package/dist/types/{AdminPurgeCommunityView.js → MultiCommunityResponse.js} +0 -0
- /package/dist/types/{AdminPurgePostId.js → MultiCommunitySortType.js} +0 -0
- /package/dist/types/{CommentReplyId.js → NotificationType.js} +0 -0
- /package/dist/types/{AdminPurgePerson.js → PagedResponse.js} +0 -0
- /package/dist/types/{AdminPurgePersonView.js → PendingFollowerView.js} +0 -0
- /package/dist/types/{AdminPurgePost.js → PersonResponse.js} +0 -0
- /package/dist/types/{AdminPurgePostView.js → PostCommentCombinedView.js} +0 -0
- /package/dist/types/{FederationError.js → UntranslatedError.js} +0 -0
- /package/dist/types/{BanFromCommunityResponse.js → UpdateCommunityTag.js} +0 -0
- /package/dist/types/{BanPersonResponse.js → UserBlockInstanceCommunitiesParams.js} +0 -0
- /package/dist/types/{BlockCommunityResponse.js → UserBlockInstancePersonsParams.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -5,46 +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 { AdminAllowInstance } from "./types/AdminAllowInstance";
|
|
9
|
-
export { AdminAllowInstanceId } from "./types/AdminAllowInstanceId";
|
|
10
8
|
export { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
|
|
11
|
-
export { AdminAllowInstanceView } from "./types/AdminAllowInstanceView";
|
|
12
|
-
export { AdminBlockInstance } from "./types/AdminBlockInstance";
|
|
13
|
-
export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
|
|
14
9
|
export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
|
15
|
-
export { AdminBlockInstanceView } from "./types/AdminBlockInstanceView";
|
|
16
10
|
export { AdminListUsers } from "./types/AdminListUsers";
|
|
17
|
-
export {
|
|
18
|
-
export { AdminPurgeComment } from "./types/AdminPurgeComment";
|
|
19
|
-
export { AdminPurgeCommentId } from "./types/AdminPurgeCommentId";
|
|
20
|
-
export { AdminPurgeCommentView } from "./types/AdminPurgeCommentView";
|
|
21
|
-
export { AdminPurgeCommunity } from "./types/AdminPurgeCommunity";
|
|
22
|
-
export { AdminPurgeCommunityId } from "./types/AdminPurgeCommunityId";
|
|
23
|
-
export { AdminPurgeCommunityView } from "./types/AdminPurgeCommunityView";
|
|
24
|
-
export { AdminPurgePerson } from "./types/AdminPurgePerson";
|
|
25
|
-
export { AdminPurgePersonId } from "./types/AdminPurgePersonId";
|
|
26
|
-
export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
|
|
27
|
-
export { AdminPurgePost } from "./types/AdminPurgePost";
|
|
28
|
-
export { AdminPurgePostId } from "./types/AdminPurgePostId";
|
|
29
|
-
export { AdminPurgePostView } from "./types/AdminPurgePostView";
|
|
11
|
+
export { AllLemmyErrors } from "./types/AllLemmyErrors";
|
|
30
12
|
export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
|
|
31
13
|
export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
|
|
32
14
|
export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
|
|
33
15
|
export { BanFromCommunity } from "./types/BanFromCommunity";
|
|
34
|
-
export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
|
|
35
16
|
export { BanPerson } from "./types/BanPerson";
|
|
36
|
-
export { BanPersonResponse } from "./types/BanPersonResponse";
|
|
37
17
|
export { BlockCommunity } from "./types/BlockCommunity";
|
|
38
|
-
export { BlockCommunityResponse } from "./types/BlockCommunityResponse";
|
|
39
18
|
export { BlockPerson } from "./types/BlockPerson";
|
|
40
|
-
export { BlockPersonResponse } from "./types/BlockPersonResponse";
|
|
41
19
|
export { CaptchaResponse } from "./types/CaptchaResponse";
|
|
42
20
|
export { ChangePassword } from "./types/ChangePassword";
|
|
43
21
|
export { Comment } from "./types/Comment";
|
|
44
22
|
export { CommentActions } from "./types/CommentActions";
|
|
45
23
|
export { CommentId } from "./types/CommentId";
|
|
46
|
-
export { CommentReply } from "./types/CommentReply";
|
|
47
|
-
export { CommentReplyId } from "./types/CommentReplyId";
|
|
48
24
|
export { CommentReport } from "./types/CommentReport";
|
|
49
25
|
export { CommentReportId } from "./types/CommentReportId";
|
|
50
26
|
export { CommentReportResponse } from "./types/CommentReportResponse";
|
|
@@ -112,25 +88,23 @@ export { EditPrivateMessage } from "./types/EditPrivateMessage";
|
|
|
112
88
|
export { EditSite } from "./types/EditSite";
|
|
113
89
|
export { ExportDataResponse } from "./types/ExportDataResponse";
|
|
114
90
|
export { FeaturePost } from "./types/FeaturePost";
|
|
115
|
-
export {
|
|
91
|
+
export { FederatedInstanceView } from "./types/FederatedInstanceView";
|
|
92
|
+
export { FederationAllowList } from "./types/FederationAllowList";
|
|
116
93
|
export { FederationBlockList } from "./types/FederationBlockList";
|
|
117
|
-
export { FederationError } from "./types/FederationError";
|
|
118
94
|
export { FederationMode } from "./types/FederationMode";
|
|
95
|
+
export { FederationQueueState } from "./types/FederationQueueState";
|
|
119
96
|
export { FollowCommunity } from "./types/FollowCommunity";
|
|
120
97
|
export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
|
|
121
98
|
export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
|
122
99
|
export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
|
|
123
100
|
export { GetComment } from "./types/GetComment";
|
|
124
101
|
export { GetComments } from "./types/GetComments";
|
|
125
|
-
export { GetCommentsResponse } from "./types/GetCommentsResponse";
|
|
126
|
-
export { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
|
|
127
102
|
export { GetCommunity } from "./types/GetCommunity";
|
|
128
|
-
export { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
|
|
129
103
|
export { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
|
|
130
104
|
export { GetCommunityResponse } from "./types/GetCommunityResponse";
|
|
131
|
-
export {
|
|
105
|
+
export { GetFederatedInstances } from "./types/GetFederatedInstances";
|
|
106
|
+
export { GetFederatedInstancesKind } from "./types/GetFederatedInstancesKind";
|
|
132
107
|
export { GetModlog } from "./types/GetModlog";
|
|
133
|
-
export { GetModlogResponse } from "./types/GetModlogResponse";
|
|
134
108
|
export { GetMultiCommunity } from "./types/GetMultiCommunity";
|
|
135
109
|
export { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
|
|
136
110
|
export { GetPersonDetails } from "./types/GetPersonDetails";
|
|
@@ -138,7 +112,6 @@ export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
|
|
|
138
112
|
export { GetPost } from "./types/GetPost";
|
|
139
113
|
export { GetPostResponse } from "./types/GetPostResponse";
|
|
140
114
|
export { GetPosts } from "./types/GetPosts";
|
|
141
|
-
export { GetPostsResponse } from "./types/GetPostsResponse";
|
|
142
115
|
export { GetRandomCommunity } from "./types/GetRandomCommunity";
|
|
143
116
|
export { GetRegistrationApplication } from "./types/GetRegistrationApplication";
|
|
144
117
|
export { GetReportCount } from "./types/GetReportCount";
|
|
@@ -153,7 +126,6 @@ export { HidePost } from "./types/HidePost";
|
|
|
153
126
|
export { ImageDetails } from "./types/ImageDetails";
|
|
154
127
|
export { ImageGetParams } from "./types/ImageGetParams";
|
|
155
128
|
export { ImageProxyParams } from "./types/ImageProxyParams";
|
|
156
|
-
export { InboxDataType } from "./types/InboxDataType";
|
|
157
129
|
export { Instance } from "./types/Instance";
|
|
158
130
|
export { InstanceActions } from "./types/InstanceActions";
|
|
159
131
|
export { InstanceId } from "./types/InstanceId";
|
|
@@ -164,38 +136,23 @@ export { LemmyErrorType } from "./types/LemmyErrorType";
|
|
|
164
136
|
export { LikeType } from "./types/LikeType";
|
|
165
137
|
export { LinkMetadata } from "./types/LinkMetadata";
|
|
166
138
|
export { ListCommentLikes } from "./types/ListCommentLikes";
|
|
167
|
-
export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
|
168
139
|
export { ListCommunities } from "./types/ListCommunities";
|
|
169
|
-
export { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
|
|
170
140
|
export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
|
|
171
|
-
export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
|
|
172
141
|
export { ListCustomEmojis } from "./types/ListCustomEmojis";
|
|
173
142
|
export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
|
|
174
143
|
export { ListLoginsResponse } from "./types/ListLoginsResponse";
|
|
175
144
|
export { ListMedia } from "./types/ListMedia";
|
|
176
|
-
export { ListMediaResponse } from "./types/ListMediaResponse";
|
|
177
145
|
export { ListMultiCommunities } from "./types/ListMultiCommunities";
|
|
178
|
-
export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
|
|
179
146
|
export { ListNotifications } from "./types/ListNotifications";
|
|
180
|
-
export { ListNotificationsResponse } from "./types/ListNotificationsResponse";
|
|
181
147
|
export { ListPersonContent } from "./types/ListPersonContent";
|
|
182
|
-
export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
|
183
148
|
export { ListPersonHidden } from "./types/ListPersonHidden";
|
|
184
|
-
export { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
|
|
185
149
|
export { ListPersonLiked } from "./types/ListPersonLiked";
|
|
186
|
-
export { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
|
|
187
150
|
export { ListPersonRead } from "./types/ListPersonRead";
|
|
188
|
-
export { ListPersonReadResponse } from "./types/ListPersonReadResponse";
|
|
189
151
|
export { ListPersonSaved } from "./types/ListPersonSaved";
|
|
190
|
-
export { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
|
|
191
152
|
export { ListPostLikes } from "./types/ListPostLikes";
|
|
192
|
-
export { ListPostLikesResponse } from "./types/ListPostLikesResponse";
|
|
193
153
|
export { ListRegistrationApplications } from "./types/ListRegistrationApplications";
|
|
194
|
-
export { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
|
|
195
154
|
export { ListReports } from "./types/ListReports";
|
|
196
|
-
export { ListReportsResponse } from "./types/ListReportsResponse";
|
|
197
155
|
export { ListTaglines } from "./types/ListTaglines";
|
|
198
|
-
export { ListTaglinesResponse } from "./types/ListTaglinesResponse";
|
|
199
156
|
export { ListingType } from "./types/ListingType";
|
|
200
157
|
export { LocalImage } from "./types/LocalImage";
|
|
201
158
|
export { LocalImageView } from "./types/LocalImageView";
|
|
@@ -206,6 +163,7 @@ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
|
|
|
206
163
|
export { LocalUser } from "./types/LocalUser";
|
|
207
164
|
export { LocalUserId } from "./types/LocalUserId";
|
|
208
165
|
export { LocalUserView } from "./types/LocalUserView";
|
|
166
|
+
export { LockComment } from "./types/LockComment";
|
|
209
167
|
export { LockPost } from "./types/LockPost";
|
|
210
168
|
export { Login } from "./types/Login";
|
|
211
169
|
export { LoginResponse } from "./types/LoginResponse";
|
|
@@ -213,45 +171,18 @@ export { LoginToken } from "./types/LoginToken";
|
|
|
213
171
|
export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
|
214
172
|
export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
|
215
173
|
export { MarkPostAsRead } from "./types/MarkPostAsRead";
|
|
216
|
-
export {
|
|
217
|
-
export {
|
|
218
|
-
export {
|
|
219
|
-
export {
|
|
220
|
-
export {
|
|
221
|
-
export { ModAddId } from "./types/ModAddId";
|
|
222
|
-
export { ModAddView } from "./types/ModAddView";
|
|
223
|
-
export { ModBan } from "./types/ModBan";
|
|
224
|
-
export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
|
|
225
|
-
export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
|
|
226
|
-
export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
|
|
227
|
-
export { ModBanId } from "./types/ModBanId";
|
|
228
|
-
export { ModBanView } from "./types/ModBanView";
|
|
229
|
-
export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
|
|
230
|
-
export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
|
|
231
|
-
export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
|
|
232
|
-
export { ModFeaturePost } from "./types/ModFeaturePost";
|
|
233
|
-
export { ModFeaturePostId } from "./types/ModFeaturePostId";
|
|
234
|
-
export { ModFeaturePostView } from "./types/ModFeaturePostView";
|
|
235
|
-
export { ModLockPost } from "./types/ModLockPost";
|
|
236
|
-
export { ModLockPostId } from "./types/ModLockPostId";
|
|
237
|
-
export { ModLockPostView } from "./types/ModLockPostView";
|
|
238
|
-
export { ModRemoveComment } from "./types/ModRemoveComment";
|
|
239
|
-
export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
|
|
240
|
-
export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
|
|
241
|
-
export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
|
|
242
|
-
export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
|
|
243
|
-
export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
|
|
244
|
-
export { ModRemovePost } from "./types/ModRemovePost";
|
|
245
|
-
export { ModRemovePostId } from "./types/ModRemovePostId";
|
|
246
|
-
export { ModRemovePostView } from "./types/ModRemovePostView";
|
|
247
|
-
export { ModTransferCommunity } from "./types/ModTransferCommunity";
|
|
248
|
-
export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
|
|
249
|
-
export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
|
|
250
|
-
export { ModlogActionType } from "./types/ModlogActionType";
|
|
251
|
-
export { ModlogCombinedView } from "./types/ModlogCombinedView";
|
|
174
|
+
export { ModEditPost } from "./types/ModEditPost";
|
|
175
|
+
export { Modlog } from "./types/Modlog";
|
|
176
|
+
export { ModlogId } from "./types/ModlogId";
|
|
177
|
+
export { ModlogKind } from "./types/ModlogKind";
|
|
178
|
+
export { ModlogView } from "./types/ModlogView";
|
|
252
179
|
export { MultiCommunity } from "./types/MultiCommunity";
|
|
180
|
+
export { MultiCommunityEntry } from "./types/MultiCommunityEntry";
|
|
253
181
|
export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
|
|
254
182
|
export { MultiCommunityId } from "./types/MultiCommunityId";
|
|
183
|
+
export { MultiCommunityListingType } from "./types/MultiCommunityListingType";
|
|
184
|
+
export { MultiCommunityResponse } from "./types/MultiCommunityResponse";
|
|
185
|
+
export { MultiCommunitySortType } from "./types/MultiCommunitySortType";
|
|
255
186
|
export { MultiCommunityView } from "./types/MultiCommunityView";
|
|
256
187
|
export { MyUserInfo } from "./types/MyUserInfo";
|
|
257
188
|
export { NotePerson } from "./types/NotePerson";
|
|
@@ -259,33 +190,28 @@ export { Notification } from "./types/Notification";
|
|
|
259
190
|
export { NotificationData } from "./types/NotificationData";
|
|
260
191
|
export { NotificationDataType } from "./types/NotificationDataType";
|
|
261
192
|
export { NotificationId } from "./types/NotificationId";
|
|
262
|
-
export {
|
|
193
|
+
export { NotificationType } from "./types/NotificationType";
|
|
263
194
|
export { NotificationView } from "./types/NotificationView";
|
|
264
|
-
export { NotificationsMode } from "./types/NotificationsMode";
|
|
265
195
|
export { OAuthAccount } from "./types/OAuthAccount";
|
|
266
196
|
export { OAuthProvider } from "./types/OAuthProvider";
|
|
267
197
|
export { OAuthProviderId } from "./types/OAuthProviderId";
|
|
268
198
|
export { OpenGraphData } from "./types/OpenGraphData";
|
|
199
|
+
export { PagedResponse } from "./types/PagedResponse";
|
|
269
200
|
export { PaginationCursor } from "./types/PaginationCursor";
|
|
270
201
|
export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
|
271
202
|
export { PasswordReset } from "./types/PasswordReset";
|
|
272
203
|
export { PendingFollow } from "./types/PendingFollow";
|
|
204
|
+
export { PendingFollowerView } from "./types/PendingFollowerView";
|
|
273
205
|
export { Person } from "./types/Person";
|
|
274
206
|
export { PersonActions } from "./types/PersonActions";
|
|
275
|
-
export { PersonCommentMention } from "./types/PersonCommentMention";
|
|
276
|
-
export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
|
|
277
|
-
export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
|
|
278
207
|
export { PersonContentType } from "./types/PersonContentType";
|
|
279
208
|
export { PersonId } from "./types/PersonId";
|
|
280
|
-
export {
|
|
281
|
-
export { PersonNotification } from "./types/PersonNotification";
|
|
282
|
-
export { PersonPostMention } from "./types/PersonPostMention";
|
|
283
|
-
export { PersonPostMentionId } from "./types/PersonPostMentionId";
|
|
284
|
-
export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
|
|
209
|
+
export { PersonResponse } from "./types/PersonResponse";
|
|
285
210
|
export { PersonView } from "./types/PersonView";
|
|
286
211
|
export { PluginMetadata } from "./types/PluginMetadata";
|
|
287
212
|
export { Post } from "./types/Post";
|
|
288
213
|
export { PostActions } from "./types/PostActions";
|
|
214
|
+
export { PostCommentCombinedView } from "./types/PostCommentCombinedView";
|
|
289
215
|
export { PostFeatureType } from "./types/PostFeatureType";
|
|
290
216
|
export { PostId } from "./types/PostId";
|
|
291
217
|
export { PostListingMode } from "./types/PostListingMode";
|
|
@@ -350,14 +276,17 @@ export { TaglineId } from "./types/TaglineId";
|
|
|
350
276
|
export { TaglineResponse } from "./types/TaglineResponse";
|
|
351
277
|
export { TagsView } from "./types/TagsView";
|
|
352
278
|
export { TransferCommunity } from "./types/TransferCommunity";
|
|
279
|
+
export { UntranslatedError } from "./types/UntranslatedError";
|
|
353
280
|
export { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
|
|
281
|
+
export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
|
354
282
|
export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
|
355
283
|
export { UpdatePostNotifications } from "./types/UpdatePostNotifications";
|
|
356
284
|
export { UpdateTagline } from "./types/UpdateTagline";
|
|
357
285
|
export { UpdateTotp } from "./types/UpdateTotp";
|
|
358
286
|
export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
|
359
287
|
export { UploadImageResponse } from "./types/UploadImageResponse";
|
|
360
|
-
export {
|
|
288
|
+
export { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
|
|
289
|
+
export { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
|
|
361
290
|
export { UserSettingsBackup } from "./types/UserSettingsBackup";
|
|
362
291
|
export { VerifyEmail } from "./types/VerifyEmail";
|
|
363
292
|
export { VoteShow } from "./types/VoteShow";
|
package/dist/index.js
CHANGED
|
@@ -14,4 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.AllLemmyErrors = void 0;
|
|
17
18
|
__exportStar(require("./http"), exports);
|
|
19
|
+
var AllLemmyErrors_1 = require("./types/AllLemmyErrors");
|
|
20
|
+
Object.defineProperty(exports, "AllLemmyErrors", { enumerable: true, get: function () { return AllLemmyErrors_1.AllLemmyErrors; } });
|
package/dist/other_types.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { DeleteImageParams } from "./types/DeleteImageParams";
|
|
|
4
4
|
import { GetComment } from "./types/GetComment";
|
|
5
5
|
import { GetComments } from "./types/GetComments";
|
|
6
6
|
import { GetCommunity } from "./types/GetCommunity";
|
|
7
|
-
import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
|
|
8
7
|
import { GetModlog } from "./types/GetModlog";
|
|
9
8
|
import { GetMultiCommunity } from "./types/GetMultiCommunity";
|
|
10
9
|
import { GetPersonDetails } from "./types/GetPersonDetails";
|
|
@@ -32,6 +31,7 @@ import { ListReports } from "./types/ListReports";
|
|
|
32
31
|
import { ListTaglines } from "./types/ListTaglines";
|
|
33
32
|
import { ResolveObject } from "./types/ResolveObject";
|
|
34
33
|
import { Search } from "./types/Search";
|
|
34
|
+
import { GetFederatedInstances } from "./types/GetFederatedInstances";
|
|
35
35
|
export declare const VERSION = "v4";
|
|
36
36
|
export interface UploadImage {
|
|
37
37
|
image: File | Buffer;
|
|
@@ -48,8 +48,6 @@ export interface GetCommunityI extends GetCommunity {
|
|
|
48
48
|
}
|
|
49
49
|
export interface ListCommunitiesI extends ListCommunities {
|
|
50
50
|
}
|
|
51
|
-
export interface GetCommunityPendingFollowsCountI extends GetCommunityPendingFollowsCount {
|
|
52
|
-
}
|
|
53
51
|
export interface ListCommunityPendingFollowsI extends ListCommunityPendingFollows {
|
|
54
52
|
}
|
|
55
53
|
export interface GetRandomCommunityI extends GetRandomCommunity {
|
|
@@ -104,3 +102,5 @@ export interface ListMultiCommunitiesI extends ListMultiCommunities {
|
|
|
104
102
|
}
|
|
105
103
|
export interface GetMultiCommunityI extends GetMultiCommunity {
|
|
106
104
|
}
|
|
105
|
+
export interface GetFederatedInstancesI extends GetFederatedInstances {
|
|
106
|
+
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
export type AdminBlockInstanceParams = {
|
|
2
2
|
instance: string;
|
|
3
3
|
block: boolean;
|
|
4
|
-
reason
|
|
5
|
-
|
|
4
|
+
reason: string;
|
|
5
|
+
/**
|
|
6
|
+
* A time that the block will expire, in unix epoch seconds.
|
|
7
|
+
*
|
|
8
|
+
* An i64 unix timestamp is used for a simpler API client implementation.
|
|
9
|
+
*/
|
|
10
|
+
expires_at?: number;
|
|
6
11
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AllLemmyErrors: string[];
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AllLemmyErrors = void 0;
|
|
4
|
+
exports.AllLemmyErrors = [
|
|
5
|
+
"block_keyword_too_short",
|
|
6
|
+
"block_keyword_too_long",
|
|
7
|
+
"couldnt_update",
|
|
8
|
+
"couldnt_create",
|
|
9
|
+
"report_reason_required",
|
|
10
|
+
"report_too_long",
|
|
11
|
+
"not_a_moderator",
|
|
12
|
+
"not_an_admin",
|
|
13
|
+
"cant_block_yourself",
|
|
14
|
+
"cant_note_yourself",
|
|
15
|
+
"cant_block_admin",
|
|
16
|
+
"passwords_do_not_match",
|
|
17
|
+
"email_not_verified",
|
|
18
|
+
"email_required",
|
|
19
|
+
"cannot_leave_admin",
|
|
20
|
+
"cannot_leave_mod",
|
|
21
|
+
"cannot_leave_mod",
|
|
22
|
+
"cannot_leave_mod",
|
|
23
|
+
"pictrs_api_key_not_provided",
|
|
24
|
+
"pictrs_api_key_not_provided",
|
|
25
|
+
"no_content_type_header",
|
|
26
|
+
"not_an_image_type",
|
|
27
|
+
"image_upload_disabled",
|
|
28
|
+
"not_a_mod_or_admin",
|
|
29
|
+
"not_top_mod",
|
|
30
|
+
"not_logged_in",
|
|
31
|
+
"not_higher_mod",
|
|
32
|
+
"not_higher_admin",
|
|
33
|
+
"site_ban",
|
|
34
|
+
"deleted",
|
|
35
|
+
"person_is_blocked",
|
|
36
|
+
"community_is_blocked",
|
|
37
|
+
"instance_is_blocked",
|
|
38
|
+
"instance_is_private",
|
|
39
|
+
"invalid_password",
|
|
40
|
+
"site_description_length_overflow",
|
|
41
|
+
"honeypot_failed",
|
|
42
|
+
"registration_application_is_pending",
|
|
43
|
+
"locked",
|
|
44
|
+
"max_comment_depth_reached",
|
|
45
|
+
"no_comment_edit_allowed",
|
|
46
|
+
"only_admins_can_create_communities",
|
|
47
|
+
"already_exists",
|
|
48
|
+
"language_not_allowed",
|
|
49
|
+
"no_post_edit_allowed",
|
|
50
|
+
"nsfw_not_allowed",
|
|
51
|
+
"edit_private_message_not_allowed",
|
|
52
|
+
"application_question_required",
|
|
53
|
+
"invalid_default_post_listing_type",
|
|
54
|
+
"registration_closed",
|
|
55
|
+
"registration_application_answer_required",
|
|
56
|
+
"registration_username_required",
|
|
57
|
+
"email_already_taken",
|
|
58
|
+
"username_already_taken",
|
|
59
|
+
"person_is_banned_from_community",
|
|
60
|
+
"no_id_given",
|
|
61
|
+
"incorrect_login",
|
|
62
|
+
"no_email_setup",
|
|
63
|
+
"local_site_not_setup",
|
|
64
|
+
"local_site_not_setup",
|
|
65
|
+
"invalid_name",
|
|
66
|
+
"invalid_code_verifier",
|
|
67
|
+
"invalid_display_name",
|
|
68
|
+
"invalid_matrix_id",
|
|
69
|
+
"invalid_post_title",
|
|
70
|
+
"invalid_body_field",
|
|
71
|
+
"bio_length_overflow",
|
|
72
|
+
"alt_text_length_overflow",
|
|
73
|
+
"couldnt_parse_totp_secret",
|
|
74
|
+
"couldnt_generate_totp",
|
|
75
|
+
"missing_totp_token",
|
|
76
|
+
"missing_totp_secret",
|
|
77
|
+
"incorrect_totp_token",
|
|
78
|
+
"totp_already_enabled",
|
|
79
|
+
"blocked_url",
|
|
80
|
+
"invalid_url",
|
|
81
|
+
"email_send_failed",
|
|
82
|
+
"slurs",
|
|
83
|
+
"slurs",
|
|
84
|
+
"site_name_required",
|
|
85
|
+
"site_name_length_overflow",
|
|
86
|
+
"permissive_regex",
|
|
87
|
+
"invalid_regex",
|
|
88
|
+
"captcha_incorrect",
|
|
89
|
+
"couldnt_create_audio_captcha",
|
|
90
|
+
"couldnt_create_image_captcha",
|
|
91
|
+
"invalid_url_scheme",
|
|
92
|
+
"contradicting_filters",
|
|
93
|
+
"too_many_items",
|
|
94
|
+
"ban_expiration_in_past",
|
|
95
|
+
"invalid_unix_time",
|
|
96
|
+
"invalid_bot_action",
|
|
97
|
+
"tag_not_in_community",
|
|
98
|
+
"cant_block_local_instance",
|
|
99
|
+
"cant_block_local_instance",
|
|
100
|
+
"url_length_overflow",
|
|
101
|
+
"oauth_authorization_invalid",
|
|
102
|
+
"oauth_login_failed",
|
|
103
|
+
"oauth_registration_closed",
|
|
104
|
+
"not_found",
|
|
105
|
+
"post_schedule_time_must_be_in_future",
|
|
106
|
+
"too_many_scheduled_posts",
|
|
107
|
+
"cannot_combine_federation_blocklist_and_allowlist",
|
|
108
|
+
"cannot_combine_federation_blocklist_and_allowlist",
|
|
109
|
+
"couldnt_parse_pagination_token",
|
|
110
|
+
"couldnt_parse_pagination_token",
|
|
111
|
+
"invalid_fetch_limit",
|
|
112
|
+
"email_notifications_disabled",
|
|
113
|
+
"multi_community_update_wrong_user",
|
|
114
|
+
"cannot_combine_community_id_and_multi_community_id",
|
|
115
|
+
"multi_community_entry_limit_reached",
|
|
116
|
+
"too_many_requests",
|
|
117
|
+
];
|
|
@@ -12,7 +12,7 @@ export type BanFromCommunity = {
|
|
|
12
12
|
* If ban is true, then this means remove. If ban is false, it means restore.
|
|
13
13
|
*/
|
|
14
14
|
remove_or_restore_data?: boolean;
|
|
15
|
-
reason
|
|
15
|
+
reason: string;
|
|
16
16
|
/**
|
|
17
17
|
* A time that the ban will expire, in unix epoch seconds.
|
|
18
18
|
*
|
|
@@ -10,7 +10,7 @@ export type BanPerson = {
|
|
|
10
10
|
* If ban is true, then this means remove. If ban is false, it means restore.
|
|
11
11
|
*/
|
|
12
12
|
remove_or_restore_data?: boolean;
|
|
13
|
-
reason
|
|
13
|
+
reason: string;
|
|
14
14
|
/**
|
|
15
15
|
* A time that the ban will expire, in unix epoch seconds.
|
|
16
16
|
*
|
|
@@ -6,4 +6,8 @@ export type ChangePassword = {
|
|
|
6
6
|
new_password: SensitiveString;
|
|
7
7
|
new_password_verify: SensitiveString;
|
|
8
8
|
old_password: SensitiveString;
|
|
9
|
+
/**
|
|
10
|
+
* If this is true the login is valid forever, otherwise it expires after one week.
|
|
11
|
+
*/
|
|
12
|
+
stay_logged_in?: boolean;
|
|
9
13
|
};
|
package/dist/types/Comment.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export type CommentActions = {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* When the comment was upvoted or downvoted.
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* When the comment was liked.
|
|
8
|
-
*/
|
|
9
|
-
liked_at?: string;
|
|
5
|
+
voted_at?: string;
|
|
10
6
|
/**
|
|
11
7
|
* When the comment was saved.
|
|
12
8
|
*/
|
|
13
9
|
saved_at?: string;
|
|
10
|
+
/**
|
|
11
|
+
* True if upvoted, false if downvoted. Upvote is greater than downvote.
|
|
12
|
+
*/
|
|
13
|
+
vote_is_upvote?: boolean;
|
|
14
14
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Comment } from "./Comment";
|
|
2
2
|
import type { CommentActions } from "./CommentActions";
|
|
3
|
-
import type { InstanceActions } from "./InstanceActions";
|
|
4
3
|
import type { Person } from "./Person";
|
|
5
4
|
import type { PersonActions } from "./PersonActions";
|
|
6
5
|
/**
|
|
@@ -11,7 +10,6 @@ export type CommentSlimView = {
|
|
|
11
10
|
creator: Person;
|
|
12
11
|
comment_actions?: CommentActions;
|
|
13
12
|
person_actions?: PersonActions;
|
|
14
|
-
instance_actions?: InstanceActions;
|
|
15
13
|
creator_is_admin: boolean;
|
|
16
14
|
can_mod: boolean;
|
|
17
15
|
creator_banned: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The comment sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
|
|
3
3
|
*/
|
|
4
|
-
export type CommentSortType = "
|
|
4
|
+
export type CommentSortType = "hot" | "top" | "new" | "old" | "controversial";
|
|
@@ -2,7 +2,6 @@ import type { Comment } from "./Comment";
|
|
|
2
2
|
import type { CommentActions } from "./CommentActions";
|
|
3
3
|
import type { Community } from "./Community";
|
|
4
4
|
import type { CommunityActions } from "./CommunityActions";
|
|
5
|
-
import type { InstanceActions } from "./InstanceActions";
|
|
6
5
|
import type { Person } from "./Person";
|
|
7
6
|
import type { PersonActions } from "./PersonActions";
|
|
8
7
|
import type { Post } from "./Post";
|
|
@@ -18,11 +17,12 @@ export type CommentView = {
|
|
|
18
17
|
community_actions?: CommunityActions;
|
|
19
18
|
comment_actions?: CommentActions;
|
|
20
19
|
person_actions?: PersonActions;
|
|
21
|
-
instance_actions?: InstanceActions;
|
|
22
20
|
creator_is_admin: boolean;
|
|
23
21
|
post_tags: TagsView;
|
|
24
22
|
can_mod: boolean;
|
|
25
23
|
creator_banned: boolean;
|
|
24
|
+
creator_ban_expires_at?: string;
|
|
26
25
|
creator_is_moderator: boolean;
|
|
27
26
|
creator_banned_from_community: boolean;
|
|
27
|
+
creator_community_ban_expires_at?: string;
|
|
28
28
|
};
|
|
@@ -5,10 +5,6 @@ export type CommunityActions = {
|
|
|
5
5
|
* When the community was followed.
|
|
6
6
|
*/
|
|
7
7
|
followed_at?: string;
|
|
8
|
-
/**
|
|
9
|
-
* The state of the community follow.
|
|
10
|
-
*/
|
|
11
|
-
follow_state?: CommunityFollowerState;
|
|
12
8
|
/**
|
|
13
9
|
* When the community was blocked.
|
|
14
10
|
*/
|
|
@@ -25,5 +21,9 @@ export type CommunityActions = {
|
|
|
25
21
|
* When their ban expires.
|
|
26
22
|
*/
|
|
27
23
|
ban_expires_at?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The state of the community follow.
|
|
26
|
+
*/
|
|
27
|
+
follow_state?: CommunityFollowerState;
|
|
28
28
|
notifications?: CommunityNotificationsMode;
|
|
29
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type CommunityFollowerState = "
|
|
1
|
+
export type CommunityFollowerState = "accepted" | "pending" | "approval_required" | "denied";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Available settings for community notifications
|
|
3
3
|
*/
|
|
4
|
-
export type CommunityNotificationsMode = "
|
|
4
|
+
export type CommunityNotificationsMode = "all_posts_and_comments" | "all_posts" | "replies_and_mentions" | "mute";
|
|
@@ -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 = "active_six_months" | "active_monthly" | "active_weekly" | "active_daily" | "hot" | "new" | "old" | "name_asc" | "name_desc" | "comments" | "posts" | "subscribers" | "subscribers_local";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Community } from "./Community";
|
|
2
2
|
import type { CommunityActions } from "./CommunityActions";
|
|
3
|
-
import type { InstanceActions } from "./InstanceActions";
|
|
4
3
|
import type { TagsView } from "./TagsView";
|
|
5
4
|
/**
|
|
6
5
|
* A community view.
|
|
@@ -8,7 +7,6 @@ import type { TagsView } from "./TagsView";
|
|
|
8
7
|
export type CommunityView = {
|
|
9
8
|
community: Community;
|
|
10
9
|
community_actions?: CommunityActions;
|
|
11
|
-
instance_actions?: InstanceActions;
|
|
12
10
|
can_mod: boolean;
|
|
13
11
|
post_tags: TagsView;
|
|
14
12
|
};
|