lemmy-js-client 0.20.0-image-api-rework.8 → 0.20.0-inbox-combined.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. package/dist/http.d.ts +31 -32
  2. package/dist/http.js +30 -30
  3. package/dist/index.d.ts +46 -15
  4. package/dist/types/AdminAllowInstance.d.ts +3 -2
  5. package/dist/types/AdminAllowInstanceId.d.ts +1 -0
  6. package/dist/types/AdminAllowInstanceView.d.ts +1 -1
  7. package/dist/types/AdminBlockInstance.d.ts +3 -2
  8. package/dist/types/AdminBlockInstanceId.d.ts +1 -0
  9. package/dist/types/AdminPurgeComment.d.ts +3 -2
  10. package/dist/types/AdminPurgeCommentId.d.ts +1 -0
  11. package/dist/types/AdminPurgeCommentId.js +3 -0
  12. package/dist/types/AdminPurgeCommunity.d.ts +3 -2
  13. package/dist/types/AdminPurgeCommunityId.d.ts +1 -0
  14. package/dist/types/AdminPurgeCommunityId.js +3 -0
  15. package/dist/types/AdminPurgePerson.d.ts +3 -2
  16. package/dist/types/AdminPurgePersonId.d.ts +1 -0
  17. package/dist/types/AdminPurgePersonId.js +3 -0
  18. package/dist/types/AdminPurgePost.d.ts +3 -2
  19. package/dist/types/AdminPurgePostId.d.ts +1 -0
  20. package/dist/types/AdminPurgePostId.js +3 -0
  21. package/dist/types/CommunityAggregates.d.ts +2 -0
  22. package/dist/types/CommunityReport.d.ts +22 -0
  23. package/dist/types/CommunityReportId.d.ts +4 -0
  24. package/dist/types/CommunityReportId.js +3 -0
  25. package/dist/types/CommunityReportView.d.ts +16 -0
  26. package/dist/types/CreatePost.d.ts +2 -0
  27. package/dist/types/CreateSite.d.ts +0 -2
  28. package/dist/types/EditPost.d.ts +2 -0
  29. package/dist/types/EditSite.d.ts +0 -8
  30. package/dist/types/FederationError.d.ts +1 -1
  31. package/dist/types/GetComments.d.ts +0 -1
  32. package/dist/types/GetModlog.d.ts +3 -2
  33. package/dist/types/GetModlogResponse.d.ts +2 -34
  34. package/dist/types/GetPersonDetails.d.ts +0 -7
  35. package/dist/types/GetPersonDetailsResponse.d.ts +0 -4
  36. package/dist/types/GetPosts.d.ts +1 -0
  37. package/dist/types/GetSiteResponse.d.ts +0 -8
  38. package/dist/types/GetUnreadCountResponse.d.ts +2 -4
  39. package/dist/types/InboxCombinedPaginationCursor.d.ts +4 -0
  40. package/dist/types/InboxCombinedPaginationCursor.js +3 -0
  41. package/dist/types/InboxCombinedView.d.ts +13 -0
  42. package/dist/types/InboxDataType.d.ts +4 -0
  43. package/dist/types/InboxDataType.js +3 -0
  44. package/dist/types/LemmyErrorType.d.ts +1 -3
  45. package/dist/types/ListInbox.d.ts +11 -0
  46. package/dist/types/ListInboxResponse.d.ts +7 -0
  47. package/dist/types/ListPersonContent.d.ts +18 -0
  48. package/dist/types/ListPersonContentResponse.d.ts +7 -0
  49. package/dist/types/ListPersonSaved.d.ts +10 -0
  50. package/dist/types/ListPersonSavedResponse.d.ts +7 -0
  51. package/dist/types/MarkPersonCommentMentionAsRead.d.ts +8 -0
  52. package/dist/types/MarkPersonPostMentionAsRead.d.ts +8 -0
  53. package/dist/types/ModAdd.d.ts +3 -2
  54. package/dist/types/ModAddCommunity.d.ts +3 -2
  55. package/dist/types/ModAddCommunityId.d.ts +1 -0
  56. package/dist/types/ModAddCommunityId.js +3 -0
  57. package/dist/types/ModAddCommunityView.d.ts +1 -1
  58. package/dist/types/ModAddId.d.ts +1 -0
  59. package/dist/types/ModAddId.js +3 -0
  60. package/dist/types/ModAddView.d.ts +1 -1
  61. package/dist/types/ModBan.d.ts +3 -2
  62. package/dist/types/ModBanFromCommunity.d.ts +3 -2
  63. package/dist/types/ModBanFromCommunityId.d.ts +1 -0
  64. package/dist/types/ModBanFromCommunityId.js +3 -0
  65. package/dist/types/ModBanFromCommunityView.d.ts +1 -1
  66. package/dist/types/ModBanId.d.ts +1 -0
  67. package/dist/types/ModBanId.js +3 -0
  68. package/dist/types/ModBanView.d.ts +1 -1
  69. package/dist/types/ModFeaturePost.d.ts +3 -2
  70. package/dist/types/ModFeaturePostId.d.ts +1 -0
  71. package/dist/types/ModFeaturePostId.js +3 -0
  72. package/dist/types/ModFeaturePostView.d.ts +1 -0
  73. package/dist/types/ModHideCommunity.d.ts +3 -2
  74. package/dist/types/ModHideCommunityId.d.ts +1 -0
  75. package/dist/types/ModHideCommunityId.js +3 -0
  76. package/dist/types/ModLockPost.d.ts +3 -2
  77. package/dist/types/ModLockPostId.d.ts +1 -0
  78. package/dist/types/ModLockPostId.js +3 -0
  79. package/dist/types/ModLockPostView.d.ts +1 -0
  80. package/dist/types/ModRemoveComment.d.ts +3 -2
  81. package/dist/types/ModRemoveCommentId.d.ts +1 -0
  82. package/dist/types/ModRemoveCommentId.js +3 -0
  83. package/dist/types/ModRemoveCommentView.d.ts +1 -1
  84. package/dist/types/ModRemoveCommunity.d.ts +3 -2
  85. package/dist/types/ModRemoveCommunityId.d.ts +1 -0
  86. package/dist/types/ModRemoveCommunityId.js +3 -0
  87. package/dist/types/ModRemovePost.d.ts +3 -2
  88. package/dist/types/ModRemovePostId.d.ts +1 -0
  89. package/dist/types/ModRemovePostId.js +3 -0
  90. package/dist/types/ModRemovePostView.d.ts +1 -0
  91. package/dist/types/ModTransferCommunity.d.ts +3 -2
  92. package/dist/types/ModTransferCommunityId.d.ts +1 -0
  93. package/dist/types/ModTransferCommunityId.js +3 -0
  94. package/dist/types/ModTransferCommunityView.d.ts +1 -1
  95. package/dist/types/ModlogCombinedPaginationCursor.d.ts +4 -0
  96. package/dist/types/ModlogCombinedPaginationCursor.js +3 -0
  97. package/dist/types/ModlogCombinedView.d.ts +52 -0
  98. package/dist/types/{PersonMention.d.ts → PersonCommentMention.d.ts} +3 -3
  99. package/dist/types/PersonCommentMentionId.d.ts +4 -0
  100. package/dist/types/PersonCommentMentionId.js +3 -0
  101. package/dist/types/{PersonMentionView.d.ts → PersonCommentMentionView.d.ts} +4 -4
  102. package/dist/types/PersonCommentMentionView.js +2 -0
  103. package/dist/types/PersonContentCombinedPaginationCursor.d.ts +4 -0
  104. package/dist/types/PersonContentCombinedPaginationCursor.js +3 -0
  105. package/dist/types/PersonContentCombinedView.d.ts +7 -0
  106. package/dist/types/PersonContentCombinedView.js +2 -0
  107. package/dist/types/PersonContentType.d.ts +4 -0
  108. package/dist/types/PersonContentType.js +3 -0
  109. package/dist/types/PersonPostMention.d.ts +13 -0
  110. package/dist/types/PersonPostMention.js +2 -0
  111. package/dist/types/PersonPostMentionId.d.ts +4 -0
  112. package/dist/types/PersonPostMentionId.js +3 -0
  113. package/dist/types/PersonPostMentionView.d.ts +30 -0
  114. package/dist/types/PersonPostMentionView.js +2 -0
  115. package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +4 -0
  116. package/dist/types/PersonSavedCombinedPaginationCursor.js +3 -0
  117. package/dist/types/PostTags.d.ts +7 -0
  118. package/dist/types/PostTags.js +2 -0
  119. package/dist/types/PostView.d.ts +2 -0
  120. package/dist/types/ReportCombinedView.d.ts +4 -1
  121. package/dist/types/Search.d.ts +0 -1
  122. package/dist/types/Tag.d.ts +27 -0
  123. package/dist/types/Tag.js +2 -0
  124. package/dist/types/TagId.d.ts +4 -0
  125. package/dist/types/TagId.js +3 -0
  126. package/package.json +2 -2
  127. package/dist/types/CommentReplyResponse.d.ts +0 -7
  128. package/dist/types/GetPersonMentions.d.ts +0 -10
  129. package/dist/types/GetPersonMentionsResponse.d.ts +0 -7
  130. package/dist/types/GetPrivateMessages.d.ts +0 -10
  131. package/dist/types/GetReplies.d.ts +0 -10
  132. package/dist/types/GetRepliesResponse.d.ts +0 -7
  133. package/dist/types/MarkPersonMentionAsRead.d.ts +0 -8
  134. package/dist/types/ModlogListParams.d.ts +0 -17
  135. package/dist/types/PersonMentionId.d.ts +0 -4
  136. package/dist/types/PersonMentionResponse.d.ts +0 -7
  137. package/dist/types/PrivateMessagesResponse.d.ts +0 -7
  138. package/dist/types/ReportCombined.d.ts +0 -14
  139. package/dist/types/ReportCombinedId.d.ts +0 -4
  140. /package/dist/types/{PersonMentionId.js → AdminAllowInstanceId.js} +0 -0
  141. /package/dist/types/{ReportCombinedId.js → AdminBlockInstanceId.js} +0 -0
  142. /package/dist/types/{CommentReplyResponse.js → CommunityReport.js} +0 -0
  143. /package/dist/types/{GetPersonMentions.js → CommunityReportView.js} +0 -0
  144. /package/dist/types/{GetPersonMentionsResponse.js → InboxCombinedView.js} +0 -0
  145. /package/dist/types/{GetPrivateMessages.js → ListInbox.js} +0 -0
  146. /package/dist/types/{GetReplies.js → ListInboxResponse.js} +0 -0
  147. /package/dist/types/{GetRepliesResponse.js → ListPersonContent.js} +0 -0
  148. /package/dist/types/{MarkPersonMentionAsRead.js → ListPersonContentResponse.js} +0 -0
  149. /package/dist/types/{ModlogListParams.js → ListPersonSaved.js} +0 -0
  150. /package/dist/types/{PersonMention.js → ListPersonSavedResponse.js} +0 -0
  151. /package/dist/types/{PersonMentionResponse.js → MarkPersonCommentMentionAsRead.js} +0 -0
  152. /package/dist/types/{PersonMentionView.js → MarkPersonPostMentionAsRead.js} +0 -0
  153. /package/dist/types/{PrivateMessagesResponse.js → ModlogCombinedView.js} +0 -0
  154. /package/dist/types/{ReportCombined.js → PersonCommentMention.js} +0 -0
