lemmy-js-client 1.0.0-action-structs.0 → 1.0.0-alpha.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.
Files changed (40) hide show
  1. package/dist/http.d.ts +16 -10
  2. package/dist/http.js +674 -662
  3. package/dist/index.d.ts +7 -4
  4. package/dist/other_types.d.ts +3 -0
  5. package/dist/types/BannedPersonsResponse.d.ts +5 -0
  6. package/dist/types/CommentActions.d.ts +9 -0
  7. package/dist/types/CommentSlimView.d.ts +2 -0
  8. package/dist/types/Community.d.ts +0 -4
  9. package/dist/types/CommunityActions.d.ts +21 -0
  10. package/dist/types/CommunityReportResponse.d.ts +7 -0
  11. package/dist/types/CommunityVisibility.d.ts +1 -1
  12. package/dist/types/CreateCommunityReport.d.ts +8 -0
  13. package/dist/types/Instance.d.ts +9 -0
  14. package/dist/types/InstanceActions.d.ts +3 -0
  15. package/dist/types/InstanceWithFederationState.d.ts +9 -0
  16. package/dist/types/LemmyErrorType.d.ts +0 -2
  17. package/dist/types/ListBannedPersons.d.ts +9 -0
  18. package/dist/types/ListBannedPersons.js +2 -0
  19. package/dist/types/LocalSite.d.ts +4 -4
  20. package/dist/types/ModChangeCommunityVisibility.d.ts +12 -0
  21. package/dist/types/ModChangeCommunityVisibility.js +2 -0
  22. package/dist/types/ModChangeCommunityVisibilityId.d.ts +1 -0
  23. package/dist/types/ModChangeCommunityVisibilityView.d.ts +11 -0
  24. package/dist/types/ModChangeCommunityVisibilityView.js +2 -0
  25. package/dist/types/ModlogActionType.d.ts +1 -1
  26. package/dist/types/ModlogCombinedView.d.ts +3 -3
  27. package/dist/types/PendingFollow.d.ts +2 -2
  28. package/dist/types/PersonActions.d.ts +3 -2
  29. package/dist/types/PostActions.d.ts +22 -0
  30. package/dist/types/ResolveCommunityReport.d.ts +8 -0
  31. package/dist/types/ResolveCommunityReport.js +2 -0
  32. package/package.json +6 -3
  33. package/dist/types/ModHideCommunity.d.ts +0 -14
  34. package/dist/types/ModHideCommunityId.d.ts +0 -1
  35. package/dist/types/ModHideCommunityView.d.ts +0 -11
  36. package/dist/types/SubscribedType.d.ts +0 -4
  37. package/dist/types/SubscribedType.js +0 -3
  38. /package/dist/types/{ModHideCommunity.js → CommunityReportResponse.js} +0 -0
  39. /package/dist/types/{ModHideCommunityView.js → CreateCommunityReport.js} +0 -0
  40. /package/dist/types/{ModHideCommunityId.js → ModChangeCommunityVisibilityId.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";
@@ -424,7 +424,7 @@ export declare class LemmyHttp extends Controller {
424
424
  /**
425
425
  * @summary Mark a private message as read.
426
426
  */
427
- markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<PrivateMessageResponse>;
427
+ markPrivateMessageAsRead(form: MarkPrivateMessageAsRead, options?: RequestOptions): Promise<SuccessResponse>;
428
428
  /**
429
429
  * @summary Create a report for a private message.
430
430
  */
@@ -468,7 +468,7 @@ export declare class LemmyHttp extends Controller {
468
468
  /**
469
469
  * @summary Get a list of banned users.
470
470
  */
471
- getBannedPersons(options?: RequestOptions): Promise<BannedPersonsResponse>;
471
+ listBannedPersons(form?: ListBannedPersonsI, options?: RequestOptions): Promise<BannedPersonsResponse>;
472
472
  /**
473
473
  * @summary Block a person.
474
474
  */
@@ -632,7 +632,7 @@ export declare class LemmyHttp extends Controller {
632
632
  /**
633
633
  * @summary Upload new user avatar.
634
634
  */
635
- uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
635
+ uploadUserAvatar(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
636
636
  /**
637
637
  * @summary Delete the user avatar.
638
638
  */
@@ -640,7 +640,7 @@ export declare class LemmyHttp extends Controller {
640
640
  /**
641
641
  * @summary Upload new user banner.
642
642
  */
643
- uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
643
+ uploadUserBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
644
644
  /**
645
645
  * @summary Delete the user banner.
646
646
  */
@@ -648,7 +648,7 @@ export declare class LemmyHttp extends Controller {
648
648
  /**
649
649
  * @summary Upload new community icon.
650
650
  */
651
- uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
651
+ uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
652
652
  /**
653
653
  * @summary Delete the community icon.
654
654
  */
@@ -656,7 +656,7 @@ export declare class LemmyHttp extends Controller {
656
656
  /**
657
657
  * @summary Upload new community banner.
658
658
  */
659
- uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
659
+ uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
660
660
  /**
661
661
  * @summary Delete the community banner.
662
662
  */
@@ -664,7 +664,7 @@ export declare class LemmyHttp extends Controller {
664
664
  /**
665
665
  * @summary Upload new site icon.
666
666
  */
667
- uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
667
+ uploadSiteIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
668
668
  /**
669
669
  * @summary Delete the site icon.
670
670
  */
@@ -672,7 +672,7 @@ export declare class LemmyHttp extends Controller {
672
672
  /**
673
673
  * @summary Upload new site banner.
674
674
  */
675
- uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<SuccessResponse>;
675
+ uploadSiteBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
676
676
  /**
677
677
  * @summary Delete the site banner.
678
678
  */
@@ -689,6 +689,12 @@ export declare class LemmyHttp extends Controller {
689
689
  * @summary Health check for image functionality
690
690
  */
691
691
  imageHealth(options?: RequestOptions): Promise<SuccessResponse>;
692
+ /**
693
+ * Mark donation dialog as shown, so it isn't displayed anymore.
694
+ *
695
+ * `HTTP.POST /user/donation_dialog_shown`
696
+ */
697
+ donation_dialog_shown(options?: RequestOptions): Promise<SuccessResponse>;
692
698
  /**
693
699
  * Set the headers (can be used to set the auth header)
694
700
  */