lemmy-js-client 1.0.0-media-fixes.1 → 1.0.0-mod-reason-mandatory.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 +102 -41
- package/dist/http.js +277 -81
- package/dist/index.d.ts +60 -34
- package/dist/other_types.d.ts +22 -4
- package/dist/types/AdminAdd.d.ts +12 -0
- package/dist/types/AdminAddId.d.ts +1 -0
- package/dist/types/{ModAddView.d.ts → AdminAddView.d.ts} +3 -3
- package/dist/types/AdminAllowInstance.d.ts +2 -2
- package/dist/types/AdminAllowInstanceParams.d.ts +1 -1
- package/dist/types/{ModBan.d.ts → AdminBan.d.ts} +6 -6
- package/dist/types/AdminBanId.d.ts +1 -0
- package/dist/types/{ModBanView.d.ts → AdminBanView.d.ts} +3 -3
- package/dist/types/AdminBlockInstance.d.ts +3 -3
- package/dist/types/AdminBlockInstanceParams.d.ts +2 -2
- package/dist/types/AdminListUsers.d.ts +7 -0
- package/dist/types/{BannedPersonsResponse.d.ts → AdminListUsersResponse.d.ts} +4 -6
- package/dist/types/AdminPurgeComment.d.ts +2 -2
- package/dist/types/AdminPurgeCommunity.d.ts +2 -2
- package/dist/types/AdminPurgePerson.d.ts +2 -2
- package/dist/types/AdminPurgePost.d.ts +2 -2
- package/dist/types/{ModRemoveCommunity.d.ts → AdminRemoveCommunity.d.ts} +5 -5
- package/dist/types/AdminRemoveCommunityId.d.ts +1 -0
- package/dist/types/AdminRemoveCommunityView.d.ts +11 -0
- package/dist/types/BanFromCommunity.d.ts +2 -2
- package/dist/types/BanPerson.d.ts +2 -2
- package/dist/types/Comment.d.ts +6 -2
- package/dist/types/CommentActions.d.ts +2 -6
- package/dist/types/CommentActions.js +1 -0
- package/dist/types/CommentReport.d.ts +2 -2
- package/dist/types/CommentReportView.d.ts +3 -1
- package/dist/types/CommentResponse.d.ts +0 -2
- package/dist/types/CommentSlimView.d.ts +2 -6
- package/dist/types/CommentView.d.ts +4 -5
- package/dist/types/Community.d.ts +2 -2
- package/dist/types/CommunityActions.d.ts +7 -13
- package/dist/types/CommunityIdQuery.d.ts +8 -0
- package/dist/types/CommunityNotificationsMode.d.ts +4 -0
- package/dist/types/CommunityReport.d.ts +2 -2
- package/dist/types/CommunityReportView.d.ts +4 -0
- package/dist/types/CommunityView.d.ts +0 -2
- package/dist/types/CreateCommunityTag.d.ts +3 -1
- package/dist/types/CreateMultiCommunity.d.ts +5 -0
- package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
- package/dist/types/CreatePost.d.ts +1 -1
- package/dist/types/CreateSite.d.ts +17 -14
- package/dist/types/CustomEmoji.d.ts +2 -2
- package/dist/types/EditPost.d.ts +1 -1
- package/dist/types/EditSite.d.ts +30 -20
- package/dist/types/ExportDataResponse.d.ts +13 -0
- package/dist/types/FederationBlockList.d.ts +3 -3
- package/dist/types/FederationError.d.ts +4 -2
- package/dist/types/FollowMultiCommunity.d.ts +5 -0
- package/dist/types/GetComments.d.ts +3 -3
- package/dist/types/GetCommentsResponse.d.ts +3 -0
- package/dist/types/GetCommentsSlimResponse.d.ts +3 -0
- package/dist/types/GetModlog.d.ts +1 -0
- package/dist/types/GetModlogResponse.d.ts +1 -0
- package/dist/types/GetMultiCommunity.d.ts +4 -0
- package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
- package/dist/types/GetPosts.d.ts +5 -11
- package/dist/types/GetPostsResponse.d.ts +3 -2
- package/dist/types/HideCommunity.d.ts +1 -1
- package/dist/types/Instance.d.ts +4 -3
- package/dist/types/InstanceActions.d.ts +8 -8
- package/dist/types/InstanceActions.js +1 -0
- package/dist/types/InstanceWithFederationState.d.ts +2 -2
- package/dist/types/LemmyErrorType.d.ts +29 -81
- package/dist/types/LikeType.d.ts +4 -0
- package/dist/types/LinkMetadata.d.ts +4 -0
- package/dist/types/ListCommentLikes.d.ts +3 -1
- package/dist/types/ListCommentLikesResponse.d.ts +6 -0
- package/dist/types/ListCommunities.d.ts +3 -1
- package/dist/types/ListCommunitiesResponse.d.ts +6 -0
- package/dist/types/ListCommunityPendingFollows.d.ts +3 -1
- package/dist/types/ListCommunityPendingFollows.js +0 -1
- package/dist/types/ListCommunityPendingFollowsResponse.d.ts +6 -0
- package/dist/types/ListCustomEmojis.d.ts +0 -3
- package/dist/types/ListMedia.d.ts +3 -1
- package/dist/types/ListMedia.js +0 -1
- package/dist/types/ListMediaResponse.d.ts +6 -0
- package/dist/types/ListMultiCommunities.d.ts +5 -0
- package/dist/types/ListMultiCommunitiesResponse.d.ts +4 -0
- package/dist/types/{ListInbox.d.ts → ListNotifications.d.ts} +4 -3
- package/dist/types/{ListInboxResponse.d.ts → ListNotificationsResponse.d.ts} +4 -3
- package/dist/types/ListPersonContent.d.ts +1 -0
- package/dist/types/ListPersonContentResponse.d.ts +1 -0
- package/dist/types/{ListBannedPersons.d.ts → ListPersonHidden.d.ts} +2 -2
- package/dist/types/ListPersonHiddenResponse.d.ts +13 -0
- package/dist/types/ListPersonLiked.d.ts +13 -0
- package/dist/types/ListPersonLikedResponse.d.ts +13 -0
- package/dist/types/ListPersonRead.d.ts +9 -0
- package/dist/types/ListPersonReadResponse.d.ts +13 -0
- package/dist/types/ListPersonSaved.d.ts +1 -0
- package/dist/types/ListPersonSavedResponse.d.ts +1 -0
- package/dist/types/ListPostLikes.d.ts +3 -1
- package/dist/types/ListPostLikesResponse.d.ts +6 -0
- package/dist/types/ListRegistrationApplications.d.ts +3 -1
- package/dist/types/ListRegistrationApplications.js +0 -1
- package/dist/types/ListRegistrationApplicationsResponse.d.ts +6 -0
- package/dist/types/ListReports.d.ts +1 -0
- package/dist/types/ListReportsResponse.d.ts +1 -0
- package/dist/types/ListTaglines.d.ts +3 -1
- package/dist/types/ListTaglines.js +0 -1
- package/dist/types/ListTaglinesResponse.d.ts +6 -0
- package/dist/types/ListingType.d.ts +1 -1
- package/dist/types/LocalImage.d.ts +8 -3
- package/dist/types/LocalImageView.d.ts +2 -0
- package/dist/types/LocalSite.d.ts +11 -10
- package/dist/types/LocalSiteRateLimit.d.ts +16 -16
- package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
- package/dist/types/LocalUser.d.ts +13 -10
- package/dist/types/LocalUserView.d.ts +2 -2
- package/dist/types/LockComment.d.ts +9 -0
- package/dist/types/LockPost.d.ts +1 -0
- package/dist/types/Login.d.ts +3 -0
- package/dist/types/LoginToken.d.ts +1 -1
- package/dist/types/MarkNotificationAsRead.d.ts +8 -0
- package/dist/types/MarkNotificationAsRead.js +2 -0
- package/dist/types/{ModAddCommunity.d.ts → ModAddToCommunity.d.ts} +4 -4
- package/dist/types/ModAddToCommunity.js +2 -0
- package/dist/types/ModAddToCommunityId.d.ts +1 -0
- package/dist/types/{ModAddCommunityView.d.ts → ModAddToCommunityView.d.ts} +3 -3
- package/dist/types/ModAddToCommunityView.js +2 -0
- package/dist/types/ModBanFromCommunity.d.ts +3 -3
- package/dist/types/ModChangeCommunityVisibility.d.ts +1 -2
- package/dist/types/ModEditPost.d.ts +10 -0
- package/dist/types/ModEditPost.js +2 -0
- package/dist/types/ModFeaturePost.d.ts +1 -1
- package/dist/types/ModLockComment.d.ts +14 -0
- package/dist/types/ModLockComment.js +2 -0
- package/dist/types/ModLockCommentId.d.ts +1 -0
- package/dist/types/ModLockCommentView.d.ts +16 -0
- package/dist/types/ModLockCommentView.js +2 -0
- package/dist/types/ModLockPost.d.ts +2 -1
- package/dist/types/ModRemoveComment.d.ts +2 -2
- package/dist/types/ModRemovePost.d.ts +2 -2
- package/dist/types/ModTransferCommunity.d.ts +1 -1
- package/dist/types/ModlogActionType.d.ts +1 -1
- package/dist/types/ModlogCombinedView.d.ts +16 -13
- package/dist/types/MultiCommunity.d.ts +17 -0
- package/dist/types/MultiCommunity.js +2 -0
- package/dist/types/MultiCommunityFollow.d.ts +8 -0
- package/dist/types/MultiCommunityFollow.js +2 -0
- package/dist/types/MultiCommunityId.d.ts +1 -0
- package/dist/types/MultiCommunityView.d.ts +6 -0
- package/dist/types/MultiCommunityView.js +2 -0
- package/dist/types/MyUserInfo.d.ts +3 -1
- package/dist/types/NotePerson.d.ts +10 -0
- package/dist/types/NotePerson.js +2 -0
- package/dist/types/Notification.d.ts +16 -0
- package/dist/types/Notification.js +2 -0
- package/dist/types/NotificationData.d.ts +10 -0
- package/dist/types/NotificationData.js +2 -0
- package/dist/types/NotificationDataType.d.ts +4 -0
- package/dist/types/NotificationDataType.js +3 -0
- package/dist/types/NotificationId.d.ts +1 -0
- package/dist/types/NotificationId.js +3 -0
- package/dist/types/NotificationTypes.d.ts +4 -0
- package/dist/types/NotificationTypes.js +3 -0
- package/dist/types/NotificationView.d.ts +6 -0
- package/dist/types/NotificationView.js +2 -0
- package/dist/types/OAuthAccount.d.ts +2 -2
- package/dist/types/OAuthProvider.d.ts +2 -2
- package/dist/types/OpenGraphData.d.ts +4 -0
- package/dist/types/Person.d.ts +2 -2
- package/dist/types/PersonActions.d.ts +21 -4
- package/dist/types/PersonActions.js +1 -0
- package/dist/types/PersonLikedCombinedView.d.ts +7 -0
- package/dist/types/PersonLikedCombinedView.js +2 -0
- package/dist/types/PersonView.d.ts +4 -4
- package/dist/types/Post.d.ts +6 -4
- package/dist/types/PostActions.d.ts +7 -9
- package/dist/types/PostNotificationsMode.d.ts +4 -0
- package/dist/types/PostNotificationsMode.js +3 -0
- package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
- package/dist/types/PostOrCommentOrPrivateMessage.js +2 -0
- package/dist/types/PostReport.d.ts +2 -2
- package/dist/types/PostReportView.d.ts +3 -1
- package/dist/types/PostView.d.ts +4 -5
- package/dist/types/PrivateMessage.d.ts +2 -3
- package/dist/types/PrivateMessageReport.d.ts +2 -2
- package/dist/types/PrivateMessageReportView.d.ts +2 -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 +2 -2
- package/dist/types/RegistrationApplication.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/SaveUserSettings.d.ts +12 -2
- package/dist/types/Search.d.ts +6 -1
- package/dist/types/SearchCombinedView.d.ts +4 -1
- package/dist/types/SearchResponse.d.ts +1 -0
- package/dist/types/SearchType.d.ts +1 -1
- package/dist/types/Site.d.ts +4 -3
- package/dist/types/SiteResponse.d.ts +0 -4
- package/dist/types/Tag.d.ts +8 -16
- package/dist/types/Tagline.d.ts +4 -3
- package/dist/types/Tagline.js +0 -1
- package/dist/types/TagsView.d.ts +1 -1
- package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
- package/dist/types/UpdateCommunityNotifications.js +2 -0
- package/dist/types/UpdateCommunityTag.d.ts +3 -2
- package/dist/types/UpdateMultiCommunity.d.ts +7 -0
- package/dist/types/UpdateMultiCommunity.js +2 -0
- package/dist/types/UpdatePostNotifications.d.ts +9 -0
- package/dist/types/UpdatePostNotifications.js +2 -0
- package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
- package/dist/types/UserBlockInstanceCommunitiesParams.js +2 -0
- package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
- package/dist/types/UserBlockInstancePersonsParams.js +2 -0
- package/dist/types/UserSettingsBackup.d.ts +27 -0
- package/dist/types/UserSettingsBackup.js +2 -0
- package/dist/types/VoteShow.d.ts +4 -0
- package/dist/types/VoteShow.js +3 -0
- package/dist/types/VoteView.d.ts +1 -0
- package/package.json +7 -6
- package/dist/types/CommentReply.d.ts +0 -13
- package/dist/types/CommentReplyId.d.ts +0 -4
- package/dist/types/CommentReplyView.d.ts +0 -32
- package/dist/types/InboxCombinedView.d.ts +0 -13
- package/dist/types/InboxDataType.d.ts +0 -4
- package/dist/types/MarkCommentReplyAsRead.d.ts +0 -8
- package/dist/types/MarkPersonCommentMentionAsRead.d.ts +0 -8
- package/dist/types/MarkPersonPostMentionAsRead.d.ts +0 -8
- package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -8
- package/dist/types/ModAdd.d.ts +0 -12
- package/dist/types/ModAddCommunityId.d.ts +0 -1
- package/dist/types/ModAddId.d.ts +0 -1
- package/dist/types/ModBanId.d.ts +0 -1
- package/dist/types/ModRemoveCommunityId.d.ts +0 -1
- package/dist/types/ModRemoveCommunityView.d.ts +0 -11
- package/dist/types/PersonCommentMention.d.ts +0 -13
- package/dist/types/PersonCommentMentionId.d.ts +0 -4
- package/dist/types/PersonCommentMentionView.d.ts +0 -30
- package/dist/types/PersonPostMention.d.ts +0 -13
- package/dist/types/PersonPostMentionId.d.ts +0 -4
- package/dist/types/PersonPostMentionView.d.ts +0 -32
- package/dist/types/PostPaginationCursor.d.ts +0 -7
- package/dist/types/ResolveObjectResponse.d.ts +0 -13
- /package/dist/types/{BannedPersonsResponse.js → AdminAdd.js} +0 -0
- /package/dist/types/{CommentReplyId.js → AdminAddId.js} +0 -0
- /package/dist/types/{CommentReply.js → AdminAddView.js} +0 -0
- /package/dist/types/{CommentReplyView.js → AdminBan.js} +0 -0
- /package/dist/types/{InboxDataType.js → AdminBanId.js} +0 -0
- /package/dist/types/{InboxCombinedView.js → AdminBanView.js} +0 -0
- /package/dist/types/{ListBannedPersons.js → AdminListUsers.js} +0 -0
- /package/dist/types/{ListInbox.js → AdminListUsersResponse.js} +0 -0
- /package/dist/types/{ListInboxResponse.js → AdminRemoveCommunity.js} +0 -0
- /package/dist/types/{ModAddCommunityId.js → AdminRemoveCommunityId.js} +0 -0
- /package/dist/types/{MarkCommentReplyAsRead.js → AdminRemoveCommunityView.js} +0 -0
- /package/dist/types/{MarkPersonCommentMentionAsRead.js → CommunityIdQuery.js} +0 -0
- /package/dist/types/{ModAddId.js → CommunityNotificationsMode.js} +0 -0
- /package/dist/types/{ModBanId.js → CreateMultiCommunity.js} +0 -0
- /package/dist/types/{MarkPersonPostMentionAsRead.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
- /package/dist/types/{MarkPrivateMessageAsRead.js → ExportDataResponse.js} +0 -0
- /package/dist/types/{ModAdd.js → FollowMultiCommunity.js} +0 -0
- /package/dist/types/{ModAddCommunity.js → GetMultiCommunity.js} +0 -0
- /package/dist/types/{ModAddCommunityView.js → GetMultiCommunityResponse.js} +0 -0
- /package/dist/types/{ModRemoveCommunityId.js → LikeType.js} +0 -0
- /package/dist/types/{ModAddView.js → ListMultiCommunities.js} +0 -0
- /package/dist/types/{ModBan.js → ListMultiCommunitiesResponse.js} +0 -0
- /package/dist/types/{ModBanView.js → ListNotifications.js} +0 -0
- /package/dist/types/{ModRemoveCommunity.js → ListNotificationsResponse.js} +0 -0
- /package/dist/types/{ModRemoveCommunityView.js → ListPersonHidden.js} +0 -0
- /package/dist/types/{PersonCommentMention.js → ListPersonHiddenResponse.js} +0 -0
- /package/dist/types/{PersonCommentMentionView.js → ListPersonLiked.js} +0 -0
- /package/dist/types/{PersonPostMention.js → ListPersonLikedResponse.js} +0 -0
- /package/dist/types/{PersonPostMentionView.js → ListPersonRead.js} +0 -0
- /package/dist/types/{ResolveObjectResponse.js → ListPersonReadResponse.js} +0 -0
- /package/dist/types/{UserBlockInstanceParams.js → LockComment.js} +0 -0
- /package/dist/types/{PersonCommentMentionId.js → ModAddToCommunityId.js} +0 -0
- /package/dist/types/{PersonPostMentionId.js → ModLockCommentId.js} +0 -0
- /package/dist/types/{PostPaginationCursor.js → MultiCommunityId.js} +0 -0
package/README.md
CHANGED
|
@@ -52,6 +52,12 @@ Use `pnpm add` to develop and test changes locally:
|
|
|
52
52
|
|
|
53
53
|
`pnpm add path/to/lemmy-js-client`
|
|
54
54
|
|
|
55
|
+
Alternatively, use `yalc publish` and `yalc add lemmy-js-client`
|
|
56
|
+
|
|
57
|
+
## Generating typescript types from lemmy structs
|
|
58
|
+
|
|
59
|
+
Run `./scripts/copy_generated_types_from_lemmy.sh`
|
|
60
|
+
|
|
55
61
|
## OpenAPI
|
|
56
62
|
|
|
57
63
|
To generate OpenAPI docs, run `pnpm tsoa`
|
package/dist/http.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Controller } from "@tsoa/runtime";
|
|
2
|
-
import { DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI,
|
|
2
|
+
import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetMultiCommunityI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListNotificationsI, ListMediaI, ListMultiCommunitiesI, ListPersonContentI, ListPersonHiddenI, ListPersonLikedI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
|
|
3
3
|
import { AddAdmin } from "./types/AddAdmin";
|
|
4
4
|
import { AddAdminResponse } from "./types/AddAdminResponse";
|
|
5
5
|
import { AddModToCommunity } from "./types/AddModToCommunity";
|
|
@@ -10,7 +10,6 @@ import { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
|
|
|
10
10
|
import { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
|
11
11
|
import { BanPerson } from "./types/BanPerson";
|
|
12
12
|
import { BanPersonResponse } from "./types/BanPersonResponse";
|
|
13
|
-
import { BannedPersonsResponse } from "./types/BannedPersonsResponse";
|
|
14
13
|
import { BlockCommunity } from "./types/BlockCommunity";
|
|
15
14
|
import { BlockCommunityResponse } from "./types/BlockCommunityResponse";
|
|
16
15
|
import { BlockPerson } from "./types/BlockPerson";
|
|
@@ -18,12 +17,15 @@ import { BlockPersonResponse } from "./types/BlockPersonResponse";
|
|
|
18
17
|
import { ChangePassword } from "./types/ChangePassword";
|
|
19
18
|
import { CommentReportResponse } from "./types/CommentReportResponse";
|
|
20
19
|
import { CommentResponse } from "./types/CommentResponse";
|
|
20
|
+
import { CommunityReportResponse } from "./types/CommunityReportResponse";
|
|
21
21
|
import { CommunityResponse } from "./types/CommunityResponse";
|
|
22
22
|
import { CreateComment } from "./types/CreateComment";
|
|
23
23
|
import { CreateCommentLike } from "./types/CreateCommentLike";
|
|
24
24
|
import { CreateCommentReport } from "./types/CreateCommentReport";
|
|
25
25
|
import { CreateCommunity } from "./types/CreateCommunity";
|
|
26
|
+
import { CreateCommunityReport } from "./types/CreateCommunityReport";
|
|
26
27
|
import { CreateCommunityTag } from "./types/CreateCommunityTag";
|
|
28
|
+
import { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
|
27
29
|
import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
|
28
30
|
import { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
|
29
31
|
import { CreatePost } from "./types/CreatePost";
|
|
@@ -68,11 +70,10 @@ import { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnread
|
|
|
68
70
|
import { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
|
|
69
71
|
import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
|
|
70
72
|
import { LockPost } from "./types/LockPost";
|
|
73
|
+
import { LockComment } from "./types/LockComment";
|
|
71
74
|
import { Login } from "./types/Login";
|
|
72
75
|
import { LoginResponse } from "./types/LoginResponse";
|
|
73
|
-
import { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
|
74
76
|
import { MarkPostAsRead } from "./types/MarkPostAsRead";
|
|
75
|
-
import { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
|
|
76
77
|
import { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
|
77
78
|
import { PasswordReset } from "./types/PasswordReset";
|
|
78
79
|
import { PostReportResponse } from "./types/PostReportResponse";
|
|
@@ -89,7 +90,7 @@ import { RemoveComment } from "./types/RemoveComment";
|
|
|
89
90
|
import { RemoveCommunity } from "./types/RemoveCommunity";
|
|
90
91
|
import { RemovePost } from "./types/RemovePost";
|
|
91
92
|
import { ResolveCommentReport } from "./types/ResolveCommentReport";
|
|
92
|
-
import {
|
|
93
|
+
import { ResolveCommunityReport } from "./types/ResolveCommunityReport";
|
|
93
94
|
import { ResolvePostReport } from "./types/ResolvePostReport";
|
|
94
95
|
import { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
|
|
95
96
|
import { SaveComment } from "./types/SaveComment";
|
|
@@ -98,14 +99,12 @@ import { SaveUserSettings } from "./types/SaveUserSettings";
|
|
|
98
99
|
import { SearchResponse } from "./types/SearchResponse";
|
|
99
100
|
import { SiteResponse } from "./types/SiteResponse";
|
|
100
101
|
import { TransferCommunity } from "./types/TransferCommunity";
|
|
101
|
-
import { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
|
102
102
|
import { VerifyEmail } from "./types/VerifyEmail";
|
|
103
103
|
import { HideCommunity } from "./types/HideCommunity";
|
|
104
104
|
import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
|
105
105
|
import { UpdateTotp } from "./types/UpdateTotp";
|
|
106
106
|
import { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
|
107
107
|
import { SuccessResponse } from "./types/SuccessResponse";
|
|
108
|
-
import { LoginToken } from "./types/LoginToken";
|
|
109
108
|
import { ListPostLikesResponse } from "./types/ListPostLikesResponse";
|
|
110
109
|
import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
|
111
110
|
import { HidePost } from "./types/HidePost";
|
|
@@ -122,18 +121,34 @@ import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPen
|
|
|
122
121
|
import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
|
|
123
122
|
import { ListReportsResponse } from "./types/ListReportsResponse";
|
|
124
123
|
import { MyUserInfo } from "./types/MyUserInfo";
|
|
125
|
-
import { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
|
|
126
124
|
import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
|
|
127
125
|
import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
|
128
126
|
import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
|
129
127
|
import { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
|
|
130
128
|
import { UploadImageResponse } from "./types/UploadImageResponse";
|
|
131
|
-
import { ListInboxResponse } from "./types/ListInboxResponse";
|
|
132
|
-
import { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
|
|
133
|
-
import { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
|
|
134
129
|
import { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
|
|
135
130
|
import { Tag } from "./types/Tag";
|
|
136
131
|
import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
|
132
|
+
import { ListPersonReadResponse } from "./types/ListPersonReadResponse";
|
|
133
|
+
import { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
|
|
134
|
+
import { CommunityIdQuery } from "./types/CommunityIdQuery";
|
|
135
|
+
import { CreateMultiCommunity } from "./types/CreateMultiCommunity";
|
|
136
|
+
import { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
|
137
|
+
import { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
|
|
138
|
+
import { AdminListUsersResponse } from "./types/AdminListUsersResponse";
|
|
139
|
+
import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
|
|
140
|
+
import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
|
|
141
|
+
import { FollowMultiCommunity } from "./types/FollowMultiCommunity";
|
|
142
|
+
import { ListLoginsResponse } from "./types/ListLoginsResponse";
|
|
143
|
+
import { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
|
|
144
|
+
import { NotePerson } from "./types/NotePerson";
|
|
145
|
+
import { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
|
|
146
|
+
import { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
|
|
147
|
+
import { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
|
148
|
+
import { ListNotificationsResponse } from "./types/ListNotificationsResponse";
|
|
149
|
+
import { ModEditPost } from "./types/ModEditPost";
|
|
150
|
+
import { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
|
|
151
|
+
import { UpdatePostNotifications } from "./types/UpdatePostNotifications";
|
|
137
152
|
type RequestOptions = Pick<RequestInit, "signal">;
|
|
138
153
|
/**
|
|
139
154
|
* Helps build lemmy HTTP requests.
|
|
@@ -192,7 +207,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
192
207
|
/**
|
|
193
208
|
* @summary List login tokens for your user
|
|
194
209
|
*/
|
|
195
|
-
listLogins(options?: RequestOptions): Promise<
|
|
210
|
+
listLogins(options?: RequestOptions): Promise<ListLoginsResponse>;
|
|
196
211
|
/**
|
|
197
212
|
* @summary Returns an error message if your auth token is invalid
|
|
198
213
|
*/
|
|
@@ -226,13 +241,13 @@ export declare class LemmyHttp extends Controller {
|
|
|
226
241
|
*/
|
|
227
242
|
getModlog(form?: GetModlogI, options?: RequestOptions): Promise<GetModlogResponse>;
|
|
228
243
|
/**
|
|
229
|
-
* @summary Search lemmy.
|
|
244
|
+
* @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
|
|
230
245
|
*/
|
|
231
246
|
search(form: SearchI, options?: RequestOptions): Promise<SearchResponse>;
|
|
232
247
|
/**
|
|
233
248
|
* @summary Fetch a non-local / federated object.
|
|
234
249
|
*/
|
|
235
|
-
resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<
|
|
250
|
+
resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<SearchResponse>;
|
|
236
251
|
/**
|
|
237
252
|
* @summary Create a new community.
|
|
238
253
|
*/
|
|
@@ -297,6 +312,14 @@ export declare class LemmyHttp extends Controller {
|
|
|
297
312
|
* @summary Get a random community.
|
|
298
313
|
*/
|
|
299
314
|
getRandomCommunity(form: GetRandomCommunityI, options?: RequestOptions): Promise<CommunityResponse>;
|
|
315
|
+
/**
|
|
316
|
+
* @summary Create a report for a community.
|
|
317
|
+
*/
|
|
318
|
+
createCommunityReport(form: CreateCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
|
|
319
|
+
/**
|
|
320
|
+
* @summary Resolve a report for a private message.
|
|
321
|
+
*/
|
|
322
|
+
resolveCommunityReport(form: ResolveCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
|
|
300
323
|
/**
|
|
301
324
|
* @summary Create a post.
|
|
302
325
|
*/
|
|
@@ -309,6 +332,10 @@ export declare class LemmyHttp extends Controller {
|
|
|
309
332
|
* @summary Edit a post.
|
|
310
333
|
*/
|
|
311
334
|
editPost(form: EditPost, options?: RequestOptions): Promise<PostResponse>;
|
|
335
|
+
/**
|
|
336
|
+
* @summary Mods can change nsfw flag and tags for a post
|
|
337
|
+
*/
|
|
338
|
+
modEditPost(form: ModEditPost, options?: RequestOptions): Promise<PostResponse>;
|
|
312
339
|
/**
|
|
313
340
|
* @summary Delete a post.
|
|
314
341
|
*/
|
|
@@ -320,7 +347,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
320
347
|
/**
|
|
321
348
|
* @summary Mark a post as read.
|
|
322
349
|
*/
|
|
323
|
-
markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<
|
|
350
|
+
markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<PostResponse>;
|
|
324
351
|
/**
|
|
325
352
|
* @summary Mark multiple posts as read.
|
|
326
353
|
*/
|
|
@@ -382,11 +409,11 @@ export declare class LemmyHttp extends Controller {
|
|
|
382
409
|
*/
|
|
383
410
|
removeComment(form: RemoveComment, options?: RequestOptions): Promise<CommentResponse>;
|
|
384
411
|
/**
|
|
385
|
-
* @summary
|
|
412
|
+
* @summary A moderator can lock a comment (IE disable replies).
|
|
386
413
|
*/
|
|
387
|
-
|
|
414
|
+
lockComment(form: LockComment, options?: RequestOptions): Promise<CommentResponse>;
|
|
388
415
|
/**
|
|
389
|
-
* @
|
|
416
|
+
* @Summary Like / vote on a comment.
|
|
390
417
|
*/
|
|
391
418
|
likeComment(form: CreateCommentLike, options?: RequestOptions): Promise<CommentResponse>;
|
|
392
419
|
/**
|
|
@@ -433,10 +460,6 @@ export declare class LemmyHttp extends Controller {
|
|
|
433
460
|
* @summary Delete a private message.
|
|
434
461
|
*/
|
|
435
462
|
deletePrivateMessage(form: DeletePrivateMessage, options?: RequestOptions): Promise<PrivateMessageResponse>;
|
|
436
|
-
/**
|
|
437
|
-
* @summary Mark a private message as read.
|
|
438
|
-
*/
|
|
439
|
-
markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
|
440
463
|
/**
|
|
441
464
|
* @summary Create a report for a private message.
|
|
442
465
|
*/
|
|
@@ -466,21 +489,17 @@ export declare class LemmyHttp extends Controller {
|
|
|
466
489
|
*/
|
|
467
490
|
listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<ListPersonContentResponse>;
|
|
468
491
|
/**
|
|
469
|
-
* @summary
|
|
470
|
-
*/
|
|
471
|
-
markCommentMentionAsRead(form: MarkPersonCommentMentionAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
|
472
|
-
/**
|
|
473
|
-
* @summary Mark a person post body mention as read.
|
|
492
|
+
* @summary Make a note for a person.
|
|
474
493
|
*/
|
|
475
|
-
|
|
494
|
+
notePerson(form: NotePerson, options?: RequestOptions): Promise<SuccessResponse>;
|
|
476
495
|
/**
|
|
477
496
|
* @summary Ban a person from your site.
|
|
478
497
|
*/
|
|
479
498
|
banPerson(form: BanPerson, options?: RequestOptions): Promise<BanPersonResponse>;
|
|
480
499
|
/**
|
|
481
|
-
* @summary Get a list of
|
|
500
|
+
* @summary Get a list of users.
|
|
482
501
|
*/
|
|
483
|
-
|
|
502
|
+
listUsers(form?: AdminListUsersI, options?: RequestOptions): Promise<AdminListUsersResponse>;
|
|
484
503
|
/**
|
|
485
504
|
* @summary Block a person.
|
|
486
505
|
*/
|
|
@@ -505,6 +524,10 @@ export declare class LemmyHttp extends Controller {
|
|
|
505
524
|
* @summary Mark all replies as read.
|
|
506
525
|
*/
|
|
507
526
|
markAllNotificationsAsRead(options?: RequestOptions): Promise<SuccessResponse>;
|
|
527
|
+
/**
|
|
528
|
+
* @summary Mark a comment as read.
|
|
529
|
+
*/
|
|
530
|
+
markNotificationAsRead(form: MarkNotificationAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
|
508
531
|
/**
|
|
509
532
|
* @summary Save your user settings.
|
|
510
533
|
*/
|
|
@@ -524,7 +547,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
524
547
|
/**
|
|
525
548
|
* @summary Get your inbox (replies, comment mentions, post mentions, and messages)
|
|
526
549
|
*/
|
|
527
|
-
|
|
550
|
+
listNotifications(form: ListNotificationsI, options?: RequestOptions): Promise<ListNotificationsResponse>;
|
|
528
551
|
/**
|
|
529
552
|
* @summary Verify your email
|
|
530
553
|
*/
|
|
@@ -537,6 +560,18 @@ export declare class LemmyHttp extends Controller {
|
|
|
537
560
|
* @summary List your saved content.
|
|
538
561
|
*/
|
|
539
562
|
listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<ListPersonSavedResponse>;
|
|
563
|
+
/**
|
|
564
|
+
* @summary List your read content.
|
|
565
|
+
*/
|
|
566
|
+
listPersonRead(form: ListPersonReadI, options?: RequestOptions): Promise<ListPersonReadResponse>;
|
|
567
|
+
/**
|
|
568
|
+
* @summary List your hidden content.
|
|
569
|
+
*/
|
|
570
|
+
listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<ListPersonHiddenResponse>;
|
|
571
|
+
/**
|
|
572
|
+
* @summary List your liked content.
|
|
573
|
+
*/
|
|
574
|
+
listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise<ListPersonLikedResponse>;
|
|
540
575
|
/**
|
|
541
576
|
* @summary Add an admin to your site.
|
|
542
577
|
*/
|
|
@@ -610,7 +645,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
610
645
|
*/
|
|
611
646
|
createCommunityTag(form: CreateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
|
612
647
|
/**
|
|
613
|
-
* @summary
|
|
648
|
+
* @summary Edit a community post tag.
|
|
614
649
|
*/
|
|
615
650
|
updateCommunityTag(form: UpdateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
|
616
651
|
/**
|
|
@@ -642,9 +677,13 @@ export declare class LemmyHttp extends Controller {
|
|
|
642
677
|
*/
|
|
643
678
|
listReports(form: ListReportsI, options?: RequestOptions): Promise<ListReportsResponse>;
|
|
644
679
|
/**
|
|
645
|
-
* @summary Block an instance as user.
|
|
680
|
+
* @summary Block an instance's communities as a user.
|
|
681
|
+
*/
|
|
682
|
+
userBlockInstanceCommunities(form: UserBlockInstanceCommunitiesParams, options?: RequestOptions): Promise<SuccessResponse>;
|
|
683
|
+
/**
|
|
684
|
+
* @summary Block an instance's persons as a user.
|
|
646
685
|
*/
|
|
647
|
-
|
|
686
|
+
userBlockInstancePersons(form: UserBlockInstancePersonsParams, options?: RequestOptions): Promise<SuccessResponse>;
|
|
648
687
|
/**
|
|
649
688
|
* @summary Globally block an instance as admin.
|
|
650
689
|
*/
|
|
@@ -672,19 +711,19 @@ export declare class LemmyHttp extends Controller {
|
|
|
672
711
|
/**
|
|
673
712
|
* @summary Upload new community icon.
|
|
674
713
|
*/
|
|
675
|
-
uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
714
|
+
uploadCommunityIcon(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
676
715
|
/**
|
|
677
716
|
* @summary Delete the community icon.
|
|
678
717
|
*/
|
|
679
|
-
deleteCommunityIcon(options?: RequestOptions): Promise<SuccessResponse>;
|
|
718
|
+
deleteCommunityIcon(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
|
|
680
719
|
/**
|
|
681
720
|
* @summary Upload new community banner.
|
|
682
721
|
*/
|
|
683
|
-
uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
722
|
+
uploadCommunityBanner(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
|
684
723
|
/**
|
|
685
724
|
* @summary Delete the community banner.
|
|
686
725
|
*/
|
|
687
|
-
deleteCommunityBanner(options?: RequestOptions): Promise<SuccessResponse>;
|
|
726
|
+
deleteCommunityBanner(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
|
|
688
727
|
/**
|
|
689
728
|
* @summary Upload new site icon.
|
|
690
729
|
*/
|
|
@@ -711,10 +750,23 @@ export declare class LemmyHttp extends Controller {
|
|
|
711
750
|
imageHealth(options?: RequestOptions): Promise<SuccessResponse>;
|
|
712
751
|
/**
|
|
713
752
|
* Mark donation dialog as shown, so it isn't displayed anymore.
|
|
714
|
-
*
|
|
715
|
-
* `HTTP.POST /user/donation_dialog_shown`
|
|
716
753
|
*/
|
|
717
|
-
|
|
754
|
+
donationDialogShown(options?: RequestOptions): Promise<SuccessResponse>;
|
|
755
|
+
createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
|
|
756
|
+
updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
|
|
757
|
+
getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
|
|
758
|
+
createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
|
|
759
|
+
deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
|
|
760
|
+
listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<ListMultiCommunitiesResponse>;
|
|
761
|
+
followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
|
|
762
|
+
/**
|
|
763
|
+
* @summary Change notification settings for a community
|
|
764
|
+
*/
|
|
765
|
+
updateCommunityNotifications(form: UpdateCommunityNotifications, options?: RequestOptions): Promise<SuccessResponse>;
|
|
766
|
+
/**
|
|
767
|
+
* @summary Change notification settings for a post
|
|
768
|
+
*/
|
|
769
|
+
updatePostNotifications(form: UpdatePostNotifications, options?: RequestOptions): Promise<SuccessResponse>;
|
|
718
770
|
/**
|
|
719
771
|
* Set the headers (can be used to set the auth header)
|
|
720
772
|
*/
|
|
@@ -722,4 +774,13 @@ export declare class LemmyHttp extends Controller {
|
|
|
722
774
|
[key: string]: string;
|
|
723
775
|
}): void;
|
|
724
776
|
}
|
|
777
|
+
/**
|
|
778
|
+
* A Lemmy error type.
|
|
779
|
+
*
|
|
780
|
+
* The name is the i18n translatable error code.
|
|
781
|
+
* The msg is either an empty string, or extra non-translatable info.
|
|
782
|
+
*/
|
|
783
|
+
export declare class LemmyError extends Error {
|
|
784
|
+
constructor(name: string, msg?: string);
|
|
785
|
+
}
|
|
725
786
|
export {};
|