lemmy-js-client 1.0.0-block-nsfw.1 → 1.0.0-community-reports.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 +53 -16
- package/dist/http.js +952 -889
- package/dist/index.d.ts +18 -17
- package/dist/other_types.d.ts +3 -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/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/LocalSite.d.ts +24 -5
- package/dist/types/LocalUser.d.ts +4 -0
- package/dist/types/LocalUserView.d.ts +2 -4
- 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 +1 -0
- 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/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/ModHideCommunityId.js +0 -3
- 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/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, 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,6 +135,7 @@ 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";
|
133
140
|
type RequestOptions = Pick<RequestInit, "signal">;
|
134
141
|
/**
|
@@ -194,13 +201,21 @@ export declare class LemmyHttp extends Controller {
|
|
194
201
|
*/
|
195
202
|
validateAuth(options?: RequestOptions): Promise<SuccessResponse>;
|
196
203
|
/**
|
197
|
-
* @summary List all the media for your
|
204
|
+
* @summary List all the media for your account.
|
198
205
|
*/
|
199
206
|
listMedia(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
|
207
|
+
/**
|
208
|
+
* @summary Delete media for your account.
|
209
|
+
*/
|
210
|
+
deleteMedia(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
211
|
+
/**
|
212
|
+
* @summary Delete any media. (Admin only)
|
213
|
+
*/
|
214
|
+
deleteMediaAdmin(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
200
215
|
/**
|
201
216
|
* @summary List all the media known to your instance.
|
202
217
|
*/
|
203
|
-
|
218
|
+
listMediaAdmin(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
|
204
219
|
/**
|
205
220
|
* @summary Enable / Disable TOTP / two-factor authentication.
|
206
221
|
*
|
@@ -285,6 +300,14 @@ export declare class LemmyHttp extends Controller {
|
|
285
300
|
* @summary Get a random community.
|
286
301
|
*/
|
287
302
|
getRandomCommunity(form: GetRandomCommunityI, options?: RequestOptions): Promise<CommunityResponse>;
|
303
|
+
/**
|
304
|
+
* @summary Create a report for a community.
|
305
|
+
*/
|
306
|
+
createCommunityReport(form: CreateCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
|
307
|
+
/**
|
308
|
+
* @summary Resolve a report for a private message.
|
309
|
+
*/
|
310
|
+
resolveCommunityReport(form: ResolveCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
|
288
311
|
/**
|
289
312
|
* @summary Create a post.
|
290
313
|
*/
|
@@ -424,7 +447,7 @@ export declare class LemmyHttp extends Controller {
|
|
424
447
|
/**
|
425
448
|
* @summary Mark a private message as read.
|
426
449
|
*/
|
427
|
-
markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<
|
450
|
+
markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
428
451
|
/**
|
429
452
|
* @summary Create a report for a private message.
|
430
453
|
*/
|
@@ -468,7 +491,7 @@ export declare class LemmyHttp extends Controller {
|
|
468
491
|
/**
|
469
492
|
* @summary Get a list of banned users.
|
470
493
|
*/
|
471
|
-
|
494
|
+
listBannedPersons(form?: ListBannedPersonsI, options?: RequestOptions): Promise<BannedPersonsResponse>;
|
472
495
|
/**
|
473
496
|
* @summary Block a person.
|
474
497
|
*/
|
@@ -593,6 +616,18 @@ export declare class LemmyHttp extends Controller {
|
|
593
616
|
* @summary List taglines.
|
594
617
|
*/
|
595
618
|
listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise<ListTaglinesResponse>;
|
619
|
+
/**
|
620
|
+
* @summary Create a community post tag.
|
621
|
+
*/
|
622
|
+
createCommunityTag(form: CreateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
623
|
+
/**
|
624
|
+
* @summary Update a community post tag.
|
625
|
+
*/
|
626
|
+
updateCommunityTag(form: UpdateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
627
|
+
/**
|
628
|
+
* @summary Delete a post tag in a community.
|
629
|
+
*/
|
630
|
+
deleteCommunityTag(form: DeleteCommunityTag, options?: RequestOptions): Promise<Tag>;
|
596
631
|
/**
|
597
632
|
* @summary Create a new oauth provider method
|
598
633
|
*/
|
@@ -632,7 +667,7 @@ export declare class LemmyHttp extends Controller {
|
|
632
667
|
/**
|
633
668
|
* @summary Upload new user avatar.
|
634
669
|
*/
|
635
|
-
uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<
|
670
|
+
uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
636
671
|
/**
|
637
672
|
* @summary Delete the user avatar.
|
638
673
|
*/
|
@@ -640,7 +675,7 @@ export declare class LemmyHttp extends Controller {
|
|
640
675
|
/**
|
641
676
|
* @summary Upload new user banner.
|
642
677
|
*/
|
643
|
-
uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<
|
678
|
+
uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
644
679
|
/**
|
645
680
|
* @summary Delete the user banner.
|
646
681
|
*/
|
@@ -648,7 +683,7 @@ export declare class LemmyHttp extends Controller {
|
|
648
683
|
/**
|
649
684
|
* @summary Upload new community icon.
|
650
685
|
*/
|
651
|
-
uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<
|
686
|
+
uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
652
687
|
/**
|
653
688
|
* @summary Delete the community icon.
|
654
689
|
*/
|
@@ -656,7 +691,7 @@ export declare class LemmyHttp extends Controller {
|
|
656
691
|
/**
|
657
692
|
* @summary Upload new community banner.
|
658
693
|
*/
|
659
|
-
uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<
|
694
|
+
uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
660
695
|
/**
|
661
696
|
* @summary Delete the community banner.
|
662
697
|
*/
|
@@ -664,7 +699,7 @@ export declare class LemmyHttp extends Controller {
|
|
664
699
|
/**
|
665
700
|
* @summary Upload new site icon.
|
666
701
|
*/
|
667
|
-
uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<
|
702
|
+
uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
668
703
|
/**
|
669
704
|
* @summary Delete the site icon.
|
670
705
|
*/
|
@@ -672,7 +707,7 @@ export declare class LemmyHttp extends Controller {
|
|
672
707
|
/**
|
673
708
|
* @summary Upload new site banner.
|
674
709
|
*/
|
675
|
-
uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<
|
710
|
+
uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
676
711
|
/**
|
677
712
|
* @summary Delete the site banner.
|
678
713
|
*/
|
@@ -681,14 +716,16 @@ export declare class LemmyHttp extends Controller {
|
|
681
716
|
* @summary Upload an image to the server.
|
682
717
|
*/
|
683
718
|
uploadImage(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
684
|
-
/**
|
685
|
-
* @summary Delete a pictrs image
|
686
|
-
*/
|
687
|
-
deleteImage(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
688
719
|
/**
|
689
720
|
* @summary Health check for image functionality
|
690
721
|
*/
|
691
722
|
imageHealth(options?: RequestOptions): Promise<SuccessResponse>;
|
723
|
+
/**
|
724
|
+
* Mark donation dialog as shown, so it isn't displayed anymore.
|
725
|
+
*
|
726
|
+
* `HTTP.POST /user/donation_dialog_shown`
|
727
|
+
*/
|
728
|
+
donation_dialog_shown(options?: RequestOptions): Promise<SuccessResponse>;
|
692
729
|
/**
|
693
730
|
* Set the headers (can be used to set the auth header)
|
694
731
|
*/
|