lemmy-js-client 0.20.0-reports-combined.2 → 0.20.0-search-combined.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. package/dist/http.d.ts +161 -58
  2. package/dist/http.js +251 -104
  3. package/dist/index.d.ts +55 -16
  4. package/dist/other_types.d.ts +1 -18
  5. package/dist/other_types.js +1 -1
  6. package/dist/types/AdminAllowInstance.d.ts +3 -2
  7. package/dist/types/AdminAllowInstanceId.d.ts +1 -0
  8. package/dist/types/AdminAllowInstanceView.d.ts +1 -1
  9. package/dist/types/AdminBlockInstance.d.ts +3 -2
  10. package/dist/types/AdminBlockInstanceId.d.ts +1 -0
  11. package/dist/types/AdminPurgeComment.d.ts +3 -2
  12. package/dist/types/AdminPurgeCommentId.d.ts +1 -0
  13. package/dist/types/AdminPurgeCommentId.js +3 -0
  14. package/dist/types/AdminPurgeCommunity.d.ts +3 -2
  15. package/dist/types/AdminPurgeCommunityId.d.ts +1 -0
  16. package/dist/types/AdminPurgeCommunityId.js +3 -0
  17. package/dist/types/AdminPurgePerson.d.ts +3 -2
  18. package/dist/types/AdminPurgePersonId.d.ts +1 -0
  19. package/dist/types/AdminPurgePersonId.js +3 -0
  20. package/dist/types/AdminPurgePost.d.ts +3 -2
  21. package/dist/types/AdminPurgePostId.d.ts +1 -0
  22. package/dist/types/AdminPurgePostId.js +3 -0
  23. package/dist/types/CommunityAggregates.d.ts +2 -0
  24. package/dist/types/CommunityReport.d.ts +22 -0
  25. package/dist/types/CommunityReportId.d.ts +4 -0
  26. package/dist/types/CommunityReportId.js +3 -0
  27. package/dist/types/CommunityReportView.d.ts +16 -0
  28. package/dist/types/CreatePost.d.ts +2 -0
  29. package/dist/types/CreateSite.d.ts +1 -4
  30. package/dist/types/DeleteImageParams.d.ts +3 -0
  31. package/dist/types/DeleteImageParams.js +3 -0
  32. package/dist/types/EditCommunity.d.ts +0 -8
  33. package/dist/types/EditPost.d.ts +2 -0
  34. package/dist/types/EditSite.d.ts +5 -16
  35. package/dist/types/FederationError.d.ts +1 -1
  36. package/dist/types/GetComments.d.ts +0 -1
  37. package/dist/types/GetModlog.d.ts +3 -2
  38. package/dist/types/GetModlogResponse.d.ts +2 -34
  39. package/dist/types/GetPersonDetails.d.ts +0 -7
  40. package/dist/types/GetPersonDetailsResponse.d.ts +0 -4
  41. package/dist/types/GetPosts.d.ts +5 -0
  42. package/dist/types/GetRandomCommunity.d.ts +1 -0
  43. package/dist/types/GetSiteResponse.d.ts +1 -10
  44. package/dist/types/GetUnreadCountResponse.d.ts +2 -4
  45. package/dist/types/ImageGetParams.d.ts +4 -0
  46. package/dist/types/ImageGetParams.js +3 -0
  47. package/dist/types/ImageProxyParams.d.ts +5 -0
  48. package/dist/types/ImageProxyParams.js +3 -0
  49. package/dist/types/InboxCombinedPaginationCursor.d.ts +4 -0
  50. package/dist/types/InboxCombinedPaginationCursor.js +3 -0
  51. package/dist/types/InboxCombinedView.d.ts +13 -0
  52. package/dist/types/InboxDataType.d.ts +4 -0
  53. package/dist/types/InboxDataType.js +3 -0
  54. package/dist/types/LemmyErrorType.d.ts +5 -3
  55. package/dist/types/ListInbox.d.ts +11 -0
  56. package/dist/types/ListInboxResponse.d.ts +7 -0
  57. package/dist/types/ListPersonContent.d.ts +18 -0
  58. package/dist/types/ListPersonContentResponse.d.ts +7 -0
  59. package/dist/types/ListPersonSaved.d.ts +10 -0
  60. package/dist/types/ListPersonSavedResponse.d.ts +7 -0
  61. package/dist/types/LocalImage.d.ts +0 -1
  62. package/dist/types/LocalSite.d.ts +5 -0
  63. package/dist/types/LocalUser.d.ts +9 -0
  64. package/dist/types/MarkPersonCommentMentionAsRead.d.ts +8 -0
  65. package/dist/types/MarkPersonPostMentionAsRead.d.ts +8 -0
  66. package/dist/types/ModAdd.d.ts +3 -2
  67. package/dist/types/ModAddCommunity.d.ts +3 -2
  68. package/dist/types/ModAddCommunityId.d.ts +1 -0
  69. package/dist/types/ModAddCommunityId.js +3 -0
  70. package/dist/types/ModAddCommunityView.d.ts +1 -1
  71. package/dist/types/ModAddId.d.ts +1 -0
  72. package/dist/types/ModAddId.js +3 -0
  73. package/dist/types/ModAddView.d.ts +1 -1
  74. package/dist/types/ModBan.d.ts +3 -2
  75. package/dist/types/ModBanFromCommunity.d.ts +3 -2
  76. package/dist/types/ModBanFromCommunityId.d.ts +1 -0
  77. package/dist/types/ModBanFromCommunityId.js +3 -0
  78. package/dist/types/ModBanFromCommunityView.d.ts +1 -1
  79. package/dist/types/ModBanId.d.ts +1 -0
  80. package/dist/types/ModBanId.js +3 -0
  81. package/dist/types/ModBanView.d.ts +1 -1
  82. package/dist/types/ModFeaturePost.d.ts +3 -2
  83. package/dist/types/ModFeaturePostId.d.ts +1 -0
  84. package/dist/types/ModFeaturePostId.js +3 -0
  85. package/dist/types/ModFeaturePostView.d.ts +1 -0
  86. package/dist/types/ModHideCommunity.d.ts +3 -2
  87. package/dist/types/ModHideCommunityId.d.ts +1 -0
  88. package/dist/types/ModHideCommunityId.js +3 -0
  89. package/dist/types/ModLockPost.d.ts +3 -2
  90. package/dist/types/ModLockPostId.d.ts +1 -0
  91. package/dist/types/ModLockPostId.js +3 -0
  92. package/dist/types/ModLockPostView.d.ts +1 -0
  93. package/dist/types/ModRemoveComment.d.ts +3 -2
  94. package/dist/types/ModRemoveCommentId.d.ts +1 -0
  95. package/dist/types/ModRemoveCommentId.js +3 -0
  96. package/dist/types/ModRemoveCommentView.d.ts +1 -1
  97. package/dist/types/ModRemoveCommunity.d.ts +3 -2
  98. package/dist/types/ModRemoveCommunityId.d.ts +1 -0
  99. package/dist/types/ModRemoveCommunityId.js +3 -0
  100. package/dist/types/ModRemovePost.d.ts +3 -2
  101. package/dist/types/ModRemovePostId.d.ts +1 -0
  102. package/dist/types/ModRemovePostId.js +3 -0
  103. package/dist/types/ModRemovePostView.d.ts +1 -0
  104. package/dist/types/ModTransferCommunity.d.ts +3 -2
  105. package/dist/types/ModTransferCommunityId.d.ts +1 -0
  106. package/dist/types/ModTransferCommunityId.js +3 -0
  107. package/dist/types/ModTransferCommunityView.d.ts +1 -1
  108. package/dist/types/ModlogCombinedPaginationCursor.d.ts +4 -0
  109. package/dist/types/ModlogCombinedPaginationCursor.js +3 -0
  110. package/dist/types/ModlogCombinedView.d.ts +52 -0
  111. package/dist/types/{PersonMention.d.ts → PersonCommentMention.d.ts} +3 -3
  112. package/dist/types/PersonCommentMentionId.d.ts +4 -0
  113. package/dist/types/PersonCommentMentionId.js +3 -0
  114. package/dist/types/{PersonMentionView.d.ts → PersonCommentMentionView.d.ts} +4 -4
  115. package/dist/types/PersonCommentMentionView.js +2 -0
  116. package/dist/types/PersonContentCombinedPaginationCursor.d.ts +4 -0
  117. package/dist/types/PersonContentCombinedPaginationCursor.js +3 -0
  118. package/dist/types/PersonContentCombinedView.d.ts +7 -0
  119. package/dist/types/PersonContentCombinedView.js +2 -0
  120. package/dist/types/PersonContentType.d.ts +4 -0
  121. package/dist/types/PersonContentType.js +3 -0
  122. package/dist/types/PersonPostMention.d.ts +13 -0
  123. package/dist/types/PersonPostMention.js +2 -0
  124. package/dist/types/PersonPostMentionId.d.ts +4 -0
  125. package/dist/types/PersonPostMentionId.js +3 -0
  126. package/dist/types/PersonPostMentionView.d.ts +32 -0
  127. package/dist/types/PersonPostMentionView.js +2 -0
  128. package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +4 -0
  129. package/dist/types/PersonSavedCombinedPaginationCursor.js +3 -0
  130. package/dist/types/PostTags.d.ts +7 -0
  131. package/dist/types/PostTags.js +2 -0
  132. package/dist/types/PostView.d.ts +2 -0
  133. package/dist/types/ReportCombinedView.d.ts +4 -1
  134. package/dist/types/SaveUserSettings.d.ts +4 -8
  135. package/dist/types/Search.d.ts +7 -7
  136. package/dist/types/SearchCombinedId.d.ts +4 -0
  137. package/dist/types/SearchCombinedId.js +3 -0
  138. package/dist/types/SearchCombinedPaginationCursor.d.ts +4 -0
  139. package/dist/types/SearchCombinedPaginationCursor.js +3 -0
  140. package/dist/types/SearchCombinedView.d.ts +13 -0
  141. package/dist/types/SearchCombinedView.js +2 -0
  142. package/dist/types/SearchResponse.d.ts +2 -10
  143. package/dist/types/SearchSortType.d.ts +4 -0
  144. package/dist/types/SearchSortType.js +3 -0
  145. package/dist/types/SiteResponse.d.ts +1 -1
  146. package/dist/types/Tag.d.ts +27 -0
  147. package/dist/types/Tag.js +2 -0
  148. package/dist/types/TagId.d.ts +4 -0
  149. package/dist/types/TagId.js +3 -0
  150. package/dist/types/UploadImageResponse.d.ts +4 -0
  151. package/dist/types/UploadImageResponse.js +3 -0
  152. package/package.json +2 -2
  153. package/dist/types/CommentReplyResponse.d.ts +0 -7
  154. package/dist/types/GetPersonMentions.d.ts +0 -10
  155. package/dist/types/GetPersonMentionsResponse.d.ts +0 -7
  156. package/dist/types/GetPrivateMessages.d.ts +0 -10
  157. package/dist/types/GetReplies.d.ts +0 -10
  158. package/dist/types/GetRepliesResponse.d.ts +0 -7
  159. package/dist/types/MarkPersonMentionAsRead.d.ts +0 -8
  160. package/dist/types/ModlogListParams.d.ts +0 -17
  161. package/dist/types/PersonMentionId.d.ts +0 -4
  162. package/dist/types/PersonMentionResponse.d.ts +0 -7
  163. package/dist/types/PrivateMessagesResponse.d.ts +0 -7
  164. package/dist/types/ReportCombined.d.ts +0 -14
  165. package/dist/types/ReportCombinedId.d.ts +0 -4
  166. /package/dist/types/{PersonMentionId.js → AdminAllowInstanceId.js} +0 -0
  167. /package/dist/types/{ReportCombinedId.js → AdminBlockInstanceId.js} +0 -0
  168. /package/dist/types/{CommentReplyResponse.js → CommunityReport.js} +0 -0
  169. /package/dist/types/{GetPersonMentions.js → CommunityReportView.js} +0 -0
  170. /package/dist/types/{GetPersonMentionsResponse.js → InboxCombinedView.js} +0 -0
  171. /package/dist/types/{GetPrivateMessages.js → ListInbox.js} +0 -0
  172. /package/dist/types/{GetReplies.js → ListInboxResponse.js} +0 -0
  173. /package/dist/types/{GetRepliesResponse.js → ListPersonContent.js} +0 -0
  174. /package/dist/types/{MarkPersonMentionAsRead.js → ListPersonContentResponse.js} +0 -0
  175. /package/dist/types/{ModlogListParams.js → ListPersonSaved.js} +0 -0
  176. /package/dist/types/{PersonMention.js → ListPersonSavedResponse.js} +0 -0
  177. /package/dist/types/{PersonMentionResponse.js → MarkPersonCommentMentionAsRead.js} +0 -0
  178. /package/dist/types/{PersonMentionView.js → MarkPersonPostMentionAsRead.js} +0 -0
  179. /package/dist/types/{PrivateMessagesResponse.js → ModlogCombinedView.js} +0 -0
  180. /package/dist/types/{ReportCombined.js → PersonCommentMention.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,23 +1,29 @@
1
1
  export * from "./http";
2
- export { UploadImage, UploadImageResponse, ImageFile, DeleteImage, } from "./other_types";
2
+ export { UploadImage } from "./other_types";
3
3
  export { ActivityId } from "./types/ActivityId";
4
4
  export { AddAdmin } from "./types/AddAdmin";
5
5
  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";
@@ -80,6 +88,7 @@ export { DeleteAccount } from "./types/DeleteAccount";
80
88
  export { DeleteComment } from "./types/DeleteComment";
81
89
  export { DeleteCommunity } from "./types/DeleteCommunity";
82
90
  export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
91
+ export { DeleteImageParams } from "./types/DeleteImageParams";
83
92
  export { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
84
93
  export { DeletePost } from "./types/DeletePost";
85
94
  export { DeletePrivateMessage } from "./types/DeletePrivateMessage";
@@ -112,17 +121,12 @@ export { GetModlog } from "./types/GetModlog";
112
121
  export { GetModlogResponse } from "./types/GetModlogResponse";
113
122
  export { GetPersonDetails } from "./types/GetPersonDetails";
114
123
  export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
115
- export { GetPersonMentions } from "./types/GetPersonMentions";
116
- export { GetPersonMentionsResponse } from "./types/GetPersonMentionsResponse";
117
124
  export { GetPost } from "./types/GetPost";
118
125
  export { GetPostResponse } from "./types/GetPostResponse";
119
126
  export { GetPosts } from "./types/GetPosts";
120
127
  export { GetPostsResponse } from "./types/GetPostsResponse";
121
- export { GetPrivateMessages } from "./types/GetPrivateMessages";
122
128
  export { GetRandomCommunity } from "./types/GetRandomCommunity";
123
129
  export { GetRegistrationApplication } from "./types/GetRegistrationApplication";
124
- export { GetReplies } from "./types/GetReplies";
125
- export { GetRepliesResponse } from "./types/GetRepliesResponse";
126
130
  export { GetReportCount } from "./types/GetReportCount";
127
131
  export { GetReportCountResponse } from "./types/GetReportCountResponse";
128
132
  export { GetSiteMetadata } from "./types/GetSiteMetadata";
@@ -133,6 +137,11 @@ export { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnread
133
137
  export { HideCommunity } from "./types/HideCommunity";
134
138
  export { HidePost } from "./types/HidePost";
135
139
  export { ImageDetails } from "./types/ImageDetails";
140
+ export { ImageGetParams } from "./types/ImageGetParams";
141
+ export { ImageProxyParams } from "./types/ImageProxyParams";
142
+ export { InboxCombinedPaginationCursor } from "./types/InboxCombinedPaginationCursor";
143
+ export { InboxCombinedView } from "./types/InboxCombinedView";
144
+ export { InboxDataType } from "./types/InboxDataType";
136
145
  export { Instance } from "./types/Instance";
137
146
  export { InstanceId } from "./types/InstanceId";
138
147
  export { InstanceWithFederationState } from "./types/InstanceWithFederationState";
@@ -148,9 +157,15 @@ export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
148
157
  export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
149
158
  export { ListCustomEmojis } from "./types/ListCustomEmojis";
150
159
  export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
160
+ export { ListInbox } from "./types/ListInbox";
161
+ export { ListInboxResponse } from "./types/ListInboxResponse";
151
162
  export { ListLoginsResponse } from "./types/ListLoginsResponse";
152
163
  export { ListMedia } from "./types/ListMedia";
153
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";
154
169
  export { ListPostLikes } from "./types/ListPostLikes";
155
170
  export { ListPostLikesResponse } from "./types/ListPostLikesResponse";
156
171
  export { ListRegistrationApplications } from "./types/ListRegistrationApplications";
@@ -176,33 +191,46 @@ export { LoginResponse } from "./types/LoginResponse";
176
191
  export { LoginToken } from "./types/LoginToken";
177
192
  export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
178
193
  export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
179
- export { MarkPersonMentionAsRead } from "./types/MarkPersonMentionAsRead";
194
+ export { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
195
+ export { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
180
196
  export { MarkPostAsRead } from "./types/MarkPostAsRead";
181
197
  export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
182
198
  export { ModAdd } from "./types/ModAdd";
183
199
  export { ModAddCommunity } from "./types/ModAddCommunity";
200
+ export { ModAddCommunityId } from "./types/ModAddCommunityId";
184
201
  export { ModAddCommunityView } from "./types/ModAddCommunityView";
202
+ export { ModAddId } from "./types/ModAddId";
185
203
  export { ModAddView } from "./types/ModAddView";
186
204
  export { ModBan } from "./types/ModBan";
187
205
  export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
206
+ export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
188
207
  export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
208
+ export { ModBanId } from "./types/ModBanId";
189
209
  export { ModBanView } from "./types/ModBanView";
190
210
  export { ModFeaturePost } from "./types/ModFeaturePost";
211
+ export { ModFeaturePostId } from "./types/ModFeaturePostId";
191
212
  export { ModFeaturePostView } from "./types/ModFeaturePostView";
192
213
  export { ModHideCommunity } from "./types/ModHideCommunity";
214
+ export { ModHideCommunityId } from "./types/ModHideCommunityId";
193
215
  export { ModHideCommunityView } from "./types/ModHideCommunityView";
194
216
  export { ModLockPost } from "./types/ModLockPost";
217
+ export { ModLockPostId } from "./types/ModLockPostId";
195
218
  export { ModLockPostView } from "./types/ModLockPostView";
196
219
  export { ModRemoveComment } from "./types/ModRemoveComment";
220
+ export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
197
221
  export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
198
222
  export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
223
+ export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
199
224
  export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
200
225
  export { ModRemovePost } from "./types/ModRemovePost";
226
+ export { ModRemovePostId } from "./types/ModRemovePostId";
201
227
  export { ModRemovePostView } from "./types/ModRemovePostView";
202
228
  export { ModTransferCommunity } from "./types/ModTransferCommunity";
229
+ export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
203
230
  export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
204
231
  export { ModlogActionType } from "./types/ModlogActionType";
205
- export { ModlogListParams } from "./types/ModlogListParams";
232
+ export { ModlogCombinedPaginationCursor } from "./types/ModlogCombinedPaginationCursor";
233
+ export { ModlogCombinedView } from "./types/ModlogCombinedView";
206
234
  export { MyUserInfo } from "./types/MyUserInfo";
207
235
  export { OAuthAccount } from "./types/OAuthAccount";
208
236
  export { OAuthProvider } from "./types/OAuthProvider";
@@ -214,11 +242,17 @@ export { PasswordReset } from "./types/PasswordReset";
214
242
  export { PendingFollow } from "./types/PendingFollow";
215
243
  export { Person } from "./types/Person";
216
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";
217
251
  export { PersonId } from "./types/PersonId";
218
- export { PersonMention } from "./types/PersonMention";
219
- export { PersonMentionId } from "./types/PersonMentionId";
220
- export { PersonMentionResponse } from "./types/PersonMentionResponse";
221
- 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";
222
256
  export { PersonView } from "./types/PersonView";
223
257
  export { Post } from "./types/Post";
224
258
  export { PostAggregates } from "./types/PostAggregates";
@@ -231,6 +265,7 @@ export { PostReportResponse } from "./types/PostReportResponse";
231
265
  export { PostReportView } from "./types/PostReportView";
232
266
  export { PostResponse } from "./types/PostResponse";
233
267
  export { PostSortType } from "./types/PostSortType";
268
+ export { PostTags } from "./types/PostTags";
234
269
  export { PostView } from "./types/PostView";
235
270
  export { PrivateMessage } from "./types/PrivateMessage";
236
271
  export { PrivateMessageId } from "./types/PrivateMessageId";
@@ -240,7 +275,6 @@ export { PrivateMessageReportResponse } from "./types/PrivateMessageReportRespon
240
275
  export { PrivateMessageReportView } from "./types/PrivateMessageReportView";
241
276
  export { PrivateMessageResponse } from "./types/PrivateMessageResponse";
242
277
  export { PrivateMessageView } from "./types/PrivateMessageView";
243
- export { PrivateMessagesResponse } from "./types/PrivateMessagesResponse";
244
278
  export { PublicOAuthProvider } from "./types/PublicOAuthProvider";
245
279
  export { PurgeComment } from "./types/PurgeComment";
246
280
  export { PurgeCommunity } from "./types/PurgeCommunity";
@@ -256,8 +290,6 @@ export { RegistrationMode } from "./types/RegistrationMode";
256
290
  export { RemoveComment } from "./types/RemoveComment";
257
291
  export { RemoveCommunity } from "./types/RemoveCommunity";
258
292
  export { RemovePost } from "./types/RemovePost";
259
- export { ReportCombined } from "./types/ReportCombined";
260
- export { ReportCombinedId } from "./types/ReportCombinedId";
261
293
  export { ReportCombinedPaginationCursor } from "./types/ReportCombinedPaginationCursor";
262
294
  export { ReportCombinedView } from "./types/ReportCombinedView";
263
295
  export { ResolveCommentReport } from "./types/ResolveCommentReport";
@@ -269,7 +301,11 @@ export { SaveComment } from "./types/SaveComment";
269
301
  export { SavePost } from "./types/SavePost";
270
302
  export { SaveUserSettings } from "./types/SaveUserSettings";
271
303
  export { Search } from "./types/Search";
304
+ export { SearchCombinedId } from "./types/SearchCombinedId";
305
+ export { SearchCombinedPaginationCursor } from "./types/SearchCombinedPaginationCursor";
306
+ export { SearchCombinedView } from "./types/SearchCombinedView";
272
307
  export { SearchResponse } from "./types/SearchResponse";
308
+ export { SearchSortType } from "./types/SearchSortType";
273
309
  export { SearchType } from "./types/SearchType";
274
310
  export { SensitiveString } from "./types/SensitiveString";
275
311
  export { Site } from "./types/Site";
@@ -279,6 +315,8 @@ export { SiteResponse } from "./types/SiteResponse";
279
315
  export { SiteView } from "./types/SiteView";
280
316
  export { SubscribedType } from "./types/SubscribedType";
281
317
  export { SuccessResponse } from "./types/SuccessResponse";
318
+ export { Tag } from "./types/Tag";
319
+ export { TagId } from "./types/TagId";
282
320
  export { Tagline } from "./types/Tagline";
283
321
  export { TaglineId } from "./types/TaglineId";
284
322
  export { TaglineResponse } from "./types/TaglineResponse";
@@ -286,6 +324,7 @@ export { TransferCommunity } from "./types/TransferCommunity";
286
324
  export { UpdateTagline } from "./types/UpdateTagline";
287
325
  export { UpdateTotp } from "./types/UpdateTotp";
288
326
  export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
327
+ export { UploadImageResponse } from "./types/UploadImageResponse";
289
328
  export { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
290
329
  export { VerifyEmail } from "./types/VerifyEmail";
291
330
  export { VoteView } from "./types/VoteView";
@@ -1,21 +1,4 @@
1
- export declare const VERSION = "v3";
1
+ export declare const VERSION = "v4";
2
2
  export interface UploadImage {
3
3
  image: File | Buffer;
4
4
  }
5
- export interface UploadImageResponse {
6
- /**
7
- * Is "ok" if the upload was successful; is something else otherwise.
8
- */
9
- msg: string;
10
- files?: ImageFile[];
11
- url?: string;
12
- delete_url?: string;
13
- }
14
- export interface ImageFile {
15
- file: string;
16
- delete_token: string;
17
- }
18
- export interface DeleteImage {
19
- token: string;
20
- filename: string;
21
- }
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "v3";
4
+ exports.VERSION = "v4";
@@ -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 });
@@ -0,0 +1,16 @@
1
+ import type { Community } from "./Community";
2
+ import type { CommunityAggregates } from "./CommunityAggregates";
3
+ import type { CommunityReport } from "./CommunityReport";
4
+ import type { Person } from "./Person";
5
+ import type { SubscribedType } from "./SubscribedType";
6
+ /**
7
+ * A community report view.
8
+ */
9
+ export type CommunityReportView = {
10
+ community_report: CommunityReport;
11
+ community: Community;
12
+ creator: Person;
13
+ counts: CommunityAggregates;
14
+ subscribed: SubscribedType;
15
+ resolver?: Person;
16
+ };
@@ -1,5 +1,6 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
2
  import type { LanguageId } from "./LanguageId";
3
+ import type { TagId } from "./TagId";
3
4
  /**
4
5
  * Create a post.
5
6
  */
@@ -25,6 +26,7 @@ export type CreatePost = {
25
26
  * Instead of fetching a thumbnail, use a custom one.
26
27
  */
27
28
  custom_thumbnail?: string;
29
+ tags?: Array<TagId>;
28
30
  /**
29
31
  * Time when this post should be scheduled. Null means publish immediately.
30
32
  */
@@ -12,9 +12,6 @@ export type CreateSite = {
12
12
  name: string;
13
13
  sidebar?: string;
14
14
  description?: string;
15
- icon?: string;
16
- banner?: string;
17
- enable_nsfw?: boolean;
18
15
  community_creation_admin_only?: boolean;
19
16
  require_email_verification?: boolean;
20
17
  application_question?: string;
@@ -43,7 +40,6 @@ export type CreateSite = {
43
40
  rate_limit_search?: number;
44
41
  rate_limit_search_per_second?: number;
45
42
  federation_enabled?: boolean;
46
- federation_debug?: boolean;
47
43
  captcha_enabled?: boolean;
48
44
  captcha_difficulty?: string;
49
45
  registration_mode?: RegistrationMode;
@@ -53,4 +49,5 @@ export type CreateSite = {
53
49
  post_downvotes?: FederationMode;
54
50
  comment_upvotes?: FederationMode;
55
51
  comment_downvotes?: FederationMode;
52
+ disable_donation_dialog?: boolean;
56
53
  };
@@ -0,0 +1,3 @@
1
+ export type DeleteImageParams = {
2
+ filename: string;
3
+ };
@@ -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 });
@@ -18,14 +18,6 @@ export type EditCommunity = {
18
18
  * A shorter, one line description of your community.
19
19
  */
20
20
  description?: string;
21
- /**
22
- * An icon URL.
23
- */
24
- icon?: string;
25
- /**
26
- * A banner URL.
27
- */
28
- banner?: string;
29
21
  /**
30
22
  * Whether its an NSFW community.
31
23
  */
@@ -1,5 +1,6 @@
1
1
  import type { LanguageId } from "./LanguageId";
2
2
  import type { PostId } from "./PostId";
3
+ import type { TagId } from "./TagId";
3
4
  /**
4
5
  * Edit a post.
5
6
  */
@@ -21,6 +22,7 @@ export type EditPost = {
21
22
  * Instead of fetching a thumbnail, use a custom one.
22
23
  */
23
24
  custom_thumbnail?: string;
25
+ tags?: Array<TagId>;
24
26
  /**
25
27
  * Time when this post should be scheduled. Null means publish immediately.
26
28
  */
@@ -18,18 +18,6 @@ export type EditSite = {
18
18
  * A shorter, one line description of your site.
19
19
  */
20
20
  description?: string;
21
- /**
22
- * A url for your site's icon.
23
- */
24
- icon?: string;
25
- /**
26
- * A url for your site's banner.
27
- */
28
- banner?: string;
29
- /**
30
- * Whether to enable NSFW.
31
- */
32
- enable_nsfw?: boolean;
33
21
  /**
34
22
  * Limits community creation to admins only.
35
23
  */
@@ -124,10 +112,6 @@ export type EditSite = {
124
112
  * Whether to enable federation.
125
113
  */
126
114
  federation_enabled?: boolean;
127
- /**
128
- * Enables federation debugging.
129
- */
130
- federation_debug?: boolean;
131
115
  /**
132
116
  * Whether to enable captchas for signups.
133
117
  */
@@ -170,4 +154,9 @@ export type EditSite = {
170
154
  * What kind of comment downvotes your site allows.
171
155
  */
172
156
  comment_downvotes?: FederationMode;
157
+ /**
158
+ * If this is true, users will never see the dialog asking to support Lemmy development with
159
+ * donations.
160
+ */
161
+ disable_donation_dialog?: boolean;
173
162
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Federation related errors, these dont need to be translated.
3
3
  */
4
- export type FederationError = "CouldntFindActivity" | "InvalidCommunity" | "CannotCreatePostOrCommentInDeletedOrRemovedCommunity" | "CannotReceivePage" | "OnlyLocalAdminCanRemoveCommunity" | "OnlyLocalAdminCanRestoreCommunity" | "PostIsLocked" | {
4
+ export type FederationError = "InvalidCommunity" | "CannotCreatePostOrCommentInDeletedOrRemovedCommunity" | "CannotReceivePage" | "OnlyLocalAdminCanRemoveCommunity" | "OnlyLocalAdminCanRestoreCommunity" | "PostIsLocked" | {
5
5
  PersonIsBannedFromSite: string;
6
6
  } | "InvalidVoteValue" | "PageDoesNotSpecifyCreator" | "CouldntGetComments" | "CouldntGetPosts" | "FederationDisabled" | {
7
7
  DomainBlocked: string;
@@ -16,7 +16,6 @@ export type GetComments = {
16
16
  community_name?: string;
17
17
  post_id?: PostId;
18
18
  parent_id?: CommentId;
19
- saved_only?: boolean;
20
19
  liked_only?: boolean;
21
20
  disliked_only?: boolean;
22
21
  };
@@ -1,6 +1,7 @@
1
1
  import type { CommentId } from "./CommentId";
2
2
  import type { CommunityId } from "./CommunityId";
3
3
  import type { ModlogActionType } from "./ModlogActionType";
4
+ import type { ModlogCombinedPaginationCursor } from "./ModlogCombinedPaginationCursor";
4
5
  import type { PersonId } from "./PersonId";
5
6
  import type { PostId } from "./PostId";
6
7
  /**
@@ -9,10 +10,10 @@ import type { PostId } from "./PostId";
9
10
  export type GetModlog = {
10
11
  mod_person_id?: PersonId;
11
12
  community_id?: CommunityId;
12
- page?: number;
13
- limit?: number;
14
13
  type_?: ModlogActionType;
15
14
  other_person_id?: PersonId;
16
15
  post_id?: PostId;
17
16
  comment_id?: CommentId;
17
+ page_cursor?: ModlogCombinedPaginationCursor;
18
+ page_back?: boolean;
18
19
  };