lemmy-js-client 1.0.0-action-structs.1 → 1.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/http.d.ts +40 -14
- package/dist/http.js +923 -887
- package/dist/index.d.ts +5 -1
- package/dist/types/BannedPersonsResponse.d.ts +1 -0
- package/dist/types/Comment.d.ts +5 -0
- package/dist/types/CommentReplyView.d.ts +5 -0
- package/dist/types/CommentSlimView.d.ts +3 -0
- package/dist/types/CommentView.d.ts +5 -0
- package/dist/types/Community.d.ts +1 -0
- package/dist/types/CommunityView.d.ts +2 -0
- package/dist/types/CreateCommunityTag.d.ts +8 -0
- package/dist/types/CreateCommunityTag.js +2 -0
- package/dist/types/CreateSite.d.ts +1 -1
- package/dist/types/DeleteCommunityTag.d.ts +7 -0
- package/dist/types/DeleteCommunityTag.js +2 -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 +1 -0
- package/dist/types/GetModlogResponse.d.ts +1 -0
- package/dist/types/GetPosts.d.ts +3 -9
- package/dist/types/GetPostsResponse.d.ts +3 -2
- package/dist/types/GetSiteResponse.d.ts +2 -0
- package/dist/types/InstanceActions.d.ts +8 -0
- package/dist/types/LemmyErrorType.d.ts +91 -22
- 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 +1 -0
- package/dist/types/ListInboxResponse.d.ts +1 -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 +1 -0
- package/dist/types/ListPersonContentResponse.d.ts +1 -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/LocalSite.d.ts +4 -5
- package/dist/types/LocalUserView.d.ts +2 -0
- package/dist/types/ModBan.d.ts +2 -0
- package/dist/types/MyUserInfo.d.ts +1 -0
- package/dist/types/Person.d.ts +0 -8
- package/dist/types/PersonCommentMentionView.d.ts +3 -0
- package/dist/types/PersonPostMentionView.d.ts +5 -0
- package/dist/types/PersonView.d.ts +4 -0
- package/dist/types/PluginMetadata.d.ts +5 -0
- package/dist/types/Post.d.ts +5 -0
- package/dist/types/PostView.d.ts +5 -0
- package/dist/types/SaveUserSettings.d.ts +1 -0
- package/dist/types/Search.d.ts +1 -0
- package/dist/types/SearchResponse.d.ts +1 -0
- package/dist/types/SiteView.d.ts +2 -0
- 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/TagsView.d.ts +5 -0
- 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/PostPaginationCursor.d.ts +0 -7
- /package/dist/types/{PostPaginationCursor.js → PluginMetadata.js} +0 -0
package/dist/http.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Controller } from "tsoa";
|
1
|
+
import { Controller } from "@tsoa/runtime";
|
2
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";
|
@@ -23,6 +23,7 @@ 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 { CreateCommunityTag } from "./types/CreateCommunityTag";
|
26
27
|
import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
27
28
|
import { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
28
29
|
import { CreatePost } from "./types/CreatePost";
|
@@ -35,6 +36,7 @@ import { CustomEmojiResponse } from "./types/CustomEmojiResponse";
|
|
35
36
|
import { DeleteAccount } from "./types/DeleteAccount";
|
36
37
|
import { DeleteComment } from "./types/DeleteComment";
|
37
38
|
import { DeleteCommunity } from "./types/DeleteCommunity";
|
39
|
+
import { DeleteCommunityTag } from "./types/DeleteCommunityTag";
|
38
40
|
import { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
|
39
41
|
import { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
|
40
42
|
import { DeletePost } from "./types/DeletePost";
|
@@ -96,6 +98,7 @@ import { SaveUserSettings } from "./types/SaveUserSettings";
|
|
96
98
|
import { SearchResponse } from "./types/SearchResponse";
|
97
99
|
import { SiteResponse } from "./types/SiteResponse";
|
98
100
|
import { TransferCommunity } from "./types/TransferCommunity";
|
101
|
+
import { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
99
102
|
import { VerifyEmail } from "./types/VerifyEmail";
|
100
103
|
import { HideCommunity } from "./types/HideCommunity";
|
101
104
|
import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
@@ -129,6 +132,7 @@ import { ListInboxResponse } from "./types/ListInboxResponse";
|
|
129
132
|
import { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
|
130
133
|
import { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
|
131
134
|
import { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
|
135
|
+
import { Tag } from "./types/Tag";
|
132
136
|
import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
133
137
|
type RequestOptions = Pick<RequestInit, "signal">;
|
134
138
|
/**
|
@@ -194,13 +198,21 @@ export declare class LemmyHttp extends Controller {
|
|
194
198
|
*/
|
195
199
|
validateAuth(options?: RequestOptions): Promise<SuccessResponse>;
|
196
200
|
/**
|
197
|
-
* @summary List all the media for your
|
201
|
+
* @summary List all the media for your account.
|
198
202
|
*/
|
199
203
|
listMedia(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
|
204
|
+
/**
|
205
|
+
* @summary Delete media for your account.
|
206
|
+
*/
|
207
|
+
deleteMedia(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
208
|
+
/**
|
209
|
+
* @summary Delete any media. (Admin only)
|
210
|
+
*/
|
211
|
+
deleteMediaAdmin(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
200
212
|
/**
|
201
213
|
* @summary List all the media known to your instance.
|
202
214
|
*/
|
203
|
-
|
215
|
+
listMediaAdmin(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
|
204
216
|
/**
|
205
217
|
* @summary Enable / Disable TOTP / two-factor authentication.
|
206
218
|
*
|
@@ -424,7 +436,7 @@ export declare class LemmyHttp extends Controller {
|
|
424
436
|
/**
|
425
437
|
* @summary Mark a private message as read.
|
426
438
|
*/
|
427
|
-
markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<
|
439
|
+
markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
428
440
|
/**
|
429
441
|
* @summary Create a report for a private message.
|
430
442
|
*/
|
@@ -593,6 +605,18 @@ export declare class LemmyHttp extends Controller {
|
|
593
605
|
* @summary List taglines.
|
594
606
|
*/
|
595
607
|
listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise<ListTaglinesResponse>;
|
608
|
+
/**
|
609
|
+
* @summary Create a community post tag.
|
610
|
+
*/
|
611
|
+
createCommunityTag(form: CreateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
612
|
+
/**
|
613
|
+
* @summary Update a community post tag.
|
614
|
+
*/
|
615
|
+
updateCommunityTag(form: UpdateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
616
|
+
/**
|
617
|
+
* @summary Delete a post tag in a community.
|
618
|
+
*/
|
619
|
+
deleteCommunityTag(form: DeleteCommunityTag, options?: RequestOptions): Promise<Tag>;
|
596
620
|
/**
|
597
621
|
* @summary Create a new oauth provider method
|
598
622
|
*/
|
@@ -632,7 +656,7 @@ export declare class LemmyHttp extends Controller {
|
|
632
656
|
/**
|
633
657
|
* @summary Upload new user avatar.
|
634
658
|
*/
|
635
|
-
uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<
|
659
|
+
uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
636
660
|
/**
|
637
661
|
* @summary Delete the user avatar.
|
638
662
|
*/
|
@@ -640,7 +664,7 @@ export declare class LemmyHttp extends Controller {
|
|
640
664
|
/**
|
641
665
|
* @summary Upload new user banner.
|
642
666
|
*/
|
643
|
-
uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<
|
667
|
+
uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
644
668
|
/**
|
645
669
|
* @summary Delete the user banner.
|
646
670
|
*/
|
@@ -648,7 +672,7 @@ export declare class LemmyHttp extends Controller {
|
|
648
672
|
/**
|
649
673
|
* @summary Upload new community icon.
|
650
674
|
*/
|
651
|
-
uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<
|
675
|
+
uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
652
676
|
/**
|
653
677
|
* @summary Delete the community icon.
|
654
678
|
*/
|
@@ -656,7 +680,7 @@ export declare class LemmyHttp extends Controller {
|
|
656
680
|
/**
|
657
681
|
* @summary Upload new community banner.
|
658
682
|
*/
|
659
|
-
uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<
|
683
|
+
uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
660
684
|
/**
|
661
685
|
* @summary Delete the community banner.
|
662
686
|
*/
|
@@ -664,7 +688,7 @@ export declare class LemmyHttp extends Controller {
|
|
664
688
|
/**
|
665
689
|
* @summary Upload new site icon.
|
666
690
|
*/
|
667
|
-
uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<
|
691
|
+
uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
668
692
|
/**
|
669
693
|
* @summary Delete the site icon.
|
670
694
|
*/
|
@@ -672,7 +696,7 @@ export declare class LemmyHttp extends Controller {
|
|
672
696
|
/**
|
673
697
|
* @summary Upload new site banner.
|
674
698
|
*/
|
675
|
-
uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<
|
699
|
+
uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
676
700
|
/**
|
677
701
|
* @summary Delete the site banner.
|
678
702
|
*/
|
@@ -681,14 +705,16 @@ export declare class LemmyHttp extends Controller {
|
|
681
705
|
* @summary Upload an image to the server.
|
682
706
|
*/
|
683
707
|
uploadImage(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
|
684
|
-
/**
|
685
|
-
* @summary Delete a pictrs image
|
686
|
-
*/
|
687
|
-
deleteImage(form: DeleteImageParamsI, options?: RequestOptions): Promise<SuccessResponse>;
|
688
708
|
/**
|
689
709
|
* @summary Health check for image functionality
|
690
710
|
*/
|
691
711
|
imageHealth(options?: RequestOptions): Promise<SuccessResponse>;
|
712
|
+
/**
|
713
|
+
* Mark donation dialog as shown, so it isn't displayed anymore.
|
714
|
+
*
|
715
|
+
* `HTTP.POST /user/donation_dialog_shown`
|
716
|
+
*/
|
717
|
+
donation_dialog_shown(options?: RequestOptions): Promise<SuccessResponse>;
|
692
718
|
/**
|
693
719
|
* Set the headers (can be used to set the auth header)
|
694
720
|
*/
|