lemmy-js-client 1.0.0-community-reports.0 → 1.0.0-community-post-notifs.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 +87 -37
- package/dist/http.js +241 -72
- package/dist/index.d.ts +44 -20
- package/dist/other_types.d.ts +22 -4
- package/dist/types/AdminAllowInstance.d.ts +1 -1
- package/dist/types/AdminBlockInstance.d.ts +2 -2
- package/dist/types/AdminBlockInstanceParams.d.ts +1 -1
- package/dist/types/AdminListUsers.d.ts +7 -0
- package/dist/types/AdminListUsersResponse.d.ts +10 -0
- package/dist/types/AdminPurgeComment.d.ts +1 -1
- package/dist/types/AdminPurgeCommunity.d.ts +1 -1
- package/dist/types/AdminPurgePerson.d.ts +1 -1
- package/dist/types/AdminPurgePost.d.ts +1 -1
- package/dist/types/BanFromCommunity.d.ts +1 -1
- package/dist/types/BanPerson.d.ts +1 -1
- package/dist/types/Comment.d.ts +2 -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 +2 -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 +16 -13
- package/dist/types/CustomEmoji.d.ts +2 -2
- package/dist/types/EditPost.d.ts +1 -1
- package/dist/types/EditSite.d.ts +22 -16
- package/dist/types/ExportDataResponse.d.ts +13 -0
- package/dist/types/FederationBlockList.d.ts +3 -3
- package/dist/types/FederationError.d.ts +3 -1
- package/dist/types/FollowMultiCommunity.d.ts +5 -0
- package/dist/types/GetComments.d.ts +0 -2
- package/dist/types/GetMultiCommunity.d.ts +4 -0
- package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
- package/dist/types/GetPosts.d.ts +2 -2
- 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 +13 -19
- package/dist/types/LikeType.d.ts +4 -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} +3 -3
- package/dist/types/{ListInboxResponse.d.ts → ListNotificationsResponse.d.ts} +3 -3
- package/dist/types/{ListBannedPersons.d.ts → ListPersonHidden.d.ts} +2 -2
- package/dist/types/{BannedPersonsResponse.d.ts → ListPersonHiddenResponse.d.ts} +4 -4
- 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/ListPersonRead.js +2 -0
- package/dist/types/ListPersonReadResponse.d.ts +13 -0
- package/dist/types/ListPersonReadResponse.js +2 -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 +6 -6
- package/dist/types/LocalSiteRateLimit.d.ts +16 -16
- package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
- package/dist/types/LocalUser.d.ts +4 -2
- package/dist/types/LocalUserView.d.ts +1 -2
- 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/ModAdd.d.ts +1 -1
- package/dist/types/ModAddCommunity.d.ts +1 -1
- package/dist/types/ModBan.d.ts +2 -2
- package/dist/types/ModBanFromCommunity.d.ts +2 -2
- 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/ModLockPost.d.ts +2 -1
- package/dist/types/ModRemoveComment.d.ts +1 -1
- package/dist/types/ModRemoveCommunity.d.ts +1 -1
- package/dist/types/ModRemovePost.d.ts +1 -1
- package/dist/types/ModTransferCommunity.d.ts +1 -1
- 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 +2 -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/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 +2 -3
- package/dist/types/Post.d.ts +4 -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 +2 -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/ReadableFederationState.d.ts +2 -2
- package/dist/types/RegistrationApplication.d.ts +1 -1
- package/dist/types/SaveUserSettings.d.ts +6 -1
- package/dist/types/Search.d.ts +5 -1
- package/dist/types/SearchCombinedView.d.ts +4 -1
- 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 +2 -2
- 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 +31 -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 -1
- 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/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/ResolveObjectResponse.d.ts +0 -13
- /package/dist/types/{BannedPersonsResponse.js → AdminListUsers.js} +0 -0
- /package/dist/types/{CommentReply.js → AdminListUsersResponse.js} +0 -0
- /package/dist/types/{CommentReplyView.js → CommunityIdQuery.js} +0 -0
- /package/dist/types/{CommentReplyId.js → CommunityNotificationsMode.js} +0 -0
- /package/dist/types/{InboxDataType.js → CreateMultiCommunity.js} +0 -0
- /package/dist/types/{InboxCombinedView.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
- /package/dist/types/{ListBannedPersons.js → ExportDataResponse.js} +0 -0
- /package/dist/types/{ListInbox.js → FollowMultiCommunity.js} +0 -0
- /package/dist/types/{ListInboxResponse.js → GetMultiCommunity.js} +0 -0
- /package/dist/types/{MarkCommentReplyAsRead.js → GetMultiCommunityResponse.js} +0 -0
- /package/dist/types/{PersonCommentMentionId.js → LikeType.js} +0 -0
- /package/dist/types/{MarkPersonCommentMentionAsRead.js → ListMultiCommunities.js} +0 -0
- /package/dist/types/{MarkPersonPostMentionAsRead.js → ListMultiCommunitiesResponse.js} +0 -0
- /package/dist/types/{PersonCommentMention.js → ListNotifications.js} +0 -0
- /package/dist/types/{PersonCommentMentionView.js → ListNotificationsResponse.js} +0 -0
- /package/dist/types/{PersonPostMention.js → ListPersonHidden.js} +0 -0
- /package/dist/types/{PersonPostMentionView.js → ListPersonHiddenResponse.js} +0 -0
- /package/dist/types/{ResolveObjectResponse.js → ListPersonLiked.js} +0 -0
- /package/dist/types/{UserBlockInstanceParams.js → ListPersonLikedResponse.js} +0 -0
- /package/dist/types/{PersonPostMentionId.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";
|
@@ -26,6 +25,7 @@ import { CreateCommentReport } from "./types/CreateCommentReport";
|
|
26
25
|
import { CreateCommunity } from "./types/CreateCommunity";
|
27
26
|
import { CreateCommunityReport } from "./types/CreateCommunityReport";
|
28
27
|
import { CreateCommunityTag } from "./types/CreateCommunityTag";
|
28
|
+
import { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
29
29
|
import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
30
30
|
import { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
31
31
|
import { CreatePost } from "./types/CreatePost";
|
@@ -72,7 +72,6 @@ import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationAp
|
|
72
72
|
import { LockPost } from "./types/LockPost";
|
73
73
|
import { Login } from "./types/Login";
|
74
74
|
import { LoginResponse } from "./types/LoginResponse";
|
75
|
-
import { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
76
75
|
import { MarkPostAsRead } from "./types/MarkPostAsRead";
|
77
76
|
import { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
|
78
77
|
import { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
@@ -92,7 +91,6 @@ import { RemoveCommunity } from "./types/RemoveCommunity";
|
|
92
91
|
import { RemovePost } from "./types/RemovePost";
|
93
92
|
import { ResolveCommentReport } from "./types/ResolveCommentReport";
|
94
93
|
import { ResolveCommunityReport } from "./types/ResolveCommunityReport";
|
95
|
-
import { ResolveObjectResponse } from "./types/ResolveObjectResponse";
|
96
94
|
import { ResolvePostReport } from "./types/ResolvePostReport";
|
97
95
|
import { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
|
98
96
|
import { SaveComment } from "./types/SaveComment";
|
@@ -101,14 +99,12 @@ import { SaveUserSettings } from "./types/SaveUserSettings";
|
|
101
99
|
import { SearchResponse } from "./types/SearchResponse";
|
102
100
|
import { SiteResponse } from "./types/SiteResponse";
|
103
101
|
import { TransferCommunity } from "./types/TransferCommunity";
|
104
|
-
import { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
105
102
|
import { VerifyEmail } from "./types/VerifyEmail";
|
106
103
|
import { HideCommunity } from "./types/HideCommunity";
|
107
104
|
import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
108
105
|
import { UpdateTotp } from "./types/UpdateTotp";
|
109
106
|
import { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
110
107
|
import { SuccessResponse } from "./types/SuccessResponse";
|
111
|
-
import { LoginToken } from "./types/LoginToken";
|
112
108
|
import { ListPostLikesResponse } from "./types/ListPostLikesResponse";
|
113
109
|
import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
114
110
|
import { HidePost } from "./types/HidePost";
|
@@ -125,18 +121,34 @@ import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPen
|
|
125
121
|
import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
|
126
122
|
import { ListReportsResponse } from "./types/ListReportsResponse";
|
127
123
|
import { MyUserInfo } from "./types/MyUserInfo";
|
128
|
-
import { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
|
129
124
|
import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
|
130
125
|
import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
131
126
|
import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
132
127
|
import { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
|
133
128
|
import { UploadImageResponse } from "./types/UploadImageResponse";
|
134
|
-
import { ListInboxResponse } from "./types/ListInboxResponse";
|
135
|
-
import { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
|
136
|
-
import { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
|
137
129
|
import { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
|
138
130
|
import { Tag } from "./types/Tag";
|
139
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";
|
140
152
|
type RequestOptions = Pick<RequestInit, "signal">;
|
141
153
|
/**
|
142
154
|
* Helps build lemmy HTTP requests.
|
@@ -195,7 +207,7 @@ export declare class LemmyHttp extends Controller {
|
|
195
207
|
/**
|
196
208
|
* @summary List login tokens for your user
|
197
209
|
*/
|
198
|
-
listLogins(options?: RequestOptions): Promise<
|
210
|
+
listLogins(options?: RequestOptions): Promise<ListLoginsResponse>;
|
199
211
|
/**
|
200
212
|
* @summary Returns an error message if your auth token is invalid
|
201
213
|
*/
|
@@ -229,13 +241,13 @@ export declare class LemmyHttp extends Controller {
|
|
229
241
|
*/
|
230
242
|
getModlog(form?: GetModlogI, options?: RequestOptions): Promise<GetModlogResponse>;
|
231
243
|
/**
|
232
|
-
* @summary Search lemmy.
|
244
|
+
* @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
|
233
245
|
*/
|
234
246
|
search(form: SearchI, options?: RequestOptions): Promise<SearchResponse>;
|
235
247
|
/**
|
236
248
|
* @summary Fetch a non-local / federated object.
|
237
249
|
*/
|
238
|
-
resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<
|
250
|
+
resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<SearchResponse>;
|
239
251
|
/**
|
240
252
|
* @summary Create a new community.
|
241
253
|
*/
|
@@ -320,6 +332,10 @@ export declare class LemmyHttp extends Controller {
|
|
320
332
|
* @summary Edit a post.
|
321
333
|
*/
|
322
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>;
|
323
339
|
/**
|
324
340
|
* @summary Delete a post.
|
325
341
|
*/
|
@@ -331,7 +347,7 @@ export declare class LemmyHttp extends Controller {
|
|
331
347
|
/**
|
332
348
|
* @summary Mark a post as read.
|
333
349
|
*/
|
334
|
-
markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<
|
350
|
+
markPostAsRead(form: MarkPostAsRead, options?: RequestOptions): Promise<PostResponse>;
|
335
351
|
/**
|
336
352
|
* @summary Mark multiple posts as read.
|
337
353
|
*/
|
@@ -392,10 +408,6 @@ export declare class LemmyHttp extends Controller {
|
|
392
408
|
* @summary A moderator remove for a comment.
|
393
409
|
*/
|
394
410
|
removeComment(form: RemoveComment, options?: RequestOptions): Promise<CommentResponse>;
|
395
|
-
/**
|
396
|
-
* @summary Mark a comment as read.
|
397
|
-
*/
|
398
|
-
markCommentReplyAsRead(form: MarkCommentReplyAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
399
411
|
/**
|
400
412
|
* @summary Like / vote on a comment.
|
401
413
|
*/
|
@@ -477,21 +489,17 @@ export declare class LemmyHttp extends Controller {
|
|
477
489
|
*/
|
478
490
|
listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<ListPersonContentResponse>;
|
479
491
|
/**
|
480
|
-
* @summary
|
492
|
+
* @summary Make a note for a person.
|
481
493
|
*/
|
482
|
-
|
483
|
-
/**
|
484
|
-
* @summary Mark a person post body mention as read.
|
485
|
-
*/
|
486
|
-
markPostMentionAsRead(form: MarkPersonPostMentionAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
494
|
+
notePerson(form: NotePerson, options?: RequestOptions): Promise<SuccessResponse>;
|
487
495
|
/**
|
488
496
|
* @summary Ban a person from your site.
|
489
497
|
*/
|
490
498
|
banPerson(form: BanPerson, options?: RequestOptions): Promise<BanPersonResponse>;
|
491
499
|
/**
|
492
|
-
* @summary Get a list of
|
500
|
+
* @summary Get a list of users.
|
493
501
|
*/
|
494
|
-
|
502
|
+
listUsers(form?: AdminListUsersI, options?: RequestOptions): Promise<AdminListUsersResponse>;
|
495
503
|
/**
|
496
504
|
* @summary Block a person.
|
497
505
|
*/
|
@@ -516,6 +524,10 @@ export declare class LemmyHttp extends Controller {
|
|
516
524
|
* @summary Mark all replies as read.
|
517
525
|
*/
|
518
526
|
markAllNotificationsAsRead(options?: RequestOptions): Promise<SuccessResponse>;
|
527
|
+
/**
|
528
|
+
* @summary Mark a comment as read.
|
529
|
+
*/
|
530
|
+
markNotificationAsRead(form: MarkNotificationAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
519
531
|
/**
|
520
532
|
* @summary Save your user settings.
|
521
533
|
*/
|
@@ -535,7 +547,7 @@ export declare class LemmyHttp extends Controller {
|
|
535
547
|
/**
|
536
548
|
* @summary Get your inbox (replies, comment mentions, post mentions, and messages)
|
537
549
|
*/
|
538
|
-
|
550
|
+
listNotifications(form: ListNotificationsI, options?: RequestOptions): Promise<ListNotificationsResponse>;
|
539
551
|
/**
|
540
552
|
* @summary Verify your email
|
541
553
|
*/
|
@@ -548,6 +560,18 @@ export declare class LemmyHttp extends Controller {
|
|
548
560
|
* @summary List your saved content.
|
549
561
|
*/
|
550
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>;
|
551
575
|
/**
|
552
576
|
* @summary Add an admin to your site.
|
553
577
|
*/
|
@@ -621,7 +645,7 @@ export declare class LemmyHttp extends Controller {
|
|
621
645
|
*/
|
622
646
|
createCommunityTag(form: CreateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
623
647
|
/**
|
624
|
-
* @summary
|
648
|
+
* @summary Edit a community post tag.
|
625
649
|
*/
|
626
650
|
updateCommunityTag(form: UpdateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
627
651
|
/**
|
@@ -653,9 +677,13 @@ export declare class LemmyHttp extends Controller {
|
|
653
677
|
*/
|
654
678
|
listReports(form: ListReportsI, options?: RequestOptions): Promise<ListReportsResponse>;
|
655
679
|
/**
|
656
|
-
* @summary Block an instance as user.
|
680
|
+
* @summary Block an instance's communities as a user.
|
657
681
|
*/
|
658
|
-
|
682
|
+
userBlockInstanceCommunities(form: UserBlockInstanceCommunitiesParams, options?: RequestOptions): Promise<SuccessResponse>;
|
683
|
+
/**
|
684
|
+
* @summary Block an instance's persons as a user.
|
685
|
+
*/
|
686
|
+
userBlockInstancePersons(form: UserBlockInstancePersonsParams, options?: RequestOptions): Promise<SuccessResponse>;
|
659
687
|
/**
|
660
688
|
* @summary Globally block an instance as admin.
|
661
689
|
*/
|
@@ -683,19 +711,19 @@ export declare class LemmyHttp extends Controller {
|
|
683
711
|
/**
|
684
712
|
* @summary Upload new community icon.
|
685
713
|
*/
|
686
|
-
uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
714
|
+
uploadCommunityIcon(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
687
715
|
/**
|
688
716
|
* @summary Delete the community icon.
|
689
717
|
*/
|
690
|
-
deleteCommunityIcon(options?: RequestOptions): Promise<SuccessResponse>;
|
718
|
+
deleteCommunityIcon(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
|
691
719
|
/**
|
692
720
|
* @summary Upload new community banner.
|
693
721
|
*/
|
694
|
-
uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
722
|
+
uploadCommunityBanner(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
695
723
|
/**
|
696
724
|
* @summary Delete the community banner.
|
697
725
|
*/
|
698
|
-
deleteCommunityBanner(options?: RequestOptions): Promise<SuccessResponse>;
|
726
|
+
deleteCommunityBanner(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
|
699
727
|
/**
|
700
728
|
* @summary Upload new site icon.
|
701
729
|
*/
|
@@ -722,10 +750,23 @@ export declare class LemmyHttp extends Controller {
|
|
722
750
|
imageHealth(options?: RequestOptions): Promise<SuccessResponse>;
|
723
751
|
/**
|
724
752
|
* Mark donation dialog as shown, so it isn't displayed anymore.
|
725
|
-
*
|
726
|
-
* `HTTP.POST /user/donation_dialog_shown`
|
727
753
|
*/
|
728
|
-
|
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>;
|
729
770
|
/**
|
730
771
|
* Set the headers (can be used to set the auth header)
|
731
772
|
*/
|
@@ -733,4 +774,13 @@ export declare class LemmyHttp extends Controller {
|
|
733
774
|
[key: string]: string;
|
734
775
|
}): void;
|
735
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
|
+
}
|
736
786
|
export {};
|