package/dist/http.d.ts CHANGED
@@ -14,7 +14,6 @@ import { BlockCommunityResponse } from "./types/BlockCommunityResponse";
14
14
  import { BlockPerson } from "./types/BlockPerson";
15
15
  import { BlockPersonResponse } from "./types/BlockPersonResponse";
16
16
  import { ChangePassword } from "./types/ChangePassword";
17
- import { CommentReplyResponse } from "./types/CommentReplyResponse";
18
17
  import { CommentReportResponse } from "./types/CommentReportResponse";
19
18
  import { CommentResponse } from "./types/CommentResponse";
20
19
  import { CommunityResponse } from "./types/CommunityResponse";
@@ -60,15 +59,10 @@ import { GetModlog } from "./types/GetModlog";
60
59
  import { GetModlogResponse } from "./types/GetModlogResponse";
61
60
  import { GetPersonDetails } from "./types/GetPersonDetails";
62
61
  import { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
63
- import { GetPersonMentions } from "./types/GetPersonMentions";
64
- import { GetPersonMentionsResponse } from "./types/GetPersonMentionsResponse";
65
62
  import { GetPost } from "./types/GetPost";
66
63
  import { GetPostResponse } from "./types/GetPostResponse";
67
64
  import { GetPosts } from "./types/GetPosts";
68
65
  import { GetPostsResponse } from "./types/GetPostsResponse";
69
- import { GetPrivateMessages } from "./types/GetPrivateMessages";
70
- import { GetReplies } from "./types/GetReplies";
71
- import { GetRepliesResponse } from "./types/GetRepliesResponse";
72
66
  import { GetReportCount } from "./types/GetReportCount";
73
67
  import { GetReportCountResponse } from "./types/GetReportCountResponse";
74
68
  import { GetSiteMetadata } from "./types/GetSiteMetadata";
@@ -84,17 +78,14 @@ import { LockPost } from "./types/LockPost";
84
78
  import { Login } from "./types/Login";
85
79
  import { LoginResponse } from "./types/LoginResponse";
86
80
  import { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
87
- import { MarkPersonMentionAsRead } from "./types/MarkPersonMentionAsRead";
88
81
  import { MarkPostAsRead } from "./types/MarkPostAsRead";
89
82
  import { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
90
83
  import { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
91
84
  import { PasswordReset } from "./types/PasswordReset";
92
- import { PersonMentionResponse } from "./types/PersonMentionResponse";
93
85
  import { PostReportResponse } from "./types/PostReportResponse";
94
86
  import { PostResponse } from "./types/PostResponse";
95
87
  import { PrivateMessageReportResponse } from "./types/PrivateMessageReportResponse";
96
88
  import { PrivateMessageResponse } from "./types/PrivateMessageResponse";
97
- import { PrivateMessagesResponse } from "./types/PrivateMessagesResponse";
98
89
  import { PurgeComment } from "./types/PurgeComment";
99
90
  import { PurgeCommunity } from "./types/PurgeCommunity";
100
91
  import { PurgePerson } from "./types/PurgePerson";
@@ -153,8 +144,16 @@ import { MyUserInfo } from "./types/MyUserInfo";
153
144
  import { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
154
145
  import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
155
146
  import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
147
+ import { ListPersonContent } from "./types/ListPersonContent";
148
+ import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
149
+ import { ListPersonSaved } from "./types/ListPersonSaved";
150
+ import { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
156
151
  import { DeleteImageParams } from "./types/DeleteImageParams";
157
152
  import { UploadImageResponse } from "./types/UploadImageResponse";
153
+ import { ListInboxResponse } from "./types/ListInboxResponse";
154
+ import { ListInbox } from "./types/ListInbox";
155
+ import { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
156
+ import { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
158
157
  type RequestOptions = Pick<RequestInit, "signal">;
159
158
  /**
160
159
  * Helps build lemmy HTTP requests.
@@ -487,7 +486,7 @@ export declare class LemmyHttp {
487
486
  *
488
487
  * `HTTP.POST /comment/mark_as_read`
489
488
  */
490
- markCommentReplyAsRead(form: MarkCommentReplyAsRead, options?: RequestOptions): Promise<CommentReplyResponse>;
489
+ markCommentReplyAsRead(form: MarkCommentReplyAsRead, options?: RequestOptions): Promise<SuccessResponse>;
491
490
  /**
492
491
  * Like / vote on a comment.
493
492
  *
@@ -536,12 +535,6 @@ export declare class LemmyHttp {
536
535
  * `HTTP.PUT /comment/report/resolve`
537
536
  */
538
537
  resolveCommentReport(form: ResolveCommentReport, options?: RequestOptions): Promise<CommentReportResponse>;
539
- /**
540
- * Get / fetch private messages.
541
- *
542
- * `HTTP.GET /private_message/list`
543
- */
544
- getPrivateMessages(form: GetPrivateMessages, options?: RequestOptions): Promise<PrivateMessagesResponse>;
545
538
  /**
546
539
  * Create a private message.
547
540
  *
@@ -603,29 +596,23 @@ export declare class LemmyHttp {
603
596
  */
604
597
  getPersonDetails(form?: GetPersonDetails, options?: RequestOptions): Promise<GetPersonDetailsResponse>;
605
598
  /**
606
- * Get mentions for your user.
607
- *
608
- * `HTTP.GET /account/mention`
609
- */
610
- getPersonMentions(form: GetPersonMentions, options?: RequestOptions): Promise<GetPersonMentionsResponse>;
611
- /**
612
- * Mark a person mention as read.
599
+ * List the content for a person.
613
600
  *
614
- * `HTTP.POST /account/mention/mark_as_read`
601
+ * `HTTP.GET /person/content`
615
602
  */
616
- markPersonMentionAsRead(form: MarkPersonMentionAsRead, options?: RequestOptions): Promise<PersonMentionResponse>;
603
+ listPersonContent(form?: ListPersonContent, options?: RequestOptions): Promise<ListPersonContentResponse>;
617
604
  /**
618
605
  * Mark a person mention as read.
619
606
  *
620
- * `HTTP.POST /account/mention/mark_as_read`
607
+ * `HTTP.POST /account/mention/comment/mark_as_read`
621
608
  */
622
- markPersonAllMentionAsRead(options?: RequestOptions): Promise<PersonMentionResponse>;
609
+ markCommentMentionAsRead(form: MarkPersonCommentMentionAsRead, options?: RequestOptions): Promise<SuccessResponse>;
623
610
  /**
624
- * Get comment replies.
611
+ * Mark a person post body mention as read.
625
612
  *
626
- * `HTTP.GET /account/replies`
613
+ * `HTTP.POST /account/mention/post/mark_as_read`
627
614
  */
628
- getReplies(form: GetReplies, options?: RequestOptions): Promise<GetRepliesResponse>;
615
+ markPostMentionAsRead(form: MarkPersonPostMentionAsRead, options?: RequestOptions): Promise<SuccessResponse>;
629
616
  /**
630
617
  * Ban a person from your site.
631
618
  *
@@ -671,9 +658,9 @@ export declare class LemmyHttp {
671
658
  /**
672
659
  * Mark all replies as read.
673
660
  *
674
- * `HTTP.POST /account/mention/mark_as_read/all`
661
+ * `HTTP.POST /account/mark_as_read/all`
675
662
  */
676
- markAllAsRead(options?: RequestOptions): Promise<GetRepliesResponse>;
663
+ markAllNotificationsAsRead(options?: RequestOptions): Promise<SuccessResponse>;
677
664
  /**
678
665
  * Save your user settings.
679
666
  *
@@ -698,12 +685,24 @@ export declare class LemmyHttp {
698
685
  * `HTTP.GET /account/unread_count`
699
686
  */
700
687
  getUnreadCount(options?: RequestOptions): Promise<GetUnreadCountResponse>;
688
+ /**
689
+ * Get your inbox (replies, comment mentions, post mentions, and messages)
690
+ *
691
+ * `HTTP.GET /account/inbox`
692
+ */
693
+ listInbox(form: ListInbox, options?: RequestOptions): Promise<ListInboxResponse>;
701
694
  /**
702
695
  * Verify your email
703
696
  *
704
697
  * `HTTP.POST /account/auth/verify_email`
705
698
  */
706
699
  verifyEmail(form: VerifyEmail, options?: RequestOptions): Promise<SuccessResponse>;
700
+ /**
701
+ * List your saved content.
702
+ *
703
+ * `HTTP.GET /account/auth/saved`
704
+ */
705
+ listPersonSaved(form: ListPersonSaved, options?: RequestOptions): Promise<ListPersonSavedResponse>;
707
706
  /**
708
707
  * Add an admin to your site.
709
708
  *
package/dist/http.js CHANGED
@@ -541,14 +541,6 @@ class LemmyHttp {
541
541
  resolveCommentReport(form, options) {
542
542
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/report/resolve", form, options);
543
543
  }
544
- /**
545
- * Get / fetch private messages.
546
- *
547
- * `HTTP.GET /private_message/list`
548
- */
549
- getPrivateMessages(form, options) {
550
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/private_message/list", form, options);
551
- }
552
544
  /**
553
545
  * Create a private message.
554
546
  *
@@ -630,36 +622,28 @@ class LemmyHttp {
630
622
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person", form, options);
631
623
  }
632
624
  /**
633
- * Get mentions for your user.
634
- *
635
- * `HTTP.GET /account/mention`
636
- */
637
- getPersonMentions(form, options) {
638
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/mention", form, options);
639
- }
640
- /**
641
- * Mark a person mention as read.
625
+ * List the content for a person.
642
626
  *
643
- * `HTTP.POST /account/mention/mark_as_read`
627
+ * `HTTP.GET /person/content`
644
628
  */
645
- markPersonMentionAsRead(form, options) {
646
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/mark_as_read", form, options);
629
+ listPersonContent(form = {}, options) {
630
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person/content", form, options);
647
631
  }
648
632
  /**
649
633
  * Mark a person mention as read.
650
634
  *
651
- * `HTTP.POST /account/mention/mark_as_read`
635
+ * `HTTP.POST /account/mention/comment/mark_as_read`
652
636
  */
653
- markPersonAllMentionAsRead(options) {
654
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/mark_as_read", {}, options);
637
+ markCommentMentionAsRead(form, options) {
638
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/comment/mark_as_read", form, options);
655
639
  }
656
640
  /**
657
- * Get comment replies.
641
+ * Mark a person post body mention as read.
658
642
  *
659
- * `HTTP.GET /account/replies`
643
+ * `HTTP.POST /account/mention/post/mark_as_read`
660
644
  */
661
- getReplies(form, options) {
662
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/replies", form, options);
645
+ markPostMentionAsRead(form, options) {
646
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/post/mark_as_read", form, options);
663
647
  }
664
648
  /**
665
649
  * Ban a person from your site.
@@ -720,10 +704,10 @@ class LemmyHttp {
720
704
  /**
721
705
  * Mark all replies as read.
722
706
  *
723
- * `HTTP.POST /account/mention/mark_as_read/all`
707
+ * `HTTP.POST /account/mark_as_read/all`
724
708
  */
725
- markAllAsRead(options) {
726
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/mark_as_read/all", {}, options);
709
+ markAllNotificationsAsRead(options) {
710
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read/all", {}, options);
727
711
  }
728
712
  /**
729
713
  * Save your user settings.
@@ -757,6 +741,14 @@ class LemmyHttp {
757
741
  getUnreadCount(options) {
758
742
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/unread_count", {}, options);
759
743
  }
744
+ /**
745
+ * Get your inbox (replies, comment mentions, post mentions, and messages)
746
+ *
747
+ * `HTTP.GET /account/inbox`
748
+ */
749
+ listInbox(form, options) {
750
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/inbox", form, options);
751
+ }
760
752
  /**
761
753
  * Verify your email
762
754
  *
@@ -765,6 +757,14 @@ class LemmyHttp {
765
757
  verifyEmail(form, options) {
766
758
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/verify_email", form, options);
767
759
  }
760
+ /**
761
+ * List your saved content.
762
+ *
763
+ * `HTTP.GET /account/auth/saved`
764
+ */
765
+ listPersonSaved(form, options) {
766
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/saved", form, options);
767
+ }
768
768
  /**
769
769
  * Add an admin to your site.
770
770
  *
package/dist/index.d.ts CHANGED
@@ -6,18 +6,24 @@ export { AddAdminResponse } from "./types/AddAdminResponse";
6
6
  export { AddModToCommunity } from "./types/AddModToCommunity";
7
7
  export { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
8
8
  export { AdminAllowInstance } from "./types/AdminAllowInstance";
9
+ export { AdminAllowInstanceId } from "./types/AdminAllowInstanceId";
9
10
  export { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
10
11
  export { AdminAllowInstanceView } from "./types/AdminAllowInstanceView";
11
12
  export { AdminBlockInstance } from "./types/AdminBlockInstance";
13
+ export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
12
14
  export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
13
15
  export { AdminBlockInstanceView } from "./types/AdminBlockInstanceView";
14
16
  export { AdminPurgeComment } from "./types/AdminPurgeComment";
17
+ export { AdminPurgeCommentId } from "./types/AdminPurgeCommentId";
15
18
  export { AdminPurgeCommentView } from "./types/AdminPurgeCommentView";
16
19
  export { AdminPurgeCommunity } from "./types/AdminPurgeCommunity";
20
+ export { AdminPurgeCommunityId } from "./types/AdminPurgeCommunityId";
17
21
  export { AdminPurgeCommunityView } from "./types/AdminPurgeCommunityView";
18
22
  export { AdminPurgePerson } from "./types/AdminPurgePerson";
23
+ export { AdminPurgePersonId } from "./types/AdminPurgePersonId";
19
24
  export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
20
25
  export { AdminPurgePost } from "./types/AdminPurgePost";
26
+ export { AdminPurgePostId } from "./types/AdminPurgePostId";
21
27
  export { AdminPurgePostView } from "./types/AdminPurgePostView";
22
28
  export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
23
29
  export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
@@ -38,7 +44,6 @@ export { CommentAggregates } from "./types/CommentAggregates";
38
44
  export { CommentId } from "./types/CommentId";
39
45
  export { CommentReply } from "./types/CommentReply";
40
46
  export { CommentReplyId } from "./types/CommentReplyId";
41
- export { CommentReplyResponse } from "./types/CommentReplyResponse";
42
47
  export { CommentReplyView } from "./types/CommentReplyView";
43
48
  export { CommentReport } from "./types/CommentReport";
44
49
  export { CommentReportId } from "./types/CommentReportId";
@@ -53,6 +58,9 @@ export { CommunityFollowerState } from "./types/CommunityFollowerState";
53
58
  export { CommunityFollowerView } from "./types/CommunityFollowerView";
54
59
  export { CommunityId } from "./types/CommunityId";
55
60
  export { CommunityModeratorView } from "./types/CommunityModeratorView";
61
+ export { CommunityReport } from "./types/CommunityReport";
62
+ export { CommunityReportId } from "./types/CommunityReportId";
63
+ export { CommunityReportView } from "./types/CommunityReportView";
56
64
  export { CommunityResponse } from "./types/CommunityResponse";
57
65
  export { CommunitySortType } from "./types/CommunitySortType";
58
66
  export { CommunityView } from "./types/CommunityView";
@@ -113,17 +121,12 @@ export { GetModlog } from "./types/GetModlog";
113
121
  export { GetModlogResponse } from "./types/GetModlogResponse";
114
122
  export { GetPersonDetails } from "./types/GetPersonDetails";
115
123
  export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
116
- export { GetPersonMentions } from "./types/GetPersonMentions";
117
- export { GetPersonMentionsResponse } from "./types/GetPersonMentionsResponse";
118
124
  export { GetPost } from "./types/GetPost";
119
125
  export { GetPostResponse } from "./types/GetPostResponse";
120
126
  export { GetPosts } from "./types/GetPosts";
121
127
  export { GetPostsResponse } from "./types/GetPostsResponse";
122
- export { GetPrivateMessages } from "./types/GetPrivateMessages";
123
128
  export { GetRandomCommunity } from "./types/GetRandomCommunity";
124
129
  export { GetRegistrationApplication } from "./types/GetRegistrationApplication";
125
- export { GetReplies } from "./types/GetReplies";
126
- export { GetRepliesResponse } from "./types/GetRepliesResponse";
127
130
  export { GetReportCount } from "./types/GetReportCount";
128
131
  export { GetReportCountResponse } from "./types/GetReportCountResponse";
129
132
  export { GetSiteMetadata } from "./types/GetSiteMetadata";
@@ -136,6 +139,9 @@ export { HidePost } from "./types/HidePost";
136
139
  export { ImageDetails } from "./types/ImageDetails";
137
140
  export { ImageGetParams } from "./types/ImageGetParams";
138
141
  export { ImageProxyParams } from "./types/ImageProxyParams";
142
+ export { InboxCombinedPaginationCursor } from "./types/InboxCombinedPaginationCursor";
143
+ export { InboxCombinedView } from "./types/InboxCombinedView";
144
+ export { InboxDataType } from "./types/InboxDataType";
139
145
  export { Instance } from "./types/Instance";
140
146
  export { InstanceId } from "./types/InstanceId";
141
147
  export { InstanceWithFederationState } from "./types/InstanceWithFederationState";
@@ -151,9 +157,15 @@ export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
151
157
  export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
152
158
  export { ListCustomEmojis } from "./types/ListCustomEmojis";
153
159
  export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
160
+ export { ListInbox } from "./types/ListInbox";
161
+ export { ListInboxResponse } from "./types/ListInboxResponse";
154
162
  export { ListLoginsResponse } from "./types/ListLoginsResponse";
155
163
  export { ListMedia } from "./types/ListMedia";
156
164
  export { ListMediaResponse } from "./types/ListMediaResponse";
165
+ export { ListPersonContent } from "./types/ListPersonContent";
166
+ export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
167
+ export { ListPersonSaved } from "./types/ListPersonSaved";
168
+ export { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
157
169
  export { ListPostLikes } from "./types/ListPostLikes";
158
170
  export { ListPostLikesResponse } from "./types/ListPostLikesResponse";
159
171
  export { ListRegistrationApplications } from "./types/ListRegistrationApplications";
@@ -179,33 +191,46 @@ export { LoginResponse } from "./types/LoginResponse";
179
191
  export { LoginToken } from "./types/LoginToken";
180
192
  export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
181
193
  export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
182
- export { MarkPersonMentionAsRead } from "./types/MarkPersonMentionAsRead";
194
+ export { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
195
+ export { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
183
196
  export { MarkPostAsRead } from "./types/MarkPostAsRead";
184
197
  export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
185
198
  export { ModAdd } from "./types/ModAdd";
186
199
  export { ModAddCommunity } from "./types/ModAddCommunity";
200
+ export { ModAddCommunityId } from "./types/ModAddCommunityId";
187
201
  export { ModAddCommunityView } from "./types/ModAddCommunityView";
202
+ export { ModAddId } from "./types/ModAddId";
188
203
  export { ModAddView } from "./types/ModAddView";
189
204
  export { ModBan } from "./types/ModBan";
190
205
  export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
206
+ export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
191
207
  export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
208
+ export { ModBanId } from "./types/ModBanId";
192
209
  export { ModBanView } from "./types/ModBanView";
193
210
  export { ModFeaturePost } from "./types/ModFeaturePost";
211
+ export { ModFeaturePostId } from "./types/ModFeaturePostId";
194
212
  export { ModFeaturePostView } from "./types/ModFeaturePostView";
195
213
  export { ModHideCommunity } from "./types/ModHideCommunity";
214
+ export { ModHideCommunityId } from "./types/ModHideCommunityId";
196
215
  export { ModHideCommunityView } from "./types/ModHideCommunityView";
197
216
  export { ModLockPost } from "./types/ModLockPost";
217
+ export { ModLockPostId } from "./types/ModLockPostId";
198
218
  export { ModLockPostView } from "./types/ModLockPostView";
199
219
  export { ModRemoveComment } from "./types/ModRemoveComment";
220
+ export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
200
221
  export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
201
222
  export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
223
+ export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
202
224
  export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
203
225
  export { ModRemovePost } from "./types/ModRemovePost";
226
+ export { ModRemovePostId } from "./types/ModRemovePostId";
204
227
  export { ModRemovePostView } from "./types/ModRemovePostView";
205
228
  export { ModTransferCommunity } from "./types/ModTransferCommunity";
229
+ export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
206
230
  export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
207
231
  export { ModlogActionType } from "./types/ModlogActionType";
208
- export { ModlogListParams } from "./types/ModlogListParams";
232
+ export { ModlogCombinedPaginationCursor } from "./types/ModlogCombinedPaginationCursor";
233
+ export { ModlogCombinedView } from "./types/ModlogCombinedView";
209
234
  export { MyUserInfo } from "./types/MyUserInfo";
210
235
  export { OAuthAccount } from "./types/OAuthAccount";
211
236
  export { OAuthProvider } from "./types/OAuthProvider";
@@ -217,11 +242,17 @@ export { PasswordReset } from "./types/PasswordReset";
217
242
  export { PendingFollow } from "./types/PendingFollow";
218
243
  export { Person } from "./types/Person";
219
244
  export { PersonAggregates } from "./types/PersonAggregates";
245
+ export { PersonCommentMention } from "./types/PersonCommentMention";
246
+ export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
247
+ export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
248
+ export { PersonContentCombinedPaginationCursor } from "./types/PersonContentCombinedPaginationCursor";
249
+ export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
250
+ export { PersonContentType } from "./types/PersonContentType";
220
251
  export { PersonId } from "./types/PersonId";
221
- export { PersonMention } from "./types/PersonMention";
222
- export { PersonMentionId } from "./types/PersonMentionId";
223
- export { PersonMentionResponse } from "./types/PersonMentionResponse";
224
- export { PersonMentionView } from "./types/PersonMentionView";
252
+ export { PersonPostMention } from "./types/PersonPostMention";
253
+ export { PersonPostMentionId } from "./types/PersonPostMentionId";
254
+ export { PersonPostMentionView } from "./types/PersonPostMentionView";
255
+ export { PersonSavedCombinedPaginationCursor } from "./types/PersonSavedCombinedPaginationCursor";
225
256
  export { PersonView } from "./types/PersonView";
226
257
  export { Post } from "./types/Post";
227
258
  export { PostAggregates } from "./types/PostAggregates";
@@ -234,6 +265,7 @@ export { PostReportResponse } from "./types/PostReportResponse";
234
265
  export { PostReportView } from "./types/PostReportView";
235
266
  export { PostResponse } from "./types/PostResponse";
236
267
  export { PostSortType } from "./types/PostSortType";
268
+ export { PostTags } from "./types/PostTags";
237
269
  export { PostView } from "./types/PostView";
238
270
  export { PrivateMessage } from "./types/PrivateMessage";
239
271
  export { PrivateMessageId } from "./types/PrivateMessageId";
@@ -243,7 +275,6 @@ export { PrivateMessageReportResponse } from "./types/PrivateMessageReportRespon
243
275
  export { PrivateMessageReportView } from "./types/PrivateMessageReportView";
244
276
  export { PrivateMessageResponse } from "./types/PrivateMessageResponse";
245
277
  export { PrivateMessageView } from "./types/PrivateMessageView";
246
- export { PrivateMessagesResponse } from "./types/PrivateMessagesResponse";
247
278
  export { PublicOAuthProvider } from "./types/PublicOAuthProvider";
248
279
  export { PurgeComment } from "./types/PurgeComment";
249
280
  export { PurgeCommunity } from "./types/PurgeCommunity";
@@ -259,8 +290,6 @@ export { RegistrationMode } from "./types/RegistrationMode";
259
290
  export { RemoveComment } from "./types/RemoveComment";
260
291
  export { RemoveCommunity } from "./types/RemoveCommunity";
261
292
  export { RemovePost } from "./types/RemovePost";
262
- export { ReportCombined } from "./types/ReportCombined";
263
- export { ReportCombinedId } from "./types/ReportCombinedId";
264
293
  export { ReportCombinedPaginationCursor } from "./types/ReportCombinedPaginationCursor";
265
294
  export { ReportCombinedView } from "./types/ReportCombinedView";
266
295
  export { ResolveCommentReport } from "./types/ResolveCommentReport";
@@ -282,6 +311,8 @@ export { SiteResponse } from "./types/SiteResponse";
282
311
  export { SiteView } from "./types/SiteView";
283
312
  export { SubscribedType } from "./types/SubscribedType";
284
313
  export { SuccessResponse } from "./types/SuccessResponse";
314
+ export { Tag } from "./types/Tag";
315
+ export { TagId } from "./types/TagId";
285
316
  export { Tagline } from "./types/Tagline";
286
317
  export { TaglineId } from "./types/TaglineId";
287
318
  export { TaglineResponse } from "./types/TaglineResponse";
@@ -1,10 +1,11 @@
1
+ import type { AdminAllowInstanceId } from "./AdminAllowInstanceId";
1
2
  import type { InstanceId } from "./InstanceId";
2
3
  import type { PersonId } from "./PersonId";
3
4
  export type AdminAllowInstance = {
4
- id: number;
5
+ id: AdminAllowInstanceId;
5
6
  instance_id: InstanceId;
6
7
  admin_person_id: PersonId;
7
8
  allowed: boolean;
8
9
  reason?: string;
9
- when_: string;
10
+ published: string;
10
11
  };
@@ -0,0 +1 @@
1
+ export type AdminAllowInstanceId = number;
@@ -5,7 +5,7 @@ import type { Person } from "./Person";
5
5
  * When an admin purges a post.
6
6
  */
7
7
  export type AdminAllowInstanceView = {
8
- admin_block_instance: AdminAllowInstance;
8
+ admin_allow_instance: AdminAllowInstance;
9
9
  instance: Instance;
10
10
  admin?: Person;
11
11
  };
@@ -1,11 +1,12 @@
1
+ import type { AdminBlockInstanceId } from "./AdminBlockInstanceId";
1
2
  import type { InstanceId } from "./InstanceId";
2
3
  import type { PersonId } from "./PersonId";
3
4
  export type AdminBlockInstance = {
4
- id: number;
5
+ id: AdminBlockInstanceId;
5
6
  instance_id: InstanceId;
6
7
  admin_person_id: PersonId;
7
8
  blocked: boolean;
8
9
  reason?: string;
9
10
  expires?: string;
10
- when_: string;
11
+ published: string;
11
12
  };
@@ -0,0 +1 @@
1
+ export type AdminBlockInstanceId = number;
@@ -1,12 +1,13 @@
1
+ import type { AdminPurgeCommentId } from "./AdminPurgeCommentId";
1
2
  import type { PersonId } from "./PersonId";
2
3
  import type { PostId } from "./PostId";
3
4
  /**
4
5
  * When an admin purges a comment.
5
6
  */
6
7
  export type AdminPurgeComment = {
7
- id: number;
8
+ id: AdminPurgeCommentId;
8
9
  admin_person_id: PersonId;
9
10
  post_id: PostId;
10
11
  reason?: string;
11
- when_: string;
12
+ published: string;
12
13
  };
@@ -0,0 +1 @@
1
+ export type AdminPurgeCommentId = number;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,11 @@
1
+ import type { AdminPurgeCommunityId } from "./AdminPurgeCommunityId";
1
2
  import type { PersonId } from "./PersonId";
2
3
  /**
3
4
  * When an admin purges a community.
4
5
  */
5
6
  export type AdminPurgeCommunity = {
6
- id: number;
7
+ id: AdminPurgeCommunityId;
7
8
  admin_person_id: PersonId;
8
9
  reason?: string;
9
- when_: string;
10
+ published: string;
10
11
  };
@@ -0,0 +1 @@
1
+ export type AdminPurgeCommunityId = number;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,11 @@
1
+ import type { AdminPurgePersonId } from "./AdminPurgePersonId";
1
2
  import type { PersonId } from "./PersonId";
2
3
  /**
3
4
  * When an admin purges a person.
4
5
  */
5
6
  export type AdminPurgePerson = {
6
- id: number;
7
+ id: AdminPurgePersonId;
7
8
  admin_person_id: PersonId;
8
9
  reason?: string;
9
- when_: string;
10
+ published: string;
10
11
  };
@@ -0,0 +1 @@
1
+ export type AdminPurgePersonId = number;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +1,13 @@
1
+ import type { AdminPurgePostId } from "./AdminPurgePostId";
1
2
  import type { CommunityId } from "./CommunityId";
2
3
  import type { PersonId } from "./PersonId";
3
4
  /**
4
5
  * When an admin purges a post.
5
6
  */
6
7
  export type AdminPurgePost = {
7
- id: number;
8
+ id: AdminPurgePostId;
8
9
  admin_person_id: PersonId;
9
10
  community_id: CommunityId;
10
11
  reason?: string;
11
- when_: string;
12
+ published: string;
12
13
  };
@@ -0,0 +1 @@
1
+ export type AdminPurgePostId = number;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -25,4 +25,6 @@ export type CommunityAggregates = {
25
25
  */
26
26
  users_active_half_year: number;
27
27
  subscribers_local: number;
28
+ report_count: number;
29
+ unresolved_report_count: number;
28
30
  };
@@ -0,0 +1,22 @@
1
+ import type { CommunityId } from "./CommunityId";
2
+ import type { CommunityReportId } from "./CommunityReportId";
3
+ import type { PersonId } from "./PersonId";
4
+ /**
5
+ * A comment report.
6
+ */
7
+ export type CommunityReport = {
8
+ id: CommunityReportId;
9
+ creator_id: PersonId;
10
+ community_id: CommunityId;
11
+ original_community_name: string;
12
+ original_community_title: string;
13
+ original_community_description?: string;
14
+ original_community_sidebar?: string;
15
+ original_community_icon?: string;
16
+ original_community_banner?: string;
17
+ reason: string;
18
+ resolved: boolean;
19
+ resolver_id?: PersonId;
20
+ published: string;
21
+ updated?: string;
22
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * The community report id.
3
+ */
4
+ export type CommunityReportId = number;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });