lemmy-js-client 1.0.0-media-fixes.0 → 1.0.0-multi-community.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.
Files changed (85) hide show
  1. package/dist/http.d.ts +39 -5
  2. package/dist/http.js +402 -584
  3. package/dist/index.d.ts +11 -1
  4. package/dist/other_types.d.ts +3 -0
  5. package/dist/types/BannedPersonsResponse.d.ts +1 -0
  6. package/dist/types/CommentReplyView.d.ts +2 -0
  7. package/dist/types/CommentView.d.ts +2 -0
  8. package/dist/types/CommunityIdQuery.d.ts +8 -0
  9. package/dist/types/CommunityIdQuery.js +2 -0
  10. package/dist/types/CommunityView.d.ts +2 -0
  11. package/dist/types/CreateCommunityTag.d.ts +8 -0
  12. package/dist/types/CreateCommunityTag.js +2 -0
  13. package/dist/types/CreateMultiCommunity.d.ts +3 -0
  14. package/dist/types/CreateSite.d.ts +1 -0
  15. package/dist/types/DeleteCommunityTag.d.ts +7 -0
  16. package/dist/types/DeleteCommunityTag.js +2 -0
  17. package/dist/types/EditPost.d.ts +1 -1
  18. package/dist/types/EditSite.d.ts +4 -0
  19. package/dist/types/GetComments.d.ts +3 -1
  20. package/dist/types/GetCommentsResponse.d.ts +3 -0
  21. package/dist/types/GetCommentsSlimResponse.d.ts +3 -0
  22. package/dist/types/GetModlog.d.ts +1 -0
  23. package/dist/types/GetModlogResponse.d.ts +1 -0
  24. package/dist/types/GetPosts.d.ts +3 -9
  25. package/dist/types/GetPostsResponse.d.ts +3 -2
  26. package/dist/types/LemmyErrorType.d.ts +88 -20
  27. package/dist/types/ListCommentLikes.d.ts +3 -1
  28. package/dist/types/ListCommentLikesResponse.d.ts +6 -0
  29. package/dist/types/ListCommunities.d.ts +3 -1
  30. package/dist/types/ListCommunitiesResponse.d.ts +6 -0
  31. package/dist/types/ListCommunityPendingFollows.d.ts +3 -1
  32. package/dist/types/ListCommunityPendingFollows.js +0 -1
  33. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +6 -0
  34. package/dist/types/ListCustomEmojis.d.ts +0 -3
  35. package/dist/types/ListInbox.d.ts +1 -0
  36. package/dist/types/ListInboxResponse.d.ts +1 -0
  37. package/dist/types/ListMedia.d.ts +3 -1
  38. package/dist/types/ListMedia.js +0 -1
  39. package/dist/types/ListMediaResponse.d.ts +6 -0
  40. package/dist/types/ListMultiCommunities.d.ts +4 -0
  41. package/dist/types/ListMultiCommunities.js +2 -0
  42. package/dist/types/ListMultiCommunitiesResponse.d.ts +4 -0
  43. package/dist/types/ListMultiCommunitiesResponse.js +2 -0
  44. package/dist/types/ListPersonContent.d.ts +1 -0
  45. package/dist/types/ListPersonContentResponse.d.ts +1 -0
  46. package/dist/types/ListPersonSaved.d.ts +1 -0
  47. package/dist/types/ListPersonSavedResponse.d.ts +1 -0
  48. package/dist/types/ListPostLikes.d.ts +3 -1
  49. package/dist/types/ListPostLikesResponse.d.ts +6 -0
  50. package/dist/types/ListRegistrationApplications.d.ts +3 -1
  51. package/dist/types/ListRegistrationApplications.js +0 -1
  52. package/dist/types/ListRegistrationApplicationsResponse.d.ts +6 -0
  53. package/dist/types/ListReports.d.ts +1 -0
  54. package/dist/types/ListReportsResponse.d.ts +1 -0
  55. package/dist/types/ListTaglines.d.ts +3 -1
  56. package/dist/types/ListTaglines.js +0 -1
  57. package/dist/types/ListTaglinesResponse.d.ts +6 -0
  58. package/dist/types/LocalSite.d.ts +4 -0
  59. package/dist/types/MultiCommunity.d.ts +9 -0
  60. package/dist/types/MultiCommunity.js +2 -0
  61. package/dist/types/MultiCommunityId.d.ts +1 -0
  62. package/dist/types/MultiCommunityId.js +3 -0
  63. package/dist/types/MultiCommunityView.d.ts +6 -0
  64. package/dist/types/MultiCommunityView.js +2 -0
  65. package/dist/types/MultiCommunityViewApub.d.ts +6 -0
  66. package/dist/types/MultiCommunityViewApub.js +2 -0
  67. package/dist/types/MyUserInfo.d.ts +1 -0
  68. package/dist/types/PersonPostMentionView.d.ts +2 -0
  69. package/dist/types/PostView.d.ts +2 -0
  70. package/dist/types/SaveUserSettings.d.ts +1 -0
  71. package/dist/types/Search.d.ts +1 -0
  72. package/dist/types/SearchResponse.d.ts +1 -0
  73. package/dist/types/Tag.d.ts +8 -6
  74. package/dist/types/Tagline.d.ts +2 -1
  75. package/dist/types/Tagline.js +0 -1
  76. package/dist/types/TagsView.d.ts +5 -0
  77. package/dist/types/TagsView.js +2 -0
  78. package/dist/types/UpdateCommunityTag.d.ts +8 -0
  79. package/dist/types/UpdateCommunityTag.js +2 -0
  80. package/dist/types/UpdateMultiCommunity.d.ts +6 -0
  81. package/dist/types/UpdateMultiCommunity.js +2 -0
  82. package/dist/types/VoteView.d.ts +1 -0
  83. package/package.json +3 -3
  84. package/dist/types/PostPaginationCursor.d.ts +0 -7
  85. /package/dist/types/{PostPaginationCursor.js → CreateMultiCommunity.js} +0 -0
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, ListBannedPersonsI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListInboxI, ListMediaI, ListPersonContentI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
2
+ import { CommunityIdQueryI, 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,7 +135,9 @@ 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 { CommunityIdQuery } from "./types/CommunityIdQuery";
133
141
  type RequestOptions = Pick<RequestInit, "signal">;
134
142
  /**
135
143
  * Helps build lemmy HTTP requests.
@@ -293,6 +301,14 @@ export declare class LemmyHttp extends Controller {
293
301
  * @summary Get a random community.
294
302
  */
295
303
  getRandomCommunity(form: GetRandomCommunityI, options?: RequestOptions): Promise<CommunityResponse>;
304
+ /**
305
+ * @summary Create a report for a community.
306
+ */
307
+ createCommunityReport(form: CreateCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
308
+ /**
309
+ * @summary Resolve a report for a private message.
310
+ */
311
+ resolveCommunityReport(form: ResolveCommunityReport, options?: RequestOptions): Promise<CommunityReportResponse>;
296
312
  /**
297
313
  * @summary Create a post.
298
314
  */
@@ -601,6 +617,18 @@ export declare class LemmyHttp extends Controller {
601
617
  * @summary List taglines.
602
618
  */
603
619
  listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise<ListTaglinesResponse>;
620
+ /**
621
+ * @summary Create a community post tag.
622
+ */
623
+ createCommunityTag(form: CreateCommunityTag, options?: RequestOptions): Promise<Tag>;
624
+ /**
625
+ * @summary Update a community post tag.
626
+ */
627
+ updateCommunityTag(form: UpdateCommunityTag, options?: RequestOptions): Promise<Tag>;
628
+ /**
629
+ * @summary Delete a post tag in a community.
630
+ */
631
+ deleteCommunityTag(form: DeleteCommunityTag, options?: RequestOptions): Promise<Tag>;
604
632
  /**
605
633
  * @summary Create a new oauth provider method
606
634
  */
@@ -656,19 +684,19 @@ export declare class LemmyHttp extends Controller {
656
684
  /**
657
685
  * @summary Upload new community icon.
658
686
  */
659
- uploadCommunityIcon(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
687
+ uploadCommunityIcon(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
660
688
  /**
661
689
  * @summary Delete the community icon.
662
690
  */
663
- deleteCommunityIcon(options?: RequestOptions): Promise<SuccessResponse>;
691
+ deleteCommunityIcon(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
664
692
  /**
665
693
  * @summary Upload new community banner.
666
694
  */
667
- uploadCommunityBanner(image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
695
+ uploadCommunityBanner(query: CommunityIdQueryI, image: UploadImage, options?: RequestOptions): Promise<UploadImageResponse>;
668
696
  /**
669
697
  * @summary Delete the community banner.
670
698
  */
671
- deleteCommunityBanner(options?: RequestOptions): Promise<SuccessResponse>;
699
+ deleteCommunityBanner(form: CommunityIdQuery, options?: RequestOptions): Promise<SuccessResponse>;
672
700
  /**
673
701
  * @summary Upload new site icon.
674
702
  */
@@ -693,6 +721,12 @@ export declare class LemmyHttp extends Controller {
693
721
  * @summary Health check for image functionality
694
722
  */
695
723
  imageHealth(options?: RequestOptions): Promise<SuccessResponse>;
724
+ /**
725
+ * Mark donation dialog as shown, so it isn't displayed anymore.
726
+ *
727
+ * `HTTP.POST /user/donation_dialog_shown`
728
+ */
729
+ donation_dialog_shown(options?: RequestOptions): Promise<SuccessResponse>;
696
730
  /**
697
731
  * Set the headers (can be used to set the auth header)
698
732
  */