lemmy-js-client 1.0.0-instance-user-blocking.7 → 1.0.0-invite.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 +33 -4
- package/dist/http.d.ts +265 -220
- package/dist/http.js +451 -336
- package/dist/index.d.ts +59 -109
- package/dist/index.js +4 -0
- package/dist/map_request_state.d.ts +2 -0
- package/dist/map_request_state.js +12 -0
- package/dist/map_request_state.main.d.ts +2 -0
- package/dist/map_request_state.main.js +12 -0
- package/dist/map_request_state.tsoa.d.ts +1 -0
- package/dist/map_request_state.tsoa.js +7 -0
- package/dist/other_types.d.ts +10 -7
- package/dist/request_state.d.ts +26 -0
- package/dist/request_state.js +5 -0
- package/dist/types/AdminAllowInstanceParams.d.ts +1 -1
- package/dist/types/AdminBlockInstanceParams.d.ts +7 -2
- package/dist/types/AdminListUsers.d.ts +2 -1
- package/dist/types/{OAuthProvider.d.ts → AdminOAuthProvider.d.ts} +1 -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/{PasswordChangeAfterReset.d.ts → ChangePasswordAfterReset.d.ts} +1 -1
- package/dist/types/Comment.d.ts +4 -0
- package/dist/types/CommentActions.d.ts +6 -6
- package/dist/types/CommentReport.d.ts +1 -0
- package/dist/types/CommentReportView.d.ts +4 -0
- package/dist/types/CommentSlimView.d.ts +0 -3
- package/dist/types/CommentSortType.d.ts +1 -1
- package/dist/types/CommentView.d.ts +4 -5
- package/dist/types/Community.d.ts +4 -3
- 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/CommunityReport.d.ts +3 -2
- package/dist/types/CommunityReportView.d.ts +2 -0
- package/dist/types/CommunitySortType.d.ts +1 -1
- package/dist/types/{Tag.d.ts → CommunityTag.d.ts} +6 -4
- package/dist/types/CommunityTagId.d.ts +4 -0
- package/dist/types/CommunityTagsView.d.ts +5 -0
- package/dist/types/CommunityView.d.ts +2 -4
- package/dist/types/CommunityVisibility.d.ts +1 -1
- package/dist/types/CreateCommentLike.d.ts +2 -2
- package/dist/types/CreateCommentReport.d.ts +4 -0
- package/dist/types/CreateCommentWarning.d.ts +8 -0
- package/dist/types/CreateCommunity.d.ts +3 -11
- package/dist/types/CreateCommunityTag.d.ts +3 -1
- package/dist/types/CreateCustomEmoji.d.ts +2 -1
- package/dist/types/CreateCustomEmoji.js +0 -1
- package/dist/types/CreateInvitation.d.ts +4 -0
- package/dist/types/CreateInvitationResponse.d.ts +4 -0
- package/dist/types/CreateMultiCommunity.d.ts +2 -1
- package/dist/types/CreatePost.d.ts +2 -2
- package/dist/types/CreatePostLike.d.ts +2 -2
- package/dist/types/CreatePostReport.d.ts +4 -0
- package/dist/types/CreatePostWarning.d.ts +8 -0
- package/dist/types/CreateSite.d.ts +19 -8
- package/dist/types/DeleteCommunityTag.d.ts +3 -2
- package/dist/types/DeleteUserForm.d.ts +8 -0
- package/dist/types/EditCommunity.d.ts +2 -2
- package/dist/types/{UpdateCommunityNotifications.d.ts → EditCommunityNotifications.d.ts} +1 -1
- package/dist/types/EditCommunityTag.d.ts +11 -0
- package/dist/types/EditCustomEmoji.d.ts +7 -5
- package/dist/types/{UpdateMultiCommunity.d.ts → EditMultiCommunity.d.ts} +3 -2
- package/dist/types/EditPost.d.ts +2 -2
- package/dist/types/{UpdatePostNotifications.d.ts → EditPostNotifications.d.ts} +1 -1
- package/dist/types/EditSite.d.ts +36 -18
- package/dist/types/{UpdateTagline.d.ts → EditTagline.d.ts} +1 -1
- package/dist/types/{UpdateTotp.d.ts → EditTotp.d.ts} +1 -1
- package/dist/types/EditTotpResponse.d.ts +3 -0
- 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/{ReadableFederationState.d.ts → FederationQueueState.d.ts} +1 -5
- package/dist/types/GetComments.d.ts +4 -1
- package/dist/types/GetFederatedInstances.d.ts +8 -0
- package/dist/types/GetFederatedInstancesKind.d.ts +1 -0
- package/dist/types/GetModlog.d.ts +11 -3
- package/dist/types/GetMultiCommunity.d.ts +2 -1
- package/dist/types/GetPersonDetailsResponse.d.ts +2 -0
- package/dist/types/GetPostResponse.d.ts +2 -0
- package/dist/types/GetPosts.d.ts +13 -2
- package/dist/types/GetSiteResponse.d.ts +9 -3
- package/dist/types/HideCommunity.d.ts +1 -1
- package/dist/types/ImageMode.d.ts +4 -0
- package/dist/types/InvitationId.d.ts +4 -0
- package/dist/types/LemmyErrorType.d.ts +29 -146
- package/dist/types/LemmyErrorType.js +1 -0
- 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 +4 -1
- package/dist/types/ListCommunityPendingFollows.d.ts +1 -2
- package/dist/types/ListInvitations.d.ts +5 -0
- package/dist/types/ListMedia.d.ts +0 -1
- package/dist/types/ListMultiCommunities.d.ts +14 -1
- package/dist/types/ListNotifications.d.ts +4 -3
- package/dist/types/ListPersonContent.d.ts +3 -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 +1 -1
- package/dist/types/ListPersons.d.ts +11 -0
- package/dist/types/ListPostLikes.d.ts +0 -1
- package/dist/types/ListRegistrationApplications.d.ts +0 -1
- package/dist/types/ListReports.d.ts +6 -1
- package/dist/types/ListTaglines.d.ts +0 -1
- package/dist/types/ListingType.d.ts +1 -1
- package/dist/types/LocalSite.d.ts +37 -18
- package/dist/types/LocalUser.d.ts +18 -16
- package/dist/types/LocalUserInvite.d.ts +11 -0
- package/dist/types/LocalUserSortType.d.ts +4 -0
- 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 +2 -2
- package/dist/types/Modlog.d.ts +12 -0
- package/dist/types/ModlogId.d.ts +1 -0
- package/dist/types/ModlogKind.d.ts +4 -0
- package/dist/types/ModlogKindFilter.d.ts +5 -0
- package/dist/types/ModlogView.d.ts +15 -0
- package/dist/types/MultiCommunity.d.ts +12 -1
- 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 +2 -0
- package/dist/types/NodeInfo.d.ts +20 -0
- package/dist/types/NodeInfoServices.d.ts +4 -0
- package/dist/types/NodeInfoSoftware.d.ts +6 -0
- package/dist/types/NodeInfoUsage.d.ts +6 -0
- package/dist/types/NodeInfoUsers.d.ts +5 -0
- package/dist/types/Notification.d.ts +5 -2
- package/dist/types/NotificationData.d.ts +7 -4
- package/dist/types/NotificationType.d.ts +4 -0
- package/dist/types/NotificationTypeFilter.d.ts +5 -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/Person.d.ts +1 -0
- package/dist/types/PersonContentType.d.ts +1 -1
- package/dist/types/PersonListingType.d.ts +4 -0
- package/dist/types/PersonResponse.d.ts +7 -0
- package/dist/types/PersonSortType.d.ts +4 -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/PostReport.d.ts +1 -0
- package/dist/types/PostReportView.d.ts +4 -0
- package/dist/types/PostSortType.d.ts +1 -1
- package/dist/types/PostView.d.ts +4 -5
- package/dist/types/PrivateMessage.d.ts +1 -0
- package/dist/types/PrivateMessageReport.d.ts +1 -0
- package/dist/types/PrivateMessageReportView.d.ts +1 -0
- package/dist/types/PublicOAuthProvider.d.ts +27 -2
- 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/Register.d.ts +8 -0
- package/dist/types/RegistrationApplication.d.ts +1 -0
- package/dist/types/RegistrationMode.d.ts +1 -1
- package/dist/types/RemoveComment.d.ts +6 -1
- package/dist/types/RemoveCommunity.d.ts +1 -1
- package/dist/types/RemovePost.d.ts +6 -1
- package/dist/types/ReportCombinedView.d.ts +4 -4
- package/dist/types/ReportSortType.d.ts +4 -0
- package/dist/types/ReportType.d.ts +1 -1
- package/dist/types/{PasswordReset.d.ts → ResetPassword.d.ts} +1 -1
- package/dist/types/ResolveCommentReport.d.ts +1 -0
- package/dist/types/ResolveCommunityReport.d.ts +1 -0
- package/dist/types/{SearchCombinedView.d.ts → ResolveObjectView.d.ts} +7 -7
- package/dist/types/ResolvePostReport.d.ts +1 -0
- package/dist/types/ResolvePrivateMessageReport.d.ts +1 -0
- package/dist/types/RevokeInvitation.d.ts +3 -0
- package/dist/types/SaveUserSettings.d.ts +13 -9
- package/dist/types/Search.d.ts +6 -6
- package/dist/types/SearchResponse.d.ts +16 -4
- package/dist/types/SearchType.d.ts +1 -1
- package/dist/types/Site.d.ts +2 -3
- package/dist/types/TagColor.d.ts +4 -0
- package/dist/types/UnreadCountsResponse.d.ts +11 -0
- package/dist/types/UserSettingsBackup.d.ts +2 -4
- package/dist/types/VoteShow.d.ts +1 -1
- package/dist/types/VoteView.d.ts +4 -1
- package/package.json +13 -12
- 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/FederatedInstances.d.ts +0 -9
- package/dist/types/FederationError.d.ts +0 -12
- package/dist/types/GetCommentsResponse.d.ts +0 -10
- package/dist/types/GetCommentsSlimResponse.d.ts +0 -10
- package/dist/types/GetCommunityPendingFollowsCount.d.ts +0 -4
- package/dist/types/GetCommunityPendingFollowsCountResponse.d.ts +0 -3
- package/dist/types/GetFederatedInstancesResponse.d.ts +0 -10
- package/dist/types/GetModlogResponse.d.ts +0 -13
- package/dist/types/GetPostsResponse.d.ts +0 -13
- package/dist/types/GetReportCount.d.ts +0 -7
- package/dist/types/GetReportCountResponse.d.ts +0 -6
- package/dist/types/GetUnreadCountResponse.d.ts +0 -6
- package/dist/types/GetUnreadRegistrationApplicationCountResponse.d.ts +0 -6
- package/dist/types/InstanceWithFederationState.d.ts +0 -24
- package/dist/types/ListCommentLikesResponse.d.ts +0 -13
- package/dist/types/ListCommunitiesResponse.d.ts +0 -13
- package/dist/types/ListCommunityPendingFollowsResponse.d.ts +0 -10
- package/dist/types/ListMediaResponse.d.ts +0 -10
- package/dist/types/ListMultiCommunitiesResponse.d.ts +0 -4
- package/dist/types/ListNotificationsResponse.d.ts +0 -13
- package/dist/types/ListPersonContentResponse.d.ts +0 -13
- package/dist/types/ListPersonHiddenResponse.d.ts +0 -13
- 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/ModAddCommunityView.d.ts +0 -12
- package/dist/types/ModAddCommunityView.js +0 -2
- package/dist/types/ModAddId.d.ts +0 -1
- 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/ModBanFromCommunityView.d.ts +0 -12
- package/dist/types/ModBanFromCommunityView.js +0 -2
- package/dist/types/ModBanId.d.ts +0 -1
- 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/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/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/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/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/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/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/ModTransferCommunityView.d.ts +0 -12
- package/dist/types/ModTransferCommunityView.js +0 -2
- package/dist/types/ModlogActionType.d.ts +0 -4
- package/dist/types/ModlogCombinedView.d.ts +0 -52
- package/dist/types/ModlogCombinedView.js +0 -2
- package/dist/types/NotificationDataType.d.ts +0 -4
- package/dist/types/NotificationDataType.js +0 -3
- package/dist/types/NotificationTypes.d.ts +0 -4
- package/dist/types/NotificationTypes.js +0 -3
- package/dist/types/OAuthProvider.js +0 -2
- package/dist/types/PasswordChangeAfterReset.js +0 -2
- package/dist/types/PasswordReset.js +0 -2
- 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/PersonSavedCombinedView.js +0 -2
- package/dist/types/ReadableFederationState.js +0 -2
- package/dist/types/SearchCombinedView.js +0 -2
- package/dist/types/SearchSortType.d.ts +0 -4
- package/dist/types/SearchSortType.js +0 -3
- package/dist/types/Tag.js +0 -2
- package/dist/types/TagId.d.ts +0 -4
- package/dist/types/TagId.js +0 -3
- package/dist/types/TagsView.d.ts +0 -5
- package/dist/types/TagsView.js +0 -2
- package/dist/types/UpdateCommunityNotifications.js +0 -2
- package/dist/types/UpdateCommunityTag.d.ts +0 -9
- package/dist/types/UpdateCommunityTag.js +0 -2
- package/dist/types/UpdateMultiCommunity.js +0 -2
- package/dist/types/UpdatePostNotifications.js +0 -2
- package/dist/types/UpdateTagline.js +0 -2
- package/dist/types/UpdateTotp.js +0 -3
- package/dist/types/UpdateTotpResponse.d.ts +0 -3
- package/dist/types/UpdateTotpResponse.js +0 -3
- /package/dist/types/{AdminAllowInstance.js → AdminOAuthProvider.js} +0 -0
- /package/dist/types/{AdminAllowInstanceView.js → ChangePasswordAfterReset.js} +0 -0
- /package/dist/types/{AdminBlockInstance.js → CommunityTag.js} +0 -0
- /package/dist/types/{AdminAllowInstanceId.js → CommunityTagId.js} +0 -0
- /package/dist/types/{AdminBlockInstanceView.js → CommunityTagsView.js} +0 -0
- /package/dist/types/{AdminListUsersResponse.js → CreateCommentWarning.js} +0 -0
- /package/dist/types/{AdminBlockInstanceId.js → CreateInvitation.js} +0 -0
- /package/dist/types/{AdminPurgeComment.js → CreateInvitationResponse.js} +0 -0
- /package/dist/types/{AdminPurgeCommentView.js → CreatePostWarning.js} +0 -0
- /package/dist/types/{AdminPurgeCommunity.js → DeleteUserForm.js} +0 -0
- /package/dist/types/{AdminPurgeCommunityView.js → EditCommunityNotifications.js} +0 -0
- /package/dist/types/{AdminPurgePerson.js → EditCommunityTag.js} +0 -0
- /package/dist/types/{AdminPurgePersonView.js → EditMultiCommunity.js} +0 -0
- /package/dist/types/{AdminPurgePost.js → EditPostNotifications.js} +0 -0
- /package/dist/types/{AdminPurgePostView.js → EditTagline.js} +0 -0
- /package/dist/types/{AdminPurgeCommentId.js → EditTotp.js} +0 -0
- /package/dist/types/{AdminPurgeCommunityId.js → EditTotpResponse.js} +0 -0
- /package/dist/types/{BanFromCommunityResponse.js → FederatedInstanceView.js} +0 -0
- /package/dist/types/{AdminPurgePersonId.js → FederationAllowList.js} +0 -0
- /package/dist/types/{BanPersonResponse.js → FederationQueueState.js} +0 -0
- /package/dist/types/{BlockCommunityResponse.js → GetFederatedInstances.js} +0 -0
- /package/dist/types/{AdminPurgePostId.js → GetFederatedInstancesKind.js} +0 -0
- /package/dist/types/{FederationError.js → ImageMode.js} +0 -0
- /package/dist/types/{GetCommunityPendingFollowsCountResponse.js → InvitationId.js} +0 -0
- /package/dist/types/{BlockPersonResponse.js → ListInvitations.js} +0 -0
- /package/dist/types/{FederatedInstances.js → ListPersons.js} +0 -0
- /package/dist/types/{GetCommentsResponse.js → LocalUserInvite.js} +0 -0
- /package/dist/types/{GetReportCountResponse.js → LocalUserSortType.js} +0 -0
- /package/dist/types/{GetCommentsSlimResponse.js → LockComment.js} +0 -0
- /package/dist/types/{GetCommunityPendingFollowsCount.js → Modlog.js} +0 -0
- /package/dist/types/{GetUnreadCountResponse.js → ModlogId.js} +0 -0
- /package/dist/types/{GetUnreadRegistrationApplicationCountResponse.js → ModlogKind.js} +0 -0
- /package/dist/types/{GetFederatedInstancesResponse.js → ModlogKindFilter.js} +0 -0
- /package/dist/types/{GetModlogResponse.js → ModlogView.js} +0 -0
- /package/dist/types/{GetPostsResponse.js → MultiCommunityEntry.js} +0 -0
- /package/dist/types/{ModAddCommunityId.js → MultiCommunityListingType.js} +0 -0
- /package/dist/types/{GetReportCount.js → MultiCommunityResponse.js} +0 -0
- /package/dist/types/{ModAddId.js → MultiCommunitySortType.js} +0 -0
- /package/dist/types/{InstanceWithFederationState.js → NodeInfo.js} +0 -0
- /package/dist/types/{ModBanFromCommunityId.js → NodeInfoServices.js} +0 -0
- /package/dist/types/{ModBanId.js → NodeInfoSoftware.js} +0 -0
- /package/dist/types/{ListCommentLikesResponse.js → NodeInfoUsage.js} +0 -0
- /package/dist/types/{ModChangeCommunityVisibilityId.js → NodeInfoUsers.js} +0 -0
- /package/dist/types/{ModFeaturePostId.js → NotificationType.js} +0 -0
- /package/dist/types/{ListCommunitiesResponse.js → NotificationTypeFilter.js} +0 -0
- /package/dist/types/{ListCommunityPendingFollowsResponse.js → PagedResponse.js} +0 -0
- /package/dist/types/{ListMediaResponse.js → PendingFollowerView.js} +0 -0
- /package/dist/types/{ModLockPostId.js → PersonListingType.js} +0 -0
- /package/dist/types/{ListMultiCommunitiesResponse.js → PersonResponse.js} +0 -0
- /package/dist/types/{ModRemoveCommentId.js → PersonSortType.js} +0 -0
- /package/dist/types/{ListNotificationsResponse.js → PostCommentCombinedView.js} +0 -0
- /package/dist/types/{ModRemoveCommunityId.js → ReportSortType.js} +0 -0
- /package/dist/types/{ListPersonContentResponse.js → ResetPassword.js} +0 -0
- /package/dist/types/{ListPersonHiddenResponse.js → ResolveObjectView.js} +0 -0
- /package/dist/types/{ModRemovePostId.js → RevokeInvitation.js} +0 -0
- /package/dist/types/{ModTransferCommunityId.js → TagColor.js} +0 -0
- /package/dist/types/{ModlogActionType.js → UnreadCountsResponse.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,45 +1,26 @@
|
|
|
1
1
|
export * from "./http";
|
|
2
|
+
export * from "./request_state";
|
|
2
3
|
export { UploadImage } from "./other_types";
|
|
3
4
|
export { ActivityId } from "./types/ActivityId";
|
|
4
5
|
export { AddAdmin } from "./types/AddAdmin";
|
|
5
6
|
export { AddAdminResponse } from "./types/AddAdminResponse";
|
|
6
7
|
export { AddModToCommunity } from "./types/AddModToCommunity";
|
|
7
8
|
export { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
|
|
8
|
-
export { AdminAllowInstance } from "./types/AdminAllowInstance";
|
|
9
|
-
export { AdminAllowInstanceId } from "./types/AdminAllowInstanceId";
|
|
10
9
|
export { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
|
|
11
|
-
export { AdminAllowInstanceView } from "./types/AdminAllowInstanceView";
|
|
12
|
-
export { AdminBlockInstance } from "./types/AdminBlockInstance";
|
|
13
|
-
export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
|
|
14
10
|
export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
|
15
|
-
export { AdminBlockInstanceView } from "./types/AdminBlockInstanceView";
|
|
16
11
|
export { AdminListUsers } from "./types/AdminListUsers";
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
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";
|
|
12
|
+
export { AdminOAuthProvider } from "./types/AdminOAuthProvider";
|
|
13
|
+
export { AllLemmyErrors } from "./types/AllLemmyErrors";
|
|
30
14
|
export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
|
|
31
15
|
export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
|
|
32
16
|
export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
|
|
33
17
|
export { BanFromCommunity } from "./types/BanFromCommunity";
|
|
34
|
-
export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
|
|
35
18
|
export { BanPerson } from "./types/BanPerson";
|
|
36
|
-
export { BanPersonResponse } from "./types/BanPersonResponse";
|
|
37
19
|
export { BlockCommunity } from "./types/BlockCommunity";
|
|
38
|
-
export { BlockCommunityResponse } from "./types/BlockCommunityResponse";
|
|
39
20
|
export { BlockPerson } from "./types/BlockPerson";
|
|
40
|
-
export { BlockPersonResponse } from "./types/BlockPersonResponse";
|
|
41
21
|
export { CaptchaResponse } from "./types/CaptchaResponse";
|
|
42
22
|
export { ChangePassword } from "./types/ChangePassword";
|
|
23
|
+
export { ChangePasswordAfterReset } from "./types/ChangePasswordAfterReset";
|
|
43
24
|
export { Comment } from "./types/Comment";
|
|
44
25
|
export { CommentActions } from "./types/CommentActions";
|
|
45
26
|
export { CommentId } from "./types/CommentId";
|
|
@@ -65,21 +46,28 @@ export { CommunityReportResponse } from "./types/CommunityReportResponse";
|
|
|
65
46
|
export { CommunityReportView } from "./types/CommunityReportView";
|
|
66
47
|
export { CommunityResponse } from "./types/CommunityResponse";
|
|
67
48
|
export { CommunitySortType } from "./types/CommunitySortType";
|
|
49
|
+
export { CommunityTag } from "./types/CommunityTag";
|
|
50
|
+
export { CommunityTagId } from "./types/CommunityTagId";
|
|
51
|
+
export { CommunityTagsView } from "./types/CommunityTagsView";
|
|
68
52
|
export { CommunityView } from "./types/CommunityView";
|
|
69
53
|
export { CommunityVisibility } from "./types/CommunityVisibility";
|
|
70
54
|
export { CreateComment } from "./types/CreateComment";
|
|
71
55
|
export { CreateCommentLike } from "./types/CreateCommentLike";
|
|
72
56
|
export { CreateCommentReport } from "./types/CreateCommentReport";
|
|
57
|
+
export { CreateCommentWarning } from "./types/CreateCommentWarning";
|
|
73
58
|
export { CreateCommunity } from "./types/CreateCommunity";
|
|
74
59
|
export { CreateCommunityReport } from "./types/CreateCommunityReport";
|
|
75
60
|
export { CreateCommunityTag } from "./types/CreateCommunityTag";
|
|
76
61
|
export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
|
62
|
+
export { CreateInvitation } from "./types/CreateInvitation";
|
|
63
|
+
export { CreateInvitationResponse } from "./types/CreateInvitationResponse";
|
|
77
64
|
export { CreateMultiCommunity } from "./types/CreateMultiCommunity";
|
|
78
65
|
export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
|
79
66
|
export { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
|
|
80
67
|
export { CreatePost } from "./types/CreatePost";
|
|
81
68
|
export { CreatePostLike } from "./types/CreatePostLike";
|
|
82
69
|
export { CreatePostReport } from "./types/CreatePostReport";
|
|
70
|
+
export { CreatePostWarning } from "./types/CreatePostWarning";
|
|
83
71
|
export { CreatePrivateMessage } from "./types/CreatePrivateMessage";
|
|
84
72
|
export { CreatePrivateMessageReport } from "./types/CreatePrivateMessageReport";
|
|
85
73
|
export { CreateSite } from "./types/CreateSite";
|
|
@@ -100,35 +88,40 @@ export { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
|
|
|
100
88
|
export { DeletePost } from "./types/DeletePost";
|
|
101
89
|
export { DeletePrivateMessage } from "./types/DeletePrivateMessage";
|
|
102
90
|
export { DeleteTagline } from "./types/DeleteTagline";
|
|
91
|
+
export { DeleteUserForm } from "./types/DeleteUserForm";
|
|
103
92
|
export { DistinguishComment } from "./types/DistinguishComment";
|
|
104
93
|
export { EditComment } from "./types/EditComment";
|
|
105
94
|
export { EditCommunity } from "./types/EditCommunity";
|
|
95
|
+
export { EditCommunityNotifications } from "./types/EditCommunityNotifications";
|
|
96
|
+
export { EditCommunityTag } from "./types/EditCommunityTag";
|
|
106
97
|
export { EditCustomEmoji } from "./types/EditCustomEmoji";
|
|
98
|
+
export { EditMultiCommunity } from "./types/EditMultiCommunity";
|
|
107
99
|
export { EditOAuthProvider } from "./types/EditOAuthProvider";
|
|
108
100
|
export { EditPost } from "./types/EditPost";
|
|
101
|
+
export { EditPostNotifications } from "./types/EditPostNotifications";
|
|
109
102
|
export { EditPrivateMessage } from "./types/EditPrivateMessage";
|
|
110
103
|
export { EditSite } from "./types/EditSite";
|
|
104
|
+
export { EditTagline } from "./types/EditTagline";
|
|
105
|
+
export { EditTotp } from "./types/EditTotp";
|
|
106
|
+
export { EditTotpResponse } from "./types/EditTotpResponse";
|
|
111
107
|
export { ExportDataResponse } from "./types/ExportDataResponse";
|
|
112
108
|
export { FeaturePost } from "./types/FeaturePost";
|
|
113
|
-
export {
|
|
109
|
+
export { FederatedInstanceView } from "./types/FederatedInstanceView";
|
|
110
|
+
export { FederationAllowList } from "./types/FederationAllowList";
|
|
114
111
|
export { FederationBlockList } from "./types/FederationBlockList";
|
|
115
|
-
export { FederationError } from "./types/FederationError";
|
|
116
112
|
export { FederationMode } from "./types/FederationMode";
|
|
113
|
+
export { FederationQueueState } from "./types/FederationQueueState";
|
|
117
114
|
export { FollowCommunity } from "./types/FollowCommunity";
|
|
118
115
|
export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
|
|
119
116
|
export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
|
120
117
|
export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
|
|
121
118
|
export { GetComment } from "./types/GetComment";
|
|
122
119
|
export { GetComments } from "./types/GetComments";
|
|
123
|
-
export { GetCommentsResponse } from "./types/GetCommentsResponse";
|
|
124
|
-
export { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
|
|
125
120
|
export { GetCommunity } from "./types/GetCommunity";
|
|
126
|
-
export { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
|
|
127
|
-
export { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
|
|
128
121
|
export { GetCommunityResponse } from "./types/GetCommunityResponse";
|
|
129
|
-
export {
|
|
122
|
+
export { GetFederatedInstances } from "./types/GetFederatedInstances";
|
|
123
|
+
export { GetFederatedInstancesKind } from "./types/GetFederatedInstancesKind";
|
|
130
124
|
export { GetModlog } from "./types/GetModlog";
|
|
131
|
-
export { GetModlogResponse } from "./types/GetModlogResponse";
|
|
132
125
|
export { GetMultiCommunity } from "./types/GetMultiCommunity";
|
|
133
126
|
export { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
|
|
134
127
|
export { GetPersonDetails } from "./types/GetPersonDetails";
|
|
@@ -136,63 +129,46 @@ export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
|
|
|
136
129
|
export { GetPost } from "./types/GetPost";
|
|
137
130
|
export { GetPostResponse } from "./types/GetPostResponse";
|
|
138
131
|
export { GetPosts } from "./types/GetPosts";
|
|
139
|
-
export { GetPostsResponse } from "./types/GetPostsResponse";
|
|
140
132
|
export { GetRandomCommunity } from "./types/GetRandomCommunity";
|
|
141
133
|
export { GetRegistrationApplication } from "./types/GetRegistrationApplication";
|
|
142
|
-
export { GetReportCount } from "./types/GetReportCount";
|
|
143
|
-
export { GetReportCountResponse } from "./types/GetReportCountResponse";
|
|
144
134
|
export { GetSiteMetadata } from "./types/GetSiteMetadata";
|
|
145
135
|
export { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse";
|
|
146
136
|
export { GetSiteResponse } from "./types/GetSiteResponse";
|
|
147
|
-
export { GetUnreadCountResponse } from "./types/GetUnreadCountResponse";
|
|
148
|
-
export { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse";
|
|
149
137
|
export { HideCommunity } from "./types/HideCommunity";
|
|
150
138
|
export { HidePost } from "./types/HidePost";
|
|
151
139
|
export { ImageDetails } from "./types/ImageDetails";
|
|
152
140
|
export { ImageGetParams } from "./types/ImageGetParams";
|
|
141
|
+
export { ImageMode } from "./types/ImageMode";
|
|
153
142
|
export { ImageProxyParams } from "./types/ImageProxyParams";
|
|
154
143
|
export { Instance } from "./types/Instance";
|
|
155
144
|
export { InstanceActions } from "./types/InstanceActions";
|
|
156
145
|
export { InstanceId } from "./types/InstanceId";
|
|
157
|
-
export {
|
|
146
|
+
export { InvitationId } from "./types/InvitationId";
|
|
158
147
|
export { Language } from "./types/Language";
|
|
159
148
|
export { LanguageId } from "./types/LanguageId";
|
|
160
149
|
export { LemmyErrorType } from "./types/LemmyErrorType";
|
|
161
150
|
export { LikeType } from "./types/LikeType";
|
|
162
151
|
export { LinkMetadata } from "./types/LinkMetadata";
|
|
163
152
|
export { ListCommentLikes } from "./types/ListCommentLikes";
|
|
164
|
-
export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
|
165
153
|
export { ListCommunities } from "./types/ListCommunities";
|
|
166
|
-
export { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
|
|
167
154
|
export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
|
|
168
|
-
export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
|
|
169
155
|
export { ListCustomEmojis } from "./types/ListCustomEmojis";
|
|
170
156
|
export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
|
|
157
|
+
export { ListInvitations } from "./types/ListInvitations";
|
|
171
158
|
export { ListLoginsResponse } from "./types/ListLoginsResponse";
|
|
172
159
|
export { ListMedia } from "./types/ListMedia";
|
|
173
|
-
export { ListMediaResponse } from "./types/ListMediaResponse";
|
|
174
160
|
export { ListMultiCommunities } from "./types/ListMultiCommunities";
|
|
175
|
-
export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
|
|
176
161
|
export { ListNotifications } from "./types/ListNotifications";
|
|
177
|
-
export { ListNotificationsResponse } from "./types/ListNotificationsResponse";
|
|
178
162
|
export { ListPersonContent } from "./types/ListPersonContent";
|
|
179
|
-
export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
|
180
163
|
export { ListPersonHidden } from "./types/ListPersonHidden";
|
|
181
|
-
export { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
|
|
182
164
|
export { ListPersonLiked } from "./types/ListPersonLiked";
|
|
183
|
-
export { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
|
|
184
165
|
export { ListPersonRead } from "./types/ListPersonRead";
|
|
185
|
-
export { ListPersonReadResponse } from "./types/ListPersonReadResponse";
|
|
186
166
|
export { ListPersonSaved } from "./types/ListPersonSaved";
|
|
187
|
-
export {
|
|
167
|
+
export { ListPersons } from "./types/ListPersons";
|
|
188
168
|
export { ListPostLikes } from "./types/ListPostLikes";
|
|
189
|
-
export { ListPostLikesResponse } from "./types/ListPostLikesResponse";
|
|
190
169
|
export { ListRegistrationApplications } from "./types/ListRegistrationApplications";
|
|
191
|
-
export { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
|
|
192
170
|
export { ListReports } from "./types/ListReports";
|
|
193
|
-
export { ListReportsResponse } from "./types/ListReportsResponse";
|
|
194
171
|
export { ListTaglines } from "./types/ListTaglines";
|
|
195
|
-
export { ListTaglinesResponse } from "./types/ListTaglinesResponse";
|
|
196
172
|
export { ListingType } from "./types/ListingType";
|
|
197
173
|
export { LocalImage } from "./types/LocalImage";
|
|
198
174
|
export { LocalImageView } from "./types/LocalImageView";
|
|
@@ -202,7 +178,10 @@ export { LocalSiteRateLimit } from "./types/LocalSiteRateLimit";
|
|
|
202
178
|
export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
|
|
203
179
|
export { LocalUser } from "./types/LocalUser";
|
|
204
180
|
export { LocalUserId } from "./types/LocalUserId";
|
|
181
|
+
export { LocalUserInvite } from "./types/LocalUserInvite";
|
|
182
|
+
export { LocalUserSortType } from "./types/LocalUserSortType";
|
|
205
183
|
export { LocalUserView } from "./types/LocalUserView";
|
|
184
|
+
export { LockComment } from "./types/LockComment";
|
|
206
185
|
export { LockPost } from "./types/LockPost";
|
|
207
186
|
export { Login } from "./types/Login";
|
|
208
187
|
export { LoginResponse } from "./types/LoginResponse";
|
|
@@ -210,74 +189,52 @@ export { LoginToken } from "./types/LoginToken";
|
|
|
210
189
|
export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
|
211
190
|
export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
|
212
191
|
export { MarkPostAsRead } from "./types/MarkPostAsRead";
|
|
213
|
-
export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
|
|
214
|
-
export { ModAdd } from "./types/ModAdd";
|
|
215
|
-
export { ModAddCommunity } from "./types/ModAddCommunity";
|
|
216
|
-
export { ModAddCommunityId } from "./types/ModAddCommunityId";
|
|
217
|
-
export { ModAddCommunityView } from "./types/ModAddCommunityView";
|
|
218
|
-
export { ModAddId } from "./types/ModAddId";
|
|
219
|
-
export { ModAddView } from "./types/ModAddView";
|
|
220
|
-
export { ModBan } from "./types/ModBan";
|
|
221
|
-
export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
|
|
222
|
-
export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
|
|
223
|
-
export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
|
|
224
|
-
export { ModBanId } from "./types/ModBanId";
|
|
225
|
-
export { ModBanView } from "./types/ModBanView";
|
|
226
|
-
export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
|
|
227
|
-
export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
|
|
228
|
-
export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
|
|
229
192
|
export { ModEditPost } from "./types/ModEditPost";
|
|
230
|
-
export {
|
|
231
|
-
export {
|
|
232
|
-
export {
|
|
233
|
-
export {
|
|
234
|
-
export {
|
|
235
|
-
export { ModLockPostView } from "./types/ModLockPostView";
|
|
236
|
-
export { ModRemoveComment } from "./types/ModRemoveComment";
|
|
237
|
-
export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
|
|
238
|
-
export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
|
|
239
|
-
export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
|
|
240
|
-
export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
|
|
241
|
-
export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
|
|
242
|
-
export { ModRemovePost } from "./types/ModRemovePost";
|
|
243
|
-
export { ModRemovePostId } from "./types/ModRemovePostId";
|
|
244
|
-
export { ModRemovePostView } from "./types/ModRemovePostView";
|
|
245
|
-
export { ModTransferCommunity } from "./types/ModTransferCommunity";
|
|
246
|
-
export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
|
|
247
|
-
export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
|
|
248
|
-
export { ModlogActionType } from "./types/ModlogActionType";
|
|
249
|
-
export { ModlogCombinedView } from "./types/ModlogCombinedView";
|
|
193
|
+
export { Modlog } from "./types/Modlog";
|
|
194
|
+
export { ModlogId } from "./types/ModlogId";
|
|
195
|
+
export { ModlogKind } from "./types/ModlogKind";
|
|
196
|
+
export { ModlogKindFilter } from "./types/ModlogKindFilter";
|
|
197
|
+
export { ModlogView } from "./types/ModlogView";
|
|
250
198
|
export { MultiCommunity } from "./types/MultiCommunity";
|
|
199
|
+
export { MultiCommunityEntry } from "./types/MultiCommunityEntry";
|
|
251
200
|
export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
|
|
252
201
|
export { MultiCommunityId } from "./types/MultiCommunityId";
|
|
202
|
+
export { MultiCommunityListingType } from "./types/MultiCommunityListingType";
|
|
203
|
+
export { MultiCommunityResponse } from "./types/MultiCommunityResponse";
|
|
204
|
+
export { MultiCommunitySortType } from "./types/MultiCommunitySortType";
|
|
253
205
|
export { MultiCommunityView } from "./types/MultiCommunityView";
|
|
254
206
|
export { MyUserInfo } from "./types/MyUserInfo";
|
|
207
|
+
export { NodeInfo } from "./types/NodeInfo";
|
|
208
|
+
export { NodeInfoServices } from "./types/NodeInfoServices";
|
|
209
|
+
export { NodeInfoSoftware } from "./types/NodeInfoSoftware";
|
|
210
|
+
export { NodeInfoUsage } from "./types/NodeInfoUsage";
|
|
211
|
+
export { NodeInfoUsers } from "./types/NodeInfoUsers";
|
|
255
212
|
export { NotePerson } from "./types/NotePerson";
|
|
256
213
|
export { Notification } from "./types/Notification";
|
|
257
214
|
export { NotificationData } from "./types/NotificationData";
|
|
258
|
-
export { NotificationDataType } from "./types/NotificationDataType";
|
|
259
215
|
export { NotificationId } from "./types/NotificationId";
|
|
260
|
-
export {
|
|
216
|
+
export { NotificationType } from "./types/NotificationType";
|
|
217
|
+
export { NotificationTypeFilter } from "./types/NotificationTypeFilter";
|
|
261
218
|
export { NotificationView } from "./types/NotificationView";
|
|
262
219
|
export { OAuthAccount } from "./types/OAuthAccount";
|
|
263
|
-
export { OAuthProvider } from "./types/OAuthProvider";
|
|
264
220
|
export { OAuthProviderId } from "./types/OAuthProviderId";
|
|
265
221
|
export { OpenGraphData } from "./types/OpenGraphData";
|
|
222
|
+
export { PagedResponse } from "./types/PagedResponse";
|
|
266
223
|
export { PaginationCursor } from "./types/PaginationCursor";
|
|
267
|
-
export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
|
268
|
-
export { PasswordReset } from "./types/PasswordReset";
|
|
269
224
|
export { PendingFollow } from "./types/PendingFollow";
|
|
225
|
+
export { PendingFollowerView } from "./types/PendingFollowerView";
|
|
270
226
|
export { Person } from "./types/Person";
|
|
271
227
|
export { PersonActions } from "./types/PersonActions";
|
|
272
|
-
export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
|
|
273
228
|
export { PersonContentType } from "./types/PersonContentType";
|
|
274
229
|
export { PersonId } from "./types/PersonId";
|
|
275
|
-
export {
|
|
276
|
-
export {
|
|
230
|
+
export { PersonListingType } from "./types/PersonListingType";
|
|
231
|
+
export { PersonResponse } from "./types/PersonResponse";
|
|
232
|
+
export { PersonSortType } from "./types/PersonSortType";
|
|
277
233
|
export { PersonView } from "./types/PersonView";
|
|
278
234
|
export { PluginMetadata } from "./types/PluginMetadata";
|
|
279
235
|
export { Post } from "./types/Post";
|
|
280
236
|
export { PostActions } from "./types/PostActions";
|
|
237
|
+
export { PostCommentCombinedView } from "./types/PostCommentCombinedView";
|
|
281
238
|
export { PostFeatureType } from "./types/PostFeatureType";
|
|
282
239
|
export { PostId } from "./types/PostId";
|
|
283
240
|
export { PostListingMode } from "./types/PostListingMode";
|
|
@@ -303,7 +260,6 @@ export { PurgeComment } from "./types/PurgeComment";
|
|
|
303
260
|
export { PurgeCommunity } from "./types/PurgeCommunity";
|
|
304
261
|
export { PurgePerson } from "./types/PurgePerson";
|
|
305
262
|
export { PurgePost } from "./types/PurgePost";
|
|
306
|
-
export { ReadableFederationState } from "./types/ReadableFederationState";
|
|
307
263
|
export { Register } from "./types/Register";
|
|
308
264
|
export { RegistrationApplication } from "./types/RegistrationApplication";
|
|
309
265
|
export { RegistrationApplicationId } from "./types/RegistrationApplicationId";
|
|
@@ -314,20 +270,22 @@ export { RemoveComment } from "./types/RemoveComment";
|
|
|
314
270
|
export { RemoveCommunity } from "./types/RemoveCommunity";
|
|
315
271
|
export { RemovePost } from "./types/RemovePost";
|
|
316
272
|
export { ReportCombinedView } from "./types/ReportCombinedView";
|
|
273
|
+
export { ReportSortType } from "./types/ReportSortType";
|
|
317
274
|
export { ReportType } from "./types/ReportType";
|
|
318
275
|
export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
|
276
|
+
export { ResetPassword } from "./types/ResetPassword";
|
|
319
277
|
export { ResolveCommentReport } from "./types/ResolveCommentReport";
|
|
320
278
|
export { ResolveCommunityReport } from "./types/ResolveCommunityReport";
|
|
321
279
|
export { ResolveObject } from "./types/ResolveObject";
|
|
280
|
+
export { ResolveObjectView } from "./types/ResolveObjectView";
|
|
322
281
|
export { ResolvePostReport } from "./types/ResolvePostReport";
|
|
323
282
|
export { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
|
|
283
|
+
export { RevokeInvitation } from "./types/RevokeInvitation";
|
|
324
284
|
export { SaveComment } from "./types/SaveComment";
|
|
325
285
|
export { SavePost } from "./types/SavePost";
|
|
326
286
|
export { SaveUserSettings } from "./types/SaveUserSettings";
|
|
327
287
|
export { Search } from "./types/Search";
|
|
328
|
-
export { SearchCombinedView } from "./types/SearchCombinedView";
|
|
329
288
|
export { SearchResponse } from "./types/SearchResponse";
|
|
330
|
-
export { SearchSortType } from "./types/SearchSortType";
|
|
331
289
|
export { SearchType } from "./types/SearchType";
|
|
332
290
|
export { SensitiveString } from "./types/SensitiveString";
|
|
333
291
|
export { Site } from "./types/Site";
|
|
@@ -335,20 +293,12 @@ export { SiteId } from "./types/SiteId";
|
|
|
335
293
|
export { SiteResponse } from "./types/SiteResponse";
|
|
336
294
|
export { SiteView } from "./types/SiteView";
|
|
337
295
|
export { SuccessResponse } from "./types/SuccessResponse";
|
|
338
|
-
export {
|
|
339
|
-
export { TagId } from "./types/TagId";
|
|
296
|
+
export { TagColor } from "./types/TagColor";
|
|
340
297
|
export { Tagline } from "./types/Tagline";
|
|
341
298
|
export { TaglineId } from "./types/TaglineId";
|
|
342
299
|
export { TaglineResponse } from "./types/TaglineResponse";
|
|
343
|
-
export { TagsView } from "./types/TagsView";
|
|
344
300
|
export { TransferCommunity } from "./types/TransferCommunity";
|
|
345
|
-
export {
|
|
346
|
-
export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
|
347
|
-
export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
|
348
|
-
export { UpdatePostNotifications } from "./types/UpdatePostNotifications";
|
|
349
|
-
export { UpdateTagline } from "./types/UpdateTagline";
|
|
350
|
-
export { UpdateTotp } from "./types/UpdateTotp";
|
|
351
|
-
export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
|
301
|
+
export { UnreadCountsResponse } from "./types/UnreadCountsResponse";
|
|
352
302
|
export { UploadImageResponse } from "./types/UploadImageResponse";
|
|
353
303
|
export { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
|
|
354
304
|
export { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
|
package/dist/index.js
CHANGED
|
@@ -14,4 +14,8 @@ 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
|
+
__exportStar(require("./request_state"), exports);
|
|
20
|
+
var AllLemmyErrors_1 = require("./types/AllLemmyErrors");
|
|
21
|
+
Object.defineProperty(exports, "AllLemmyErrors", { enumerable: true, get: function () { return AllLemmyErrors_1.AllLemmyErrors; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mapToRequestState = mapToRequestState;
|
|
4
|
+
function mapToRequestState(result, error) {
|
|
5
|
+
if (error) {
|
|
6
|
+
return { state: "failed", err: error };
|
|
7
|
+
}
|
|
8
|
+
if (result !== undefined) {
|
|
9
|
+
return { state: "success", data: result };
|
|
10
|
+
}
|
|
11
|
+
return { state: "empty" };
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mapToRequestState = mapToRequestState;
|
|
4
|
+
function mapToRequestState(result, error) {
|
|
5
|
+
if (error) {
|
|
6
|
+
return { state: "failed", err: error };
|
|
7
|
+
}
|
|
8
|
+
if (result !== undefined) {
|
|
9
|
+
return { state: "success", data: result };
|
|
10
|
+
}
|
|
11
|
+
return { state: "empty" };
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function mapToRequestState<ResultT>(result?: ResultT, _error?: Error): ResultT | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mapToRequestState = mapToRequestState;
|
|
4
|
+
// Does not return `RequestState<ResultT>` so that it doesnt become part of OpenAPI spec.
|
|
5
|
+
function mapToRequestState(result, _error) {
|
|
6
|
+
return result;
|
|
7
|
+
}
|
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";
|
|
@@ -12,7 +11,6 @@ import { GetPost } from "./types/GetPost";
|
|
|
12
11
|
import { GetPosts } from "./types/GetPosts";
|
|
13
12
|
import { GetRandomCommunity } from "./types/GetRandomCommunity";
|
|
14
13
|
import { GetRegistrationApplication } from "./types/GetRegistrationApplication";
|
|
15
|
-
import { GetReportCount } from "./types/GetReportCount";
|
|
16
14
|
import { GetSiteMetadata } from "./types/GetSiteMetadata";
|
|
17
15
|
import { ListCommentLikes } from "./types/ListCommentLikes";
|
|
18
16
|
import { ListCommunities } from "./types/ListCommunities";
|
|
@@ -31,7 +29,10 @@ import { ListRegistrationApplications } from "./types/ListRegistrationApplicatio
|
|
|
31
29
|
import { ListReports } from "./types/ListReports";
|
|
32
30
|
import { ListTaglines } from "./types/ListTaglines";
|
|
33
31
|
import { ResolveObject } from "./types/ResolveObject";
|
|
32
|
+
import { GetFederatedInstances } from "./types/GetFederatedInstances";
|
|
33
|
+
import { ListPersons } from "./types/ListPersons";
|
|
34
34
|
import { Search } from "./types/Search";
|
|
35
|
+
import { ListInvitations } from "./types/ListInvitations";
|
|
35
36
|
export declare const VERSION = "v4";
|
|
36
37
|
export interface UploadImage {
|
|
37
38
|
image: File | Buffer;
|
|
@@ -40,16 +41,12 @@ export interface ListMediaI extends ListMedia {
|
|
|
40
41
|
}
|
|
41
42
|
export interface GetModlogI extends GetModlog {
|
|
42
43
|
}
|
|
43
|
-
export interface SearchI extends Search {
|
|
44
|
-
}
|
|
45
44
|
export interface ResolveObjectI extends ResolveObject {
|
|
46
45
|
}
|
|
47
46
|
export interface GetCommunityI extends GetCommunity {
|
|
48
47
|
}
|
|
49
48
|
export interface ListCommunitiesI extends ListCommunities {
|
|
50
49
|
}
|
|
51
|
-
export interface GetCommunityPendingFollowsCountI extends GetCommunityPendingFollowsCount {
|
|
52
|
-
}
|
|
53
50
|
export interface ListCommunityPendingFollowsI extends ListCommunityPendingFollows {
|
|
54
51
|
}
|
|
55
52
|
export interface GetRandomCommunityI extends GetRandomCommunity {
|
|
@@ -72,7 +69,7 @@ export interface GetPersonDetailsI extends GetPersonDetails {
|
|
|
72
69
|
}
|
|
73
70
|
export interface ListPersonContentI extends ListPersonContent {
|
|
74
71
|
}
|
|
75
|
-
export interface
|
|
72
|
+
export interface ListPersonsI extends ListPersons {
|
|
76
73
|
}
|
|
77
74
|
export interface ListNotificationsI extends ListNotifications {
|
|
78
75
|
}
|
|
@@ -104,3 +101,9 @@ export interface ListMultiCommunitiesI extends ListMultiCommunities {
|
|
|
104
101
|
}
|
|
105
102
|
export interface GetMultiCommunityI extends GetMultiCommunity {
|
|
106
103
|
}
|
|
104
|
+
export interface GetFederatedInstancesI extends GetFederatedInstances {
|
|
105
|
+
}
|
|
106
|
+
export interface SearchI extends Search {
|
|
107
|
+
}
|
|
108
|
+
export interface ListInvitationsI extends ListInvitations {
|
|
109
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const EMPTY_REQUEST: {
|
|
2
|
+
readonly state: "empty";
|
|
3
|
+
};
|
|
4
|
+
export type EmptyRequestState = {
|
|
5
|
+
state: "empty";
|
|
6
|
+
};
|
|
7
|
+
export declare const LOADING_REQUEST: {
|
|
8
|
+
readonly state: "loading";
|
|
9
|
+
};
|
|
10
|
+
export type LoadingRequestState = {
|
|
11
|
+
state: "loading";
|
|
12
|
+
};
|
|
13
|
+
export type FailedRequestState = {
|
|
14
|
+
state: "failed";
|
|
15
|
+
err: Error;
|
|
16
|
+
};
|
|
17
|
+
export type SuccessRequestState<T> = {
|
|
18
|
+
state: "success";
|
|
19
|
+
data: T;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Shows the state of an API request.
|
|
23
|
+
*
|
|
24
|
+
* Can be empty, loading, failed, or success
|
|
25
|
+
*/
|
|
26
|
+
export type RequestState<T> = EmptyRequestState | LoadingRequestState | FailedRequestState | SuccessRequestState<T>;
|
|
@@ -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
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { LocalUserSortType } from "./LocalUserSortType";
|
|
1
2
|
import type { PaginationCursor } from "./PaginationCursor";
|
|
2
3
|
export type AdminListUsers = {
|
|
3
4
|
banned_only?: boolean;
|
|
4
5
|
page_cursor?: PaginationCursor;
|
|
5
|
-
|
|
6
|
+
sort?: LocalUserSortType;
|
|
6
7
|
limit?: number;
|
|
7
8
|
};
|
|
@@ -2,7 +2,7 @@ import type { OAuthProviderId } from "./OAuthProviderId";
|
|
|
2
2
|
/**
|
|
3
3
|
* oauth provider with client_secret - should never be sent to the client
|
|
4
4
|
*/
|
|
5
|
-
export type
|
|
5
|
+
export type AdminOAuthProvider = {
|
|
6
6
|
id: OAuthProviderId;
|
|
7
7
|
/**
|
|
8
8
|
* The OAuth 2.0 provider name displayed to the user on the Login page
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AllLemmyErrors: string[];
|