lemmy-js-client 1.0.0-block-nsfw.1 → 1.0.0-local-image-user.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/dist/http.d.ts +63 -16
- package/dist/http.js +978 -889
- package/dist/index.d.ts +23 -17
- package/dist/other_types.d.ts +9 -0
- package/dist/types/BannedPersonsResponse.d.ts +6 -0
- package/dist/types/Comment.d.ts +14 -0
- package/dist/types/CommentActions.d.ts +18 -0
- package/dist/types/CommentReplyView.d.ts +15 -14
- package/dist/types/CommentReportView.d.ts +8 -13
- package/dist/types/CommentSlimView.d.ts +11 -13
- package/dist/types/CommentView.d.ts +14 -13
- package/dist/types/Community.d.ts +23 -4
- package/dist/types/CommunityActions.d.ts +35 -0
- package/dist/types/CommunityReportResponse.d.ts +7 -0
- package/dist/types/CommunityReportView.d.ts +0 -4
- package/dist/types/CommunityView.d.ts +6 -6
- package/dist/types/CommunityVisibility.d.ts +1 -1
- package/dist/types/CreateCommunityReport.d.ts +8 -0
- package/dist/types/CreateCommunityTag.d.ts +8 -0
- package/dist/types/CreateSite.d.ts +2 -1
- package/dist/types/DeleteCommunityTag.d.ts +7 -0
- package/dist/types/EditPost.d.ts +1 -1
- package/dist/types/EditSite.d.ts +4 -5
- package/dist/types/GetComments.d.ts +3 -1
- package/dist/types/GetCommentsResponse.d.ts +3 -0
- package/dist/types/GetCommentsSlimResponse.d.ts +3 -0
- package/dist/types/GetModlog.d.ts +3 -2
- package/dist/types/GetModlogResponse.d.ts +6 -0
- package/dist/types/GetPosts.d.ts +1 -7
- package/dist/types/GetPostsResponse.d.ts +1 -0
- package/dist/types/GetSiteResponse.d.ts +4 -2
- package/dist/types/Instance.d.ts +9 -0
- package/dist/types/InstanceActions.d.ts +18 -0
- package/dist/types/InstanceWithFederationState.d.ts +9 -0
- package/dist/types/LemmyErrorType.d.ts +97 -26
- package/dist/types/ListBannedPersons.d.ts +9 -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/ListInbox.d.ts +3 -2
- package/dist/types/ListInboxResponse.d.ts +6 -0
- 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/ListPersonContent.d.ts +3 -2
- package/dist/types/ListPersonContentResponse.d.ts +6 -0
- package/dist/types/ListPersonHidden.d.ts +9 -0
- package/dist/types/ListPersonHidden.js +2 -0
- package/dist/types/ListPersonHiddenResponse.d.ts +13 -0
- package/dist/types/ListPersonHiddenResponse.js +2 -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/ListPersonSaved.d.ts +3 -2
- package/dist/types/ListPersonSavedResponse.d.ts +8 -2
- package/dist/types/ListPostLikes.d.ts +3 -1
- package/dist/types/ListPostLikesResponse.d.ts +6 -0
- package/dist/types/ListRegistrationApplications.d.ts +3 -1
- package/dist/types/ListRegistrationApplications.js +0 -1
- package/dist/types/ListRegistrationApplicationsResponse.d.ts +6 -0
- package/dist/types/ListReports.d.ts +3 -2
- package/dist/types/ListReportsResponse.d.ts +6 -0
- package/dist/types/ListTaglines.d.ts +3 -1
- package/dist/types/ListTaglines.js +0 -1
- package/dist/types/ListTaglinesResponse.d.ts +6 -0
- package/dist/types/LocalImage.d.ts +2 -2
- package/dist/types/LocalSite.d.ts +24 -5
- package/dist/types/LocalUser.d.ts +5 -0
- package/dist/types/LocalUserView.d.ts +2 -4
- package/dist/types/Login.d.ts +3 -0
- package/dist/types/ModBan.d.ts +2 -0
- package/dist/types/ModChangeCommunityVisibility.d.ts +12 -0
- package/dist/types/ModChangeCommunityVisibility.js +2 -0
- package/dist/types/ModChangeCommunityVisibilityId.d.ts +1 -0
- package/dist/types/ModChangeCommunityVisibilityView.d.ts +11 -0
- package/dist/types/ModChangeCommunityVisibilityView.js +2 -0
- package/dist/types/ModlogActionType.d.ts +1 -1
- package/dist/types/ModlogCombinedView.d.ts +3 -3
- package/dist/types/MyUserInfo.d.ts +1 -0
- package/dist/types/PaginationCursor.d.ts +1 -4
- package/dist/types/PendingFollow.d.ts +2 -2
- package/dist/types/Person.d.ts +2 -8
- package/dist/types/PersonActions.d.ts +9 -0
- package/dist/types/PersonActions.js +2 -0
- package/dist/types/PersonCommentMentionView.d.ts +13 -14
- package/dist/types/PersonPostMentionView.d.ts +15 -19
- package/dist/types/PersonSavedCombinedView.d.ts +7 -0
- package/dist/types/PersonSavedCombinedView.js +2 -0
- package/dist/types/PersonView.d.ts +4 -2
- package/dist/types/PluginMetadata.d.ts +5 -0
- package/dist/types/Post.d.ts +15 -0
- package/dist/types/PostActions.d.ts +35 -0
- package/dist/types/PostActions.js +2 -0
- package/dist/types/PostReportView.d.ts +8 -16
- package/dist/types/PostView.d.ts +14 -18
- package/dist/types/PrivateMessageReportView.d.ts +1 -1
- package/dist/types/ResolveCommunityReport.d.ts +8 -0
- package/dist/types/ResolveCommunityReport.js +2 -0
- package/dist/types/SaveUserSettings.d.ts +3 -1
- package/dist/types/Search.d.ts +3 -2
- package/dist/types/SearchResponse.d.ts +6 -0
- package/dist/types/SiteView.d.ts +2 -2
- package/dist/types/Tag.d.ts +8 -6
- package/dist/types/Tagline.d.ts +2 -1
- package/dist/types/Tagline.js +0 -1
- package/dist/types/{PostTags.d.ts → TagsView.d.ts} +1 -3
- package/dist/types/TagsView.js +2 -0
- package/dist/types/UpdateCommunityTag.d.ts +8 -0
- package/dist/types/UpdateCommunityTag.js +2 -0
- package/dist/types/VoteShow.d.ts +4 -0
- package/dist/types/VoteView.d.ts +1 -0
- package/package.json +6 -3
- package/dist/types/CommentAggregates.d.ts +0 -17
- package/dist/types/CommunityAggregates.d.ts +0 -30
- package/dist/types/InboxCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/LocalUserVoteDisplayMode.d.ts +0 -9
- package/dist/types/ModHideCommunity.d.ts +0 -14
- package/dist/types/ModHideCommunityId.d.ts +0 -1
- package/dist/types/ModHideCommunityView.d.ts +0 -11
- package/dist/types/ModlogCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/ModlogCombinedPaginationCursor.js +0 -3
- package/dist/types/PersonAggregates.d.ts +0 -10
- package/dist/types/PersonContentCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/PersonContentCombinedPaginationCursor.js +0 -3
- package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/PersonSavedCombinedPaginationCursor.js +0 -3
- package/dist/types/PostAggregates.d.ts +0 -18
- package/dist/types/ReportCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/ReportCombinedPaginationCursor.js +0 -3
- package/dist/types/SearchCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/SearchCombinedPaginationCursor.js +0 -3
- package/dist/types/SiteAggregates.d.ts +0 -27
- package/dist/types/SubscribedType.d.ts +0 -4
- package/dist/types/SubscribedType.js +0 -3
- /package/dist/types/{CommentAggregates.js → CommentActions.js} +0 -0
- /package/dist/types/{CommunityAggregates.js → CommunityActions.js} +0 -0
- /package/dist/types/{ModHideCommunity.js → CommunityReportResponse.js} +0 -0
- /package/dist/types/{ModHideCommunityView.js → CreateCommunityReport.js} +0 -0
- /package/dist/types/{PersonAggregates.js → CreateCommunityTag.js} +0 -0
- /package/dist/types/{PostAggregates.js → DeleteCommunityTag.js} +0 -0
- /package/dist/types/{PostTags.js → InstanceActions.js} +0 -0
- /package/dist/types/{SiteAggregates.js → ListBannedPersons.js} +0 -0
- /package/dist/types/{InboxCombinedPaginationCursor.js → ModChangeCommunityVisibilityId.js} +0 -0
- /package/dist/types/{LocalUserVoteDisplayMode.js → PluginMetadata.js} +0 -0
- /package/dist/types/{ModHideCommunityId.js → VoteShow.js} +0 -0
package/dist/http.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Controller } from "tsoa";
|
2
|
-
import { DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListInboxI, ListMediaI, ListPersonContentI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
|
1
|
+
import { Controller } from "@tsoa/runtime";
|
2
|
+
import { DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListBannedPersonsI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListInboxI, ListMediaI, ListPersonContentI, ListPersonHiddenI, 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";
|
@@ -18,11 +18,14 @@ import { BlockPersonResponse } from "./types/BlockPersonResponse";
|
|
18
18
|
import { ChangePassword } from "./types/ChangePassword";
|
19
19
|
import { CommentReportResponse } from "./types/CommentReportResponse";
|
20
20
|
import { CommentResponse } from "./types/CommentResponse";
|
21
|
+
import { CommunityReportResponse } from "./types/CommunityReportResponse";
|
21
22
|
import { CommunityResponse } from "./types/CommunityResponse";
|
22
23
|
import { CreateComment } from "./types/CreateComment";
|
23
24
|
import { CreateCommentLike } from "./types/CreateCommentLike";
|
24
25
|
import { CreateCommentReport } from "./types/CreateCommentReport";
|
25
26
|
import { CreateCommunity } from "./types/CreateCommunity";
|
27
|
+
import { CreateCommunityReport } from "./types/CreateCommunityReport";
|
28
|
+
import { CreateCommunityTag } from "./types/CreateCommunityTag";
|
26
29
|
import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
27
30
|
import { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
28
31
|
import { CreatePost } from "./types/CreatePost";
|
@@ -35,6 +38,7 @@ import { CustomEmojiResponse } from "./types/CustomEmojiResponse";
|
|
35
38
|
import { DeleteAccount } from "./types/DeleteAccount";
|
36
39
|
import { DeleteComment } from "./types/DeleteComment";
|
37
40
|
import { DeleteCommunity } from "./types/DeleteCommunity";
|
41
|
+
import { DeleteCommunityTag } from "./types/DeleteCommunityTag";
|
38
42
|
import { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
|
39
43
|
import { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
|
40
44
|
import { DeletePost } from "./types/DeletePost";
|
@@ -87,6 +91,7 @@ import { RemoveComment } from "./types/RemoveComment";
|
|
87
91
|
import { RemoveCommunity } from "./types/RemoveCommunity";
|
88
92
|
import { RemovePost } from "./types/RemovePost";
|
89
93
|
import { ResolveCommentReport } from "./types/ResolveCommentReport";
|
94
|
+
import { ResolveCommunityReport } from "./types/ResolveCommunityReport";
|
90
95
|
import { ResolveObjectResponse } from "./types/ResolveObjectResponse";
|
91
96
|
import { ResolvePostReport } from "./types/ResolvePostReport";
|
92
97
|
import { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
|
@@ -96,6 +101,7 @@ import { SaveUserSettings } from "./types/SaveUserSettings";
|
|
96
101
|
import { SearchResponse } from "./types/SearchResponse";
|
97
102
|
import { SiteResponse } from "./types/SiteResponse";
|
98
103
|
import { TransferCommunity } from "./types/TransferCommunity";
|
104
|
+
import { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
99
105
|
import { VerifyEmail } from "./types/VerifyEmail";
|
100
106
|
import { HideCommunity } from "./types/HideCommunity";
|
101
107
|
import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
@@ -129,7 +135,10 @@ import { ListInboxResponse } from "./types/ListInboxResponse";
|
|
129
135
|
import { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
|
130
136
|
import { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
|
131
137
|
import { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
|
138
|
+
import { Tag } from "./types/Tag";
|
132
139
|
import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
140
|
+
import { ListPersonReadResponse } from "./types/ListPersonReadResponse";
|
141
|
+
import { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
|
133
142
|
type RequestOptions = Pick<RequestInit, "signal">;
|
134
143
|
/**
|
135
144
|
* Helps build lemmy HTTP requests.
|
@@ -194,13 +203,21 @@ export declare class LemmyHttp extends Controller {
|
|
194
203
|
*/
|
195
204
|
validateAuth(options?: RequestOptions): Promise<SuccessResponse>;
|
196
205
|
/**
|
197
|
-
* @summary List all the media for your
|
206
|
+
* @summary List all the media for your account.
|
198
207
|
*/
|
199
208
|
listMedia(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
|
209
|
+
/**
|
210
|
+
* @summary Delete media for your account.
|
211
|
+
*/
|
212
|
+
deleteMedia(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
213
|
+
/**
|
214
|
+
* @summary Delete any media. (Admin only)
|
215
|
+
*/
|
216
|
+
deleteMediaAdmin(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
200
217
|
/**
|
201
218
|
* @summary List all the media known to your instance.
|
202
219
|
*/
|
203
|
-
|
220
|
+
listMediaAdmin(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
|
204
221
|
/**
|
205
222
|
* @summary Enable / Disable TOTP / two-factor authentication.
|
206
223
|
*
|
@@ -285,6 +302,14 @@ export declare class LemmyHttp extends Controller {
|
|
285
302
|
* @summary Get a random community.
|
286
303
|
*/
|
287
304
|
getRandomCommunity(form: GetRandomCommunityI, options?: RequestOptions): Promise<CommunityResponse>;
|
305
|
+
/**
|
306
|
+
* @summary Create a report for a community.
|
307
|
+
*/
|
308
|
+
createCommunityReport(form: CreateCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
|
309
|
+
/**
|
310
|
+
* @summary Resolve a report for a private message.
|
311
|
+
*/
|
312
|
+
resolveCommunityReport(form: ResolveCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
|
288
313
|
/**
|
289
314
|
* @summary Create a post.
|
290
315
|
*/
|
@@ -424,7 +449,7 @@ export declare class LemmyHttp extends Controller {
|
|
424
449
|
/**
|
425
450
|
* @summary Mark a private message as read.
|
426
451
|
*/
|
427
|
-
markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<
|
452
|
+
markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
428
453
|
/**
|
429
454
|
* @summary Create a report for a private message.
|
430
455
|
*/
|
@@ -468,7 +493,7 @@ export declare class LemmyHttp extends Controller {
|
|
468
493
|
/**
|
469
494
|
* @summary Get a list of banned users.
|
470
495
|
*/
|
471
|
-
|
496
|
+
listBannedPersons(form?: ListBannedPersonsI, options?: RequestOptions): Promise<BannedPersonsResponse>;
|
472
497
|
/**
|
473
498
|
* @summary Block a person.
|
474
499
|
*/
|
@@ -525,6 +550,14 @@ export declare class LemmyHttp extends Controller {
|
|
525
550
|
* @summary List your saved content.
|
526
551
|
*/
|
527
552
|
listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<ListPersonSavedResponse>;
|
553
|
+
/**
|
554
|
+
* @summary List your read content.
|
555
|
+
*/
|
556
|
+
listPersonRead(form: ListPersonReadI, options?: RequestOptions): Promise<ListPersonReadResponse>;
|
557
|
+
/**
|
558
|
+
* @summary List your hidden content.
|
559
|
+
*/
|
560
|
+
listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<ListPersonHiddenResponse>;
|
528
561
|
/**
|
529
562
|
* @summary Add an admin to your site.
|
530
563
|
*/
|
@@ -593,6 +626,18 @@ export declare class LemmyHttp extends Controller {
|
|
593
626
|
* @summary List taglines.
|
594
627
|
*/
|
595
628
|
listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise<ListTaglinesResponse>;
|
629
|
+
/**
|
630
|
+
* @summary Create a community post tag.
|
631
|
+
*/
|
632
|
+
createCommunityTag(form: CreateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
633
|
+
/**
|
634
|
+
* @summary Update a community post tag.
|
635
|
+
*/
|
636
|
+
updateCommunityTag(form: UpdateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
637
|
+
/**
|
638
|
+
* @summary Delete a post tag in a community.
|
639
|
+
*/
|
640
|
+
deleteCommunityTag(form: DeleteCommunityTag, options?: RequestOptions): Promise<Tag>;
|
596
641
|
/**
|
597
642
|
* @summary Create a new oauth provider method
|
598
643
|
*/
|
@@ -632,7 +677,7 @@ export declare class LemmyHttp extends Controller {
|
|
632
677
|
/**
|
633
678
|
* @summary Upload new user avatar.
|
634
679
|
*/
|
635
|
-
uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<
|
680
|
+
uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
636
681
|
/**
|
637
682
|
* @summary Delete the user avatar.
|
638
683
|
*/
|
@@ -640,7 +685,7 @@ export declare class LemmyHttp extends Controller {
|
|
640
685
|
/**
|
641
686
|
* @summary Upload new user banner.
|
642
687
|
*/
|
643
|
-
uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<
|
688
|
+
uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
644
689
|
/**
|
645
690
|
* @summary Delete the user banner.
|
646
691
|
*/
|
@@ -648,7 +693,7 @@ export declare class LemmyHttp extends Controller {
|
|
648
693
|
/**
|
649
694
|
* @summary Upload new community icon.
|
650
695
|
*/
|
651
|
-
uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<
|
696
|
+
uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
652
697
|
/**
|
653
698
|
* @summary Delete the community icon.
|
654
699
|
*/
|
@@ -656,7 +701,7 @@ export declare class LemmyHttp extends Controller {
|
|
656
701
|
/**
|
657
702
|
* @summary Upload new community banner.
|
658
703
|
*/
|
659
|
-
uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<
|
704
|
+
uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
660
705
|
/**
|
661
706
|
* @summary Delete the community banner.
|
662
707
|
*/
|
@@ -664,7 +709,7 @@ export declare class LemmyHttp extends Controller {
|
|
664
709
|
/**
|
665
710
|
* @summary Upload new site icon.
|
666
711
|
*/
|
667
|
-
uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<
|
712
|
+
uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
668
713
|
/**
|
669
714
|
* @summary Delete the site icon.
|
670
715
|
*/
|
@@ -672,7 +717,7 @@ export declare class LemmyHttp extends Controller {
|
|
672
717
|
/**
|
673
718
|
* @summary Upload new site banner.
|
674
719
|
*/
|
675
|
-
uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<
|
720
|
+
uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
676
721
|
/**
|
677
722
|
* @summary Delete the site banner.
|
678
723
|
*/
|
@@ -681,14 +726,16 @@ export declare class LemmyHttp extends Controller {
|
|
681
726
|
* @summary Upload an image to the server.
|
682
727
|
*/
|
683
728
|
uploadImage(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
684
|
-
/**
|
685
|
-
* @summary Delete a pictrs image
|
686
|
-
*/
|
687
|
-
deleteImage(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
688
729
|
/**
|
689
730
|
* @summary Health check for image functionality
|
690
731
|
*/
|
691
732
|
imageHealth(options?: RequestOptions): Promise<SuccessResponse>;
|
733
|
+
/**
|
734
|
+
* Mark donation dialog as shown, so it isn't displayed anymore.
|
735
|
+
*
|
736
|
+
* `HTTP.POST /user/donation_dialog_shown`
|
737
|
+
*/
|
738
|
+
donation_dialog_shown(options?: RequestOptions): Promise<SuccessResponse>;
|
692
739
|
/**
|
693
740
|
* Set the headers (can be used to set the auth header)
|
694
741
|
*/
|