lemmy-js-client 0.20.0-reports-combined.3 → 0.20.0-show-mod-reports.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/http.d.ts +229 -411
- package/dist/http.js +1208 -390
- package/dist/index.d.ts +57 -16
- package/dist/other_types.d.ts +80 -16
- package/dist/types/AdminAllowInstance.d.ts +3 -2
- package/dist/types/AdminAllowInstanceId.d.ts +1 -0
- package/dist/types/AdminAllowInstanceView.d.ts +1 -1
- package/dist/types/AdminBlockInstance.d.ts +3 -2
- package/dist/types/AdminBlockInstanceId.d.ts +1 -0
- package/dist/types/AdminPurgeComment.d.ts +3 -2
- package/dist/types/AdminPurgeCommentId.d.ts +1 -0
- package/dist/types/AdminPurgeCommentId.js +3 -0
- package/dist/types/AdminPurgeCommunity.d.ts +3 -2
- package/dist/types/AdminPurgeCommunityId.d.ts +1 -0
- package/dist/types/AdminPurgeCommunityId.js +3 -0
- package/dist/types/AdminPurgePerson.d.ts +3 -2
- package/dist/types/AdminPurgePersonId.d.ts +1 -0
- package/dist/types/AdminPurgePersonId.js +3 -0
- package/dist/types/AdminPurgePost.d.ts +3 -2
- package/dist/types/AdminPurgePostId.d.ts +1 -0
- package/dist/types/AdminPurgePostId.js +3 -0
- package/dist/types/CommentSlimView.d.ts +20 -0
- package/dist/types/Community.d.ts +2 -2
- package/dist/types/CommunityAggregates.d.ts +2 -0
- package/dist/types/CommunityReport.d.ts +22 -0
- package/dist/types/CommunityReportId.d.ts +4 -0
- package/dist/types/CommunityReportId.js +3 -0
- package/dist/types/CommunityReportView.d.ts +16 -0
- package/dist/types/CreatePost.d.ts +2 -0
- package/dist/types/CreateSite.d.ts +1 -4
- package/dist/types/DeleteImageParams.d.ts +3 -0
- package/dist/types/DeleteImageParams.js +3 -0
- package/dist/types/EditCommunity.d.ts +0 -8
- package/dist/types/EditPost.d.ts +2 -0
- package/dist/types/EditSite.d.ts +5 -16
- package/dist/types/FederationError.d.ts +1 -1
- package/dist/types/GetComments.d.ts +0 -1
- package/dist/types/GetCommentsSlimResponse.d.ts +7 -0
- package/dist/types/GetModlog.d.ts +3 -2
- package/dist/types/GetModlogResponse.d.ts +2 -34
- package/dist/types/GetPersonDetails.d.ts +0 -7
- package/dist/types/GetPersonDetailsResponse.d.ts +0 -4
- package/dist/types/GetPosts.d.ts +5 -0
- package/dist/types/GetRandomCommunity.d.ts +1 -0
- package/dist/types/GetSiteResponse.d.ts +1 -8
- package/dist/types/GetUnreadCountResponse.d.ts +2 -4
- package/dist/types/ImageGetParams.d.ts +4 -0
- package/dist/types/ImageGetParams.js +3 -0
- package/dist/types/ImageProxyParams.d.ts +5 -0
- package/dist/types/ImageProxyParams.js +3 -0
- package/dist/types/InboxCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/InboxCombinedPaginationCursor.js +3 -0
- package/dist/types/InboxCombinedView.d.ts +13 -0
- package/dist/types/InboxDataType.d.ts +4 -0
- package/dist/types/InboxDataType.js +3 -0
- package/dist/types/LemmyErrorType.d.ts +5 -3
- package/dist/types/ListInbox.d.ts +11 -0
- package/dist/types/ListInboxResponse.d.ts +7 -0
- package/dist/types/ListPersonContent.d.ts +18 -0
- package/dist/types/ListPersonContentResponse.d.ts +7 -0
- package/dist/types/ListPersonSaved.d.ts +10 -0
- package/dist/types/ListPersonSavedResponse.d.ts +7 -0
- package/dist/types/ListReports.d.ts +14 -0
- package/dist/types/LocalImage.d.ts +0 -1
- package/dist/types/LocalSite.d.ts +5 -0
- package/dist/types/LocalUser.d.ts +9 -0
- package/dist/types/MarkPersonCommentMentionAsRead.d.ts +8 -0
- package/dist/types/MarkPersonPostMentionAsRead.d.ts +8 -0
- package/dist/types/ModAdd.d.ts +3 -2
- package/dist/types/ModAddCommunity.d.ts +3 -2
- package/dist/types/ModAddCommunityId.d.ts +1 -0
- package/dist/types/ModAddCommunityId.js +3 -0
- package/dist/types/ModAddCommunityView.d.ts +1 -1
- package/dist/types/ModAddId.d.ts +1 -0
- package/dist/types/ModAddId.js +3 -0
- package/dist/types/ModAddView.d.ts +1 -1
- package/dist/types/ModBan.d.ts +3 -2
- package/dist/types/ModBanFromCommunity.d.ts +3 -2
- package/dist/types/ModBanFromCommunityId.d.ts +1 -0
- package/dist/types/ModBanFromCommunityId.js +3 -0
- package/dist/types/ModBanFromCommunityView.d.ts +1 -1
- package/dist/types/ModBanId.d.ts +1 -0
- package/dist/types/ModBanId.js +3 -0
- package/dist/types/ModBanView.d.ts +1 -1
- package/dist/types/ModFeaturePost.d.ts +3 -2
- package/dist/types/ModFeaturePostId.d.ts +1 -0
- package/dist/types/ModFeaturePostId.js +3 -0
- package/dist/types/ModFeaturePostView.d.ts +1 -0
- package/dist/types/ModHideCommunity.d.ts +3 -2
- package/dist/types/ModHideCommunityId.d.ts +1 -0
- package/dist/types/ModHideCommunityId.js +3 -0
- package/dist/types/ModLockPost.d.ts +3 -2
- package/dist/types/ModLockPostId.d.ts +1 -0
- package/dist/types/ModLockPostId.js +3 -0
- package/dist/types/ModLockPostView.d.ts +1 -0
- package/dist/types/ModRemoveComment.d.ts +3 -2
- package/dist/types/ModRemoveCommentId.d.ts +1 -0
- package/dist/types/ModRemoveCommentId.js +3 -0
- package/dist/types/ModRemoveCommentView.d.ts +1 -1
- package/dist/types/ModRemoveCommunity.d.ts +3 -2
- package/dist/types/ModRemoveCommunityId.d.ts +1 -0
- package/dist/types/ModRemoveCommunityId.js +3 -0
- package/dist/types/ModRemovePost.d.ts +3 -2
- package/dist/types/ModRemovePostId.d.ts +1 -0
- package/dist/types/ModRemovePostId.js +3 -0
- package/dist/types/ModRemovePostView.d.ts +1 -0
- package/dist/types/ModTransferCommunity.d.ts +3 -2
- package/dist/types/ModTransferCommunityId.d.ts +1 -0
- package/dist/types/ModTransferCommunityId.js +3 -0
- package/dist/types/ModTransferCommunityView.d.ts +1 -1
- package/dist/types/ModlogCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/ModlogCombinedPaginationCursor.js +3 -0
- package/dist/types/ModlogCombinedView.d.ts +52 -0
- package/dist/types/ModlogCombinedView.js +2 -0
- package/dist/types/Person.d.ts +2 -2
- package/dist/types/{PersonMention.d.ts → PersonCommentMention.d.ts} +3 -3
- package/dist/types/PersonCommentMention.js +2 -0
- package/dist/types/PersonCommentMentionId.d.ts +4 -0
- package/dist/types/PersonCommentMentionId.js +3 -0
- package/dist/types/{PersonMentionView.d.ts → PersonCommentMentionView.d.ts} +4 -4
- package/dist/types/PersonCommentMentionView.js +2 -0
- package/dist/types/PersonContentCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/PersonContentCombinedPaginationCursor.js +3 -0
- package/dist/types/PersonContentCombinedView.d.ts +7 -0
- package/dist/types/PersonContentCombinedView.js +2 -0
- package/dist/types/PersonContentType.d.ts +4 -0
- package/dist/types/PersonContentType.js +3 -0
- package/dist/types/PersonPostMention.d.ts +13 -0
- package/dist/types/PersonPostMention.js +2 -0
- package/dist/types/PersonPostMentionId.d.ts +4 -0
- package/dist/types/PersonPostMentionId.js +3 -0
- package/dist/types/PersonPostMentionView.d.ts +32 -0
- package/dist/types/PersonPostMentionView.js +2 -0
- package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/PersonSavedCombinedPaginationCursor.js +3 -0
- package/dist/types/PostTags.d.ts +7 -0
- package/dist/types/PostTags.js +2 -0
- package/dist/types/PostView.d.ts +2 -0
- package/dist/types/ReportCombinedView.d.ts +4 -1
- package/dist/types/ReportType.d.ts +4 -0
- package/dist/types/ReportType.js +3 -0
- package/dist/types/SaveUserSettings.d.ts +4 -8
- package/dist/types/Search.d.ts +7 -7
- package/dist/types/SearchCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/SearchCombinedPaginationCursor.js +3 -0
- package/dist/types/SearchCombinedView.d.ts +13 -0
- package/dist/types/SearchCombinedView.js +2 -0
- package/dist/types/SearchResponse.d.ts +2 -10
- package/dist/types/SearchSortType.d.ts +4 -0
- package/dist/types/SearchSortType.js +3 -0
- package/dist/types/Site.d.ts +2 -2
- package/dist/types/SiteResponse.d.ts +1 -1
- package/dist/types/SuccessResponse.d.ts +1 -1
- package/dist/types/Tag.d.ts +27 -0
- package/dist/types/Tag.js +2 -0
- package/dist/types/TagId.d.ts +4 -0
- package/dist/types/TagId.js +3 -0
- package/dist/types/UploadImageResponse.d.ts +4 -0
- package/dist/types/UploadImageResponse.js +3 -0
- package/package.json +8 -4
- package/dist/types/CommentReplyResponse.d.ts +0 -7
- package/dist/types/GetPersonMentions.d.ts +0 -10
- package/dist/types/GetPersonMentionsResponse.d.ts +0 -7
- package/dist/types/GetPrivateMessages.d.ts +0 -10
- package/dist/types/GetReplies.d.ts +0 -10
- package/dist/types/GetRepliesResponse.d.ts +0 -7
- package/dist/types/MarkPersonMentionAsRead.d.ts +0 -8
- package/dist/types/ModlogListParams.d.ts +0 -17
- package/dist/types/PersonMentionId.d.ts +0 -4
- package/dist/types/PersonMentionResponse.d.ts +0 -7
- package/dist/types/PrivateMessagesResponse.d.ts +0 -7
- package/dist/types/ReportCombined.d.ts +0 -14
- package/dist/types/ReportCombinedId.d.ts +0 -4
- /package/dist/types/{PersonMentionId.js → AdminAllowInstanceId.js} +0 -0
- /package/dist/types/{ReportCombinedId.js → AdminBlockInstanceId.js} +0 -0
- /package/dist/types/{CommentReplyResponse.js → CommentSlimView.js} +0 -0
- /package/dist/types/{GetPersonMentions.js → CommunityReport.js} +0 -0
- /package/dist/types/{GetPersonMentionsResponse.js → CommunityReportView.js} +0 -0
- /package/dist/types/{GetPrivateMessages.js → GetCommentsSlimResponse.js} +0 -0
- /package/dist/types/{GetReplies.js → InboxCombinedView.js} +0 -0
- /package/dist/types/{GetRepliesResponse.js → ListInbox.js} +0 -0
- /package/dist/types/{MarkPersonMentionAsRead.js → ListInboxResponse.js} +0 -0
- /package/dist/types/{ModlogListParams.js → ListPersonContent.js} +0 -0
- /package/dist/types/{PersonMention.js → ListPersonContentResponse.js} +0 -0
- /package/dist/types/{PersonMentionResponse.js → ListPersonSaved.js} +0 -0
- /package/dist/types/{PersonMentionView.js → ListPersonSavedResponse.js} +0 -0
- /package/dist/types/{PrivateMessagesResponse.js → MarkPersonCommentMentionAsRead.js} +0 -0
- /package/dist/types/{ReportCombined.js → MarkPersonPostMentionAsRead.js} +0 -0
package/dist/index.d.ts
CHANGED
@@ -1,23 +1,29 @@
|
|
1
1
|
export * from "./http";
|
2
|
-
export { UploadImage
|
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,13 +44,13 @@ 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";
|
45
50
|
export { CommentReportResponse } from "./types/CommentReportResponse";
|
46
51
|
export { CommentReportView } from "./types/CommentReportView";
|
47
52
|
export { CommentResponse } from "./types/CommentResponse";
|
53
|
+
export { CommentSlimView } from "./types/CommentSlimView";
|
48
54
|
export { CommentSortType } from "./types/CommentSortType";
|
49
55
|
export { CommentView } from "./types/CommentView";
|
50
56
|
export { Community } from "./types/Community";
|
@@ -53,6 +59,9 @@ export { CommunityFollowerState } from "./types/CommunityFollowerState";
|
|
53
59
|
export { CommunityFollowerView } from "./types/CommunityFollowerView";
|
54
60
|
export { CommunityId } from "./types/CommunityId";
|
55
61
|
export { CommunityModeratorView } from "./types/CommunityModeratorView";
|
62
|
+
export { CommunityReport } from "./types/CommunityReport";
|
63
|
+
export { CommunityReportId } from "./types/CommunityReportId";
|
64
|
+
export { CommunityReportView } from "./types/CommunityReportView";
|
56
65
|
export { CommunityResponse } from "./types/CommunityResponse";
|
57
66
|
export { CommunitySortType } from "./types/CommunitySortType";
|
58
67
|
export { CommunityView } from "./types/CommunityView";
|
@@ -80,6 +89,7 @@ export { DeleteAccount } from "./types/DeleteAccount";
|
|
80
89
|
export { DeleteComment } from "./types/DeleteComment";
|
81
90
|
export { DeleteCommunity } from "./types/DeleteCommunity";
|
82
91
|
export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
|
92
|
+
export { DeleteImageParams } from "./types/DeleteImageParams";
|
83
93
|
export { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
|
84
94
|
export { DeletePost } from "./types/DeletePost";
|
85
95
|
export { DeletePrivateMessage } from "./types/DeletePrivateMessage";
|
@@ -103,6 +113,7 @@ export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
|
|
103
113
|
export { GetComment } from "./types/GetComment";
|
104
114
|
export { GetComments } from "./types/GetComments";
|
105
115
|
export { GetCommentsResponse } from "./types/GetCommentsResponse";
|
116
|
+
export { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
|
106
117
|
export { GetCommunity } from "./types/GetCommunity";
|
107
118
|
export { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
|
108
119
|
export { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
|
@@ -112,17 +123,12 @@ export { GetModlog } from "./types/GetModlog";
|
|
112
123
|
export { GetModlogResponse } from "./types/GetModlogResponse";
|
113
124
|
export { GetPersonDetails } from "./types/GetPersonDetails";
|
114
125
|
export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
|
115
|
-
export { GetPersonMentions } from "./types/GetPersonMentions";
|
116
|
-
export { GetPersonMentionsResponse } from "./types/GetPersonMentionsResponse";
|
117
126
|
export { GetPost } from "./types/GetPost";
|
118
127
|
export { GetPostResponse } from "./types/GetPostResponse";
|
119
128
|
export { GetPosts } from "./types/GetPosts";
|
120
129
|
export { GetPostsResponse } from "./types/GetPostsResponse";
|
121
|
-
export { GetPrivateMessages } from "./types/GetPrivateMessages";
|
122
130
|
export { GetRandomCommunity } from "./types/GetRandomCommunity";
|
123
131
|
export { GetRegistrationApplication } from "./types/GetRegistrationApplication";
|
124
|
-
export { GetReplies } from "./types/GetReplies";
|
125
|
-
export { GetRepliesResponse } from "./types/GetRepliesResponse";
|
126
132
|
export { GetReportCount } from "./types/GetReportCount";
|
127
133
|
export { GetReportCountResponse } from "./types/GetReportCountResponse";
|
128
134
|
export { GetSiteMetadata } from "./types/GetSiteMetadata";
|
@@ -133,6 +139,11 @@ export { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnread
|
|
133
139
|
export { HideCommunity } from "./types/HideCommunity";
|
134
140
|
export { HidePost } from "./types/HidePost";
|
135
141
|
export { ImageDetails } from "./types/ImageDetails";
|
142
|
+
export { ImageGetParams } from "./types/ImageGetParams";
|
143
|
+
export { ImageProxyParams } from "./types/ImageProxyParams";
|
144
|
+
export { InboxCombinedPaginationCursor } from "./types/InboxCombinedPaginationCursor";
|
145
|
+
export { InboxCombinedView } from "./types/InboxCombinedView";
|
146
|
+
export { InboxDataType } from "./types/InboxDataType";
|
136
147
|
export { Instance } from "./types/Instance";
|
137
148
|
export { InstanceId } from "./types/InstanceId";
|
138
149
|
export { InstanceWithFederationState } from "./types/InstanceWithFederationState";
|
@@ -148,9 +159,15 @@ export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
|
|
148
159
|
export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
|
149
160
|
export { ListCustomEmojis } from "./types/ListCustomEmojis";
|
150
161
|
export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
|
162
|
+
export { ListInbox } from "./types/ListInbox";
|
163
|
+
export { ListInboxResponse } from "./types/ListInboxResponse";
|
151
164
|
export { ListLoginsResponse } from "./types/ListLoginsResponse";
|
152
165
|
export { ListMedia } from "./types/ListMedia";
|
153
166
|
export { ListMediaResponse } from "./types/ListMediaResponse";
|
167
|
+
export { ListPersonContent } from "./types/ListPersonContent";
|
168
|
+
export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
169
|
+
export { ListPersonSaved } from "./types/ListPersonSaved";
|
170
|
+
export { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
|
154
171
|
export { ListPostLikes } from "./types/ListPostLikes";
|
155
172
|
export { ListPostLikesResponse } from "./types/ListPostLikesResponse";
|
156
173
|
export { ListRegistrationApplications } from "./types/ListRegistrationApplications";
|
@@ -176,33 +193,46 @@ export { LoginResponse } from "./types/LoginResponse";
|
|
176
193
|
export { LoginToken } from "./types/LoginToken";
|
177
194
|
export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
178
195
|
export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
179
|
-
export {
|
196
|
+
export { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
|
197
|
+
export { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
|
180
198
|
export { MarkPostAsRead } from "./types/MarkPostAsRead";
|
181
199
|
export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
|
182
200
|
export { ModAdd } from "./types/ModAdd";
|
183
201
|
export { ModAddCommunity } from "./types/ModAddCommunity";
|
202
|
+
export { ModAddCommunityId } from "./types/ModAddCommunityId";
|
184
203
|
export { ModAddCommunityView } from "./types/ModAddCommunityView";
|
204
|
+
export { ModAddId } from "./types/ModAddId";
|
185
205
|
export { ModAddView } from "./types/ModAddView";
|
186
206
|
export { ModBan } from "./types/ModBan";
|
187
207
|
export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
|
208
|
+
export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
|
188
209
|
export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
|
210
|
+
export { ModBanId } from "./types/ModBanId";
|
189
211
|
export { ModBanView } from "./types/ModBanView";
|
190
212
|
export { ModFeaturePost } from "./types/ModFeaturePost";
|
213
|
+
export { ModFeaturePostId } from "./types/ModFeaturePostId";
|
191
214
|
export { ModFeaturePostView } from "./types/ModFeaturePostView";
|
192
215
|
export { ModHideCommunity } from "./types/ModHideCommunity";
|
216
|
+
export { ModHideCommunityId } from "./types/ModHideCommunityId";
|
193
217
|
export { ModHideCommunityView } from "./types/ModHideCommunityView";
|
194
218
|
export { ModLockPost } from "./types/ModLockPost";
|
219
|
+
export { ModLockPostId } from "./types/ModLockPostId";
|
195
220
|
export { ModLockPostView } from "./types/ModLockPostView";
|
196
221
|
export { ModRemoveComment } from "./types/ModRemoveComment";
|
222
|
+
export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
|
197
223
|
export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
|
198
224
|
export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
|
225
|
+
export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
|
199
226
|
export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
|
200
227
|
export { ModRemovePost } from "./types/ModRemovePost";
|
228
|
+
export { ModRemovePostId } from "./types/ModRemovePostId";
|
201
229
|
export { ModRemovePostView } from "./types/ModRemovePostView";
|
202
230
|
export { ModTransferCommunity } from "./types/ModTransferCommunity";
|
231
|
+
export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
|
203
232
|
export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
|
204
233
|
export { ModlogActionType } from "./types/ModlogActionType";
|
205
|
-
export {
|
234
|
+
export { ModlogCombinedPaginationCursor } from "./types/ModlogCombinedPaginationCursor";
|
235
|
+
export { ModlogCombinedView } from "./types/ModlogCombinedView";
|
206
236
|
export { MyUserInfo } from "./types/MyUserInfo";
|
207
237
|
export { OAuthAccount } from "./types/OAuthAccount";
|
208
238
|
export { OAuthProvider } from "./types/OAuthProvider";
|
@@ -214,11 +244,17 @@ export { PasswordReset } from "./types/PasswordReset";
|
|
214
244
|
export { PendingFollow } from "./types/PendingFollow";
|
215
245
|
export { Person } from "./types/Person";
|
216
246
|
export { PersonAggregates } from "./types/PersonAggregates";
|
247
|
+
export { PersonCommentMention } from "./types/PersonCommentMention";
|
248
|
+
export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
|
249
|
+
export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
|
250
|
+
export { PersonContentCombinedPaginationCursor } from "./types/PersonContentCombinedPaginationCursor";
|
251
|
+
export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
|
252
|
+
export { PersonContentType } from "./types/PersonContentType";
|
217
253
|
export { PersonId } from "./types/PersonId";
|
218
|
-
export {
|
219
|
-
export {
|
220
|
-
export {
|
221
|
-
export {
|
254
|
+
export { PersonPostMention } from "./types/PersonPostMention";
|
255
|
+
export { PersonPostMentionId } from "./types/PersonPostMentionId";
|
256
|
+
export { PersonPostMentionView } from "./types/PersonPostMentionView";
|
257
|
+
export { PersonSavedCombinedPaginationCursor } from "./types/PersonSavedCombinedPaginationCursor";
|
222
258
|
export { PersonView } from "./types/PersonView";
|
223
259
|
export { Post } from "./types/Post";
|
224
260
|
export { PostAggregates } from "./types/PostAggregates";
|
@@ -231,6 +267,7 @@ export { PostReportResponse } from "./types/PostReportResponse";
|
|
231
267
|
export { PostReportView } from "./types/PostReportView";
|
232
268
|
export { PostResponse } from "./types/PostResponse";
|
233
269
|
export { PostSortType } from "./types/PostSortType";
|
270
|
+
export { PostTags } from "./types/PostTags";
|
234
271
|
export { PostView } from "./types/PostView";
|
235
272
|
export { PrivateMessage } from "./types/PrivateMessage";
|
236
273
|
export { PrivateMessageId } from "./types/PrivateMessageId";
|
@@ -240,7 +277,6 @@ export { PrivateMessageReportResponse } from "./types/PrivateMessageReportRespon
|
|
240
277
|
export { PrivateMessageReportView } from "./types/PrivateMessageReportView";
|
241
278
|
export { PrivateMessageResponse } from "./types/PrivateMessageResponse";
|
242
279
|
export { PrivateMessageView } from "./types/PrivateMessageView";
|
243
|
-
export { PrivateMessagesResponse } from "./types/PrivateMessagesResponse";
|
244
280
|
export { PublicOAuthProvider } from "./types/PublicOAuthProvider";
|
245
281
|
export { PurgeComment } from "./types/PurgeComment";
|
246
282
|
export { PurgeCommunity } from "./types/PurgeCommunity";
|
@@ -256,10 +292,9 @@ export { RegistrationMode } from "./types/RegistrationMode";
|
|
256
292
|
export { RemoveComment } from "./types/RemoveComment";
|
257
293
|
export { RemoveCommunity } from "./types/RemoveCommunity";
|
258
294
|
export { RemovePost } from "./types/RemovePost";
|
259
|
-
export { ReportCombined } from "./types/ReportCombined";
|
260
|
-
export { ReportCombinedId } from "./types/ReportCombinedId";
|
261
295
|
export { ReportCombinedPaginationCursor } from "./types/ReportCombinedPaginationCursor";
|
262
296
|
export { ReportCombinedView } from "./types/ReportCombinedView";
|
297
|
+
export { ReportType } from "./types/ReportType";
|
263
298
|
export { ResolveCommentReport } from "./types/ResolveCommentReport";
|
264
299
|
export { ResolveObject } from "./types/ResolveObject";
|
265
300
|
export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
|
@@ -269,7 +304,10 @@ export { SaveComment } from "./types/SaveComment";
|
|
269
304
|
export { SavePost } from "./types/SavePost";
|
270
305
|
export { SaveUserSettings } from "./types/SaveUserSettings";
|
271
306
|
export { Search } from "./types/Search";
|
307
|
+
export { SearchCombinedPaginationCursor } from "./types/SearchCombinedPaginationCursor";
|
308
|
+
export { SearchCombinedView } from "./types/SearchCombinedView";
|
272
309
|
export { SearchResponse } from "./types/SearchResponse";
|
310
|
+
export { SearchSortType } from "./types/SearchSortType";
|
273
311
|
export { SearchType } from "./types/SearchType";
|
274
312
|
export { SensitiveString } from "./types/SensitiveString";
|
275
313
|
export { Site } from "./types/Site";
|
@@ -279,6 +317,8 @@ export { SiteResponse } from "./types/SiteResponse";
|
|
279
317
|
export { SiteView } from "./types/SiteView";
|
280
318
|
export { SubscribedType } from "./types/SubscribedType";
|
281
319
|
export { SuccessResponse } from "./types/SuccessResponse";
|
320
|
+
export { Tag } from "./types/Tag";
|
321
|
+
export { TagId } from "./types/TagId";
|
282
322
|
export { Tagline } from "./types/Tagline";
|
283
323
|
export { TaglineId } from "./types/TaglineId";
|
284
324
|
export { TaglineResponse } from "./types/TaglineResponse";
|
@@ -286,6 +326,7 @@ export { TransferCommunity } from "./types/TransferCommunity";
|
|
286
326
|
export { UpdateTagline } from "./types/UpdateTagline";
|
287
327
|
export { UpdateTotp } from "./types/UpdateTotp";
|
288
328
|
export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
329
|
+
export { UploadImageResponse } from "./types/UploadImageResponse";
|
289
330
|
export { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
|
290
331
|
export { VerifyEmail } from "./types/VerifyEmail";
|
291
332
|
export { VoteView } from "./types/VoteView";
|
package/dist/other_types.d.ts
CHANGED
@@ -1,21 +1,85 @@
|
|
1
|
+
import { DeleteImageParams } from "./types/DeleteImageParams";
|
2
|
+
import { GetComment } from "./types/GetComment";
|
3
|
+
import { GetComments } from "./types/GetComments";
|
4
|
+
import { GetCommunity } from "./types/GetCommunity";
|
5
|
+
import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
|
6
|
+
import { GetModlog } from "./types/GetModlog";
|
7
|
+
import { GetPersonDetails } from "./types/GetPersonDetails";
|
8
|
+
import { GetPost } from "./types/GetPost";
|
9
|
+
import { GetPosts } from "./types/GetPosts";
|
10
|
+
import { GetRandomCommunity } from "./types/GetRandomCommunity";
|
11
|
+
import { GetRegistrationApplication } from "./types/GetRegistrationApplication";
|
12
|
+
import { GetReportCount } from "./types/GetReportCount";
|
13
|
+
import { GetSiteMetadata } from "./types/GetSiteMetadata";
|
14
|
+
import { ListCommentLikes } from "./types/ListCommentLikes";
|
15
|
+
import { ListCommunities } from "./types/ListCommunities";
|
16
|
+
import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
|
17
|
+
import { ListCustomEmojis } from "./types/ListCustomEmojis";
|
18
|
+
import { ListInbox } from "./types/ListInbox";
|
19
|
+
import { ListMedia } from "./types/ListMedia";
|
20
|
+
import { ListPersonContent } from "./types/ListPersonContent";
|
21
|
+
import { ListPersonSaved } from "./types/ListPersonSaved";
|
22
|
+
import { ListPostLikes } from "./types/ListPostLikes";
|
23
|
+
import { ListRegistrationApplications } from "./types/ListRegistrationApplications";
|
24
|
+
import { ListReports } from "./types/ListReports";
|
25
|
+
import { ListTaglines } from "./types/ListTaglines";
|
26
|
+
import { ResolveObject } from "./types/ResolveObject";
|
27
|
+
import { Search } from "./types/Search";
|
1
28
|
export declare const VERSION = "v4";
|
2
29
|
export interface UploadImage {
|
3
30
|
image: File | Buffer;
|
4
31
|
}
|
5
|
-
export interface
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
32
|
+
export interface ListMediaI extends ListMedia {
|
33
|
+
}
|
34
|
+
export interface GetModlogI extends GetModlog {
|
35
|
+
}
|
36
|
+
export interface SearchI extends Search {
|
37
|
+
}
|
38
|
+
export interface ResolveObjectI extends ResolveObject {
|
39
|
+
}
|
40
|
+
export interface GetCommunityI extends GetCommunity {
|
41
|
+
}
|
42
|
+
export interface ListCommunitiesI extends ListCommunities {
|
43
|
+
}
|
44
|
+
export interface GetCommunityPendingFollowsCountI extends GetCommunityPendingFollowsCount {
|
45
|
+
}
|
46
|
+
export interface ListCommunityPendingFollowsI extends ListCommunityPendingFollows {
|
47
|
+
}
|
48
|
+
export interface GetRandomCommunityI extends GetRandomCommunity {
|
49
|
+
}
|
50
|
+
export interface GetPostI extends GetPost {
|
51
|
+
}
|
52
|
+
export interface GetPostsI extends GetPosts {
|
53
|
+
}
|
54
|
+
export interface ListPostLikesI extends ListPostLikes {
|
55
|
+
}
|
56
|
+
export interface GetSiteMetadataI extends GetSiteMetadata {
|
57
|
+
}
|
58
|
+
export interface ListCommentLikesI extends ListCommentLikes {
|
59
|
+
}
|
60
|
+
export interface GetCommentsI extends GetComments {
|
61
|
+
}
|
62
|
+
export interface GetCommentI extends GetComment {
|
63
|
+
}
|
64
|
+
export interface GetPersonDetailsI extends GetPersonDetails {
|
65
|
+
}
|
66
|
+
export interface ListPersonContentI extends ListPersonContent {
|
67
|
+
}
|
68
|
+
export interface GetReportCountI extends GetReportCount {
|
69
|
+
}
|
70
|
+
export interface ListInboxI extends ListInbox {
|
71
|
+
}
|
72
|
+
export interface ListPersonSavedI extends ListPersonSaved {
|
73
|
+
}
|
74
|
+
export interface ListRegistrationApplicationsI extends ListRegistrationApplications {
|
75
|
+
}
|
76
|
+
export interface GetRegistrationApplicationI extends GetRegistrationApplication {
|
77
|
+
}
|
78
|
+
export interface ListCustomEmojisI extends ListCustomEmojis {
|
79
|
+
}
|
80
|
+
export interface ListTaglinesI extends ListTaglines {
|
81
|
+
}
|
82
|
+
export interface ListReportsI extends ListReports {
|
83
|
+
}
|
84
|
+
export interface DeleteImageParamsI extends DeleteImageParams {
|
21
85
|
}
|
@@ -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:
|
5
|
+
id: AdminAllowInstanceId;
|
5
6
|
instance_id: InstanceId;
|
6
7
|
admin_person_id: PersonId;
|
7
8
|
allowed: boolean;
|
8
9
|
reason?: string;
|
9
|
-
|
10
|
+
published: string;
|
10
11
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export type AdminAllowInstanceId = number;
|
@@ -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:
|
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
|
-
|
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:
|
8
|
+
id: AdminPurgeCommentId;
|
8
9
|
admin_person_id: PersonId;
|
9
10
|
post_id: PostId;
|
10
11
|
reason?: string;
|
11
|
-
|
12
|
+
published: string;
|
12
13
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export type AdminPurgeCommentId = number;
|
@@ -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:
|
7
|
+
id: AdminPurgeCommunityId;
|
7
8
|
admin_person_id: PersonId;
|
8
9
|
reason?: string;
|
9
|
-
|
10
|
+
published: string;
|
10
11
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export type AdminPurgeCommunityId = number;
|
@@ -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:
|
7
|
+
id: AdminPurgePersonId;
|
7
8
|
admin_person_id: PersonId;
|
8
9
|
reason?: string;
|
9
|
-
|
10
|
+
published: string;
|
10
11
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export type AdminPurgePersonId = number;
|
@@ -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:
|
8
|
+
id: AdminPurgePostId;
|
8
9
|
admin_person_id: PersonId;
|
9
10
|
community_id: CommunityId;
|
10
11
|
reason?: string;
|
11
|
-
|
12
|
+
published: string;
|
12
13
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export type AdminPurgePostId = number;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import type { Comment } from "./Comment";
|
2
|
+
import type { CommentAggregates } from "./CommentAggregates";
|
3
|
+
import type { Person } from "./Person";
|
4
|
+
import type { SubscribedType } from "./SubscribedType";
|
5
|
+
/**
|
6
|
+
* A slimmer comment view, without the post, or community.
|
7
|
+
*/
|
8
|
+
export type CommentSlimView = {
|
9
|
+
comment: Comment;
|
10
|
+
creator: Person;
|
11
|
+
counts: CommentAggregates;
|
12
|
+
creator_banned_from_community: boolean;
|
13
|
+
banned_from_community: boolean;
|
14
|
+
creator_is_moderator: boolean;
|
15
|
+
creator_is_admin: boolean;
|
16
|
+
subscribed: SubscribedType;
|
17
|
+
saved: boolean;
|
18
|
+
creator_blocked: boolean;
|
19
|
+
my_vote?: number;
|
20
|
+
};
|
@@ -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,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
|
};
|