lemmy-js-client 1.0.0-community-reports.0 → 1.0.0-community-post-notifs.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/http.d.ts +87 -37
- package/dist/http.js +241 -72
- package/dist/index.d.ts +44 -20
- package/dist/other_types.d.ts +22 -4
- package/dist/types/AdminAllowInstance.d.ts +1 -1
- package/dist/types/AdminBlockInstance.d.ts +2 -2
- package/dist/types/AdminBlockInstanceParams.d.ts +1 -1
- package/dist/types/AdminListUsers.d.ts +7 -0
- package/dist/types/AdminListUsersResponse.d.ts +10 -0
- package/dist/types/AdminPurgeComment.d.ts +1 -1
- package/dist/types/AdminPurgeCommunity.d.ts +1 -1
- package/dist/types/AdminPurgePerson.d.ts +1 -1
- package/dist/types/AdminPurgePost.d.ts +1 -1
- package/dist/types/BanFromCommunity.d.ts +1 -1
- package/dist/types/BanPerson.d.ts +1 -1
- package/dist/types/Comment.d.ts +2 -2
- package/dist/types/CommentActions.d.ts +2 -6
- package/dist/types/CommentActions.js +1 -0
- package/dist/types/CommentReport.d.ts +2 -2
- package/dist/types/CommentReportView.d.ts +3 -1
- package/dist/types/CommentResponse.d.ts +0 -2
- package/dist/types/CommentSlimView.d.ts +2 -6
- package/dist/types/CommentView.d.ts +2 -5
- package/dist/types/Community.d.ts +2 -2
- package/dist/types/CommunityActions.d.ts +7 -13
- package/dist/types/CommunityIdQuery.d.ts +8 -0
- package/dist/types/CommunityNotificationsMode.d.ts +4 -0
- package/dist/types/CommunityReport.d.ts +2 -2
- package/dist/types/CommunityReportView.d.ts +4 -0
- package/dist/types/CommunityView.d.ts +0 -2
- package/dist/types/CreateCommunityTag.d.ts +3 -1
- package/dist/types/CreateMultiCommunity.d.ts +5 -0
- package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
- package/dist/types/CreatePost.d.ts +1 -1
- package/dist/types/CreateSite.d.ts +16 -13
- package/dist/types/CustomEmoji.d.ts +2 -2
- package/dist/types/EditPost.d.ts +1 -1
- package/dist/types/EditSite.d.ts +22 -16
- package/dist/types/ExportDataResponse.d.ts +13 -0
- package/dist/types/FederationBlockList.d.ts +3 -3
- package/dist/types/FederationError.d.ts +3 -1
- package/dist/types/FollowMultiCommunity.d.ts +5 -0
- package/dist/types/GetComments.d.ts +0 -2
- package/dist/types/GetMultiCommunity.d.ts +4 -0
- package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
- package/dist/types/GetPosts.d.ts +2 -2
- package/dist/types/Instance.d.ts +4 -3
- package/dist/types/InstanceActions.d.ts +8 -8
- package/dist/types/InstanceActions.js +1 -0
- package/dist/types/InstanceWithFederationState.d.ts +2 -2
- package/dist/types/LemmyErrorType.d.ts +13 -19
- package/dist/types/LikeType.d.ts +4 -0
- package/dist/types/ListMultiCommunities.d.ts +5 -0
- package/dist/types/ListMultiCommunitiesResponse.d.ts +4 -0
- package/dist/types/{ListInbox.d.ts → ListNotifications.d.ts} +3 -3
- package/dist/types/{ListInboxResponse.d.ts → ListNotificationsResponse.d.ts} +3 -3
- package/dist/types/{ListBannedPersons.d.ts → ListPersonHidden.d.ts} +2 -2
- package/dist/types/{BannedPersonsResponse.d.ts → ListPersonHiddenResponse.d.ts} +4 -4
- package/dist/types/ListPersonLiked.d.ts +13 -0
- package/dist/types/ListPersonLikedResponse.d.ts +13 -0
- package/dist/types/ListPersonRead.d.ts +9 -0
- package/dist/types/ListPersonRead.js +2 -0
- package/dist/types/ListPersonReadResponse.d.ts +13 -0
- package/dist/types/ListPersonReadResponse.js +2 -0
- package/dist/types/ListingType.d.ts +1 -1
- package/dist/types/LocalImage.d.ts +8 -3
- package/dist/types/LocalImageView.d.ts +2 -0
- package/dist/types/LocalSite.d.ts +6 -6
- package/dist/types/LocalSiteRateLimit.d.ts +16 -16
- package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
- package/dist/types/LocalUser.d.ts +4 -2
- package/dist/types/LocalUserView.d.ts +1 -2
- package/dist/types/LockPost.d.ts +1 -0
- package/dist/types/Login.d.ts +3 -0
- package/dist/types/LoginToken.d.ts +1 -1
- package/dist/types/MarkNotificationAsRead.d.ts +8 -0
- package/dist/types/MarkNotificationAsRead.js +2 -0
- package/dist/types/ModAdd.d.ts +1 -1
- package/dist/types/ModAddCommunity.d.ts +1 -1
- package/dist/types/ModBan.d.ts +2 -2
- package/dist/types/ModBanFromCommunity.d.ts +2 -2
- package/dist/types/ModChangeCommunityVisibility.d.ts +1 -2
- package/dist/types/ModEditPost.d.ts +10 -0
- package/dist/types/ModEditPost.js +2 -0
- package/dist/types/ModFeaturePost.d.ts +1 -1
- package/dist/types/ModLockPost.d.ts +2 -1
- package/dist/types/ModRemoveComment.d.ts +1 -1
- package/dist/types/ModRemoveCommunity.d.ts +1 -1
- package/dist/types/ModRemovePost.d.ts +1 -1
- package/dist/types/ModTransferCommunity.d.ts +1 -1
- package/dist/types/MultiCommunity.d.ts +17 -0
- package/dist/types/MultiCommunity.js +2 -0
- package/dist/types/MultiCommunityFollow.d.ts +8 -0
- package/dist/types/MultiCommunityFollow.js +2 -0
- package/dist/types/MultiCommunityId.d.ts +1 -0
- package/dist/types/MultiCommunityView.d.ts +6 -0
- package/dist/types/MultiCommunityView.js +2 -0
- package/dist/types/MyUserInfo.d.ts +2 -1
- package/dist/types/NotePerson.d.ts +10 -0
- package/dist/types/NotePerson.js +2 -0
- package/dist/types/Notification.d.ts +16 -0
- package/dist/types/Notification.js +2 -0
- package/dist/types/NotificationData.d.ts +10 -0
- package/dist/types/NotificationData.js +2 -0
- package/dist/types/NotificationDataType.d.ts +4 -0
- package/dist/types/NotificationDataType.js +3 -0
- package/dist/types/NotificationId.d.ts +1 -0
- package/dist/types/NotificationId.js +3 -0
- package/dist/types/NotificationTypes.d.ts +4 -0
- package/dist/types/NotificationTypes.js +3 -0
- package/dist/types/NotificationView.d.ts +6 -0
- package/dist/types/NotificationView.js +2 -0
- package/dist/types/OAuthAccount.d.ts +2 -2
- package/dist/types/OAuthProvider.d.ts +2 -2
- package/dist/types/Person.d.ts +2 -2
- package/dist/types/PersonActions.d.ts +21 -4
- package/dist/types/PersonActions.js +1 -0
- package/dist/types/PersonLikedCombinedView.d.ts +7 -0
- package/dist/types/PersonLikedCombinedView.js +2 -0
- package/dist/types/PersonView.d.ts +2 -3
- package/dist/types/Post.d.ts +4 -4
- package/dist/types/PostActions.d.ts +7 -9
- package/dist/types/PostNotificationsMode.d.ts +4 -0
- package/dist/types/PostNotificationsMode.js +3 -0
- package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
- package/dist/types/PostOrCommentOrPrivateMessage.js +2 -0
- package/dist/types/PostReport.d.ts +2 -2
- package/dist/types/PostReportView.d.ts +3 -1
- package/dist/types/PostView.d.ts +2 -5
- package/dist/types/PrivateMessage.d.ts +2 -3
- package/dist/types/PrivateMessageReport.d.ts +2 -2
- package/dist/types/PrivateMessageReportView.d.ts +2 -0
- package/dist/types/ReadableFederationState.d.ts +2 -2
- package/dist/types/RegistrationApplication.d.ts +1 -1
- package/dist/types/SaveUserSettings.d.ts +6 -1
- package/dist/types/Search.d.ts +5 -1
- package/dist/types/SearchCombinedView.d.ts +4 -1
- package/dist/types/SearchType.d.ts +1 -1
- package/dist/types/Site.d.ts +4 -3
- package/dist/types/SiteResponse.d.ts +0 -4
- package/dist/types/Tag.d.ts +8 -16
- package/dist/types/Tagline.d.ts +2 -2
- package/dist/types/TagsView.d.ts +1 -1
- package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
- package/dist/types/UpdateCommunityNotifications.js +2 -0
- package/dist/types/UpdateCommunityTag.d.ts +3 -2
- package/dist/types/UpdateMultiCommunity.d.ts +7 -0
- package/dist/types/UpdateMultiCommunity.js +2 -0
- package/dist/types/UpdatePostNotifications.d.ts +9 -0
- package/dist/types/UpdatePostNotifications.js +2 -0
- package/dist/types/UserBlockInstanceCommunitiesParams.d.ts +8 -0
- package/dist/types/UserBlockInstanceCommunitiesParams.js +2 -0
- package/dist/types/{UserBlockInstanceParams.d.ts → UserBlockInstancePersonsParams.d.ts} +2 -2
- package/dist/types/UserBlockInstancePersonsParams.js +2 -0
- package/dist/types/UserSettingsBackup.d.ts +31 -0
- package/dist/types/UserSettingsBackup.js +2 -0
- package/dist/types/VoteShow.d.ts +4 -0
- package/dist/types/VoteShow.js +3 -0
- package/dist/types/VoteView.d.ts +1 -1
- package/package.json +7 -6
- package/dist/types/CommentReply.d.ts +0 -13
- package/dist/types/CommentReplyId.d.ts +0 -4
- package/dist/types/CommentReplyView.d.ts +0 -32
- package/dist/types/InboxCombinedView.d.ts +0 -13
- package/dist/types/InboxDataType.d.ts +0 -4
- package/dist/types/MarkCommentReplyAsRead.d.ts +0 -8
- package/dist/types/MarkPersonCommentMentionAsRead.d.ts +0 -8
- package/dist/types/MarkPersonPostMentionAsRead.d.ts +0 -8
- package/dist/types/PersonCommentMention.d.ts +0 -13
- package/dist/types/PersonCommentMentionId.d.ts +0 -4
- package/dist/types/PersonCommentMentionView.d.ts +0 -30
- package/dist/types/PersonPostMention.d.ts +0 -13
- package/dist/types/PersonPostMentionId.d.ts +0 -4
- package/dist/types/PersonPostMentionView.d.ts +0 -32
- package/dist/types/ResolveObjectResponse.d.ts +0 -13
- /package/dist/types/{BannedPersonsResponse.js → AdminListUsers.js} +0 -0
- /package/dist/types/{CommentReply.js → AdminListUsersResponse.js} +0 -0
- /package/dist/types/{CommentReplyView.js → CommunityIdQuery.js} +0 -0
- /package/dist/types/{CommentReplyId.js → CommunityNotificationsMode.js} +0 -0
- /package/dist/types/{InboxDataType.js → CreateMultiCommunity.js} +0 -0
- /package/dist/types/{InboxCombinedView.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
- /package/dist/types/{ListBannedPersons.js → ExportDataResponse.js} +0 -0
- /package/dist/types/{ListInbox.js → FollowMultiCommunity.js} +0 -0
- /package/dist/types/{ListInboxResponse.js → GetMultiCommunity.js} +0 -0
- /package/dist/types/{MarkCommentReplyAsRead.js → GetMultiCommunityResponse.js} +0 -0
- /package/dist/types/{PersonCommentMentionId.js → LikeType.js} +0 -0
- /package/dist/types/{MarkPersonCommentMentionAsRead.js → ListMultiCommunities.js} +0 -0
- /package/dist/types/{MarkPersonPostMentionAsRead.js → ListMultiCommunitiesResponse.js} +0 -0
- /package/dist/types/{PersonCommentMention.js → ListNotifications.js} +0 -0
- /package/dist/types/{PersonCommentMentionView.js → ListNotificationsResponse.js} +0 -0
- /package/dist/types/{PersonPostMention.js → ListPersonHidden.js} +0 -0
- /package/dist/types/{PersonPostMentionView.js → ListPersonHiddenResponse.js} +0 -0
- /package/dist/types/{ResolveObjectResponse.js → ListPersonLiked.js} +0 -0
- /package/dist/types/{UserBlockInstanceParams.js → ListPersonLikedResponse.js} +0 -0
- /package/dist/types/{PersonPostMentionId.js → MultiCommunityId.js} +0 -0
package/dist/index.d.ts
CHANGED
@@ -13,6 +13,8 @@ export { AdminBlockInstance } from "./types/AdminBlockInstance";
|
|
13
13
|
export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
|
14
14
|
export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
15
15
|
export { AdminBlockInstanceView } from "./types/AdminBlockInstanceView";
|
16
|
+
export { AdminListUsers } from "./types/AdminListUsers";
|
17
|
+
export { AdminListUsersResponse } from "./types/AdminListUsersResponse";
|
16
18
|
export { AdminPurgeComment } from "./types/AdminPurgeComment";
|
17
19
|
export { AdminPurgeCommentId } from "./types/AdminPurgeCommentId";
|
18
20
|
export { AdminPurgeCommentView } from "./types/AdminPurgeCommentView";
|
@@ -32,7 +34,6 @@ export { BanFromCommunity } from "./types/BanFromCommunity";
|
|
32
34
|
export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
|
33
35
|
export { BanPerson } from "./types/BanPerson";
|
34
36
|
export { BanPersonResponse } from "./types/BanPersonResponse";
|
35
|
-
export { BannedPersonsResponse } from "./types/BannedPersonsResponse";
|
36
37
|
export { BlockCommunity } from "./types/BlockCommunity";
|
37
38
|
export { BlockCommunityResponse } from "./types/BlockCommunityResponse";
|
38
39
|
export { BlockPerson } from "./types/BlockPerson";
|
@@ -42,9 +43,6 @@ export { ChangePassword } from "./types/ChangePassword";
|
|
42
43
|
export { Comment } from "./types/Comment";
|
43
44
|
export { CommentActions } from "./types/CommentActions";
|
44
45
|
export { CommentId } from "./types/CommentId";
|
45
|
-
export { CommentReply } from "./types/CommentReply";
|
46
|
-
export { CommentReplyId } from "./types/CommentReplyId";
|
47
|
-
export { CommentReplyView } from "./types/CommentReplyView";
|
48
46
|
export { CommentReport } from "./types/CommentReport";
|
49
47
|
export { CommentReportId } from "./types/CommentReportId";
|
50
48
|
export { CommentReportResponse } from "./types/CommentReportResponse";
|
@@ -58,7 +56,9 @@ export { CommunityActions } from "./types/CommunityActions";
|
|
58
56
|
export { CommunityFollowerState } from "./types/CommunityFollowerState";
|
59
57
|
export { CommunityFollowerView } from "./types/CommunityFollowerView";
|
60
58
|
export { CommunityId } from "./types/CommunityId";
|
59
|
+
export { CommunityIdQuery } from "./types/CommunityIdQuery";
|
61
60
|
export { CommunityModeratorView } from "./types/CommunityModeratorView";
|
61
|
+
export { CommunityNotificationsMode } from "./types/CommunityNotificationsMode";
|
62
62
|
export { CommunityReport } from "./types/CommunityReport";
|
63
63
|
export { CommunityReportId } from "./types/CommunityReportId";
|
64
64
|
export { CommunityReportResponse } from "./types/CommunityReportResponse";
|
@@ -74,7 +74,9 @@ export { CreateCommunity } from "./types/CreateCommunity";
|
|
74
74
|
export { CreateCommunityReport } from "./types/CreateCommunityReport";
|
75
75
|
export { CreateCommunityTag } from "./types/CreateCommunityTag";
|
76
76
|
export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
77
|
+
export { CreateMultiCommunity } from "./types/CreateMultiCommunity";
|
77
78
|
export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
79
|
+
export { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
|
78
80
|
export { CreatePost } from "./types/CreatePost";
|
79
81
|
export { CreatePostLike } from "./types/CreatePostLike";
|
80
82
|
export { CreatePostReport } from "./types/CreatePostReport";
|
@@ -106,12 +108,14 @@ export { EditOAuthProvider } from "./types/EditOAuthProvider";
|
|
106
108
|
export { EditPost } from "./types/EditPost";
|
107
109
|
export { EditPrivateMessage } from "./types/EditPrivateMessage";
|
108
110
|
export { EditSite } from "./types/EditSite";
|
111
|
+
export { ExportDataResponse } from "./types/ExportDataResponse";
|
109
112
|
export { FeaturePost } from "./types/FeaturePost";
|
110
113
|
export { FederatedInstances } from "./types/FederatedInstances";
|
111
114
|
export { FederationBlockList } from "./types/FederationBlockList";
|
112
115
|
export { FederationError } from "./types/FederationError";
|
113
116
|
export { FederationMode } from "./types/FederationMode";
|
114
117
|
export { FollowCommunity } from "./types/FollowCommunity";
|
118
|
+
export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
|
115
119
|
export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
116
120
|
export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
|
117
121
|
export { GetComment } from "./types/GetComment";
|
@@ -125,6 +129,8 @@ export { GetCommunityResponse } from "./types/GetCommunityResponse";
|
|
125
129
|
export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
|
126
130
|
export { GetModlog } from "./types/GetModlog";
|
127
131
|
export { GetModlogResponse } from "./types/GetModlogResponse";
|
132
|
+
export { GetMultiCommunity } from "./types/GetMultiCommunity";
|
133
|
+
export { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
|
128
134
|
export { GetPersonDetails } from "./types/GetPersonDetails";
|
129
135
|
export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
|
130
136
|
export { GetPost } from "./types/GetPost";
|
@@ -145,8 +151,6 @@ export { HidePost } from "./types/HidePost";
|
|
145
151
|
export { ImageDetails } from "./types/ImageDetails";
|
146
152
|
export { ImageGetParams } from "./types/ImageGetParams";
|
147
153
|
export { ImageProxyParams } from "./types/ImageProxyParams";
|
148
|
-
export { InboxCombinedView } from "./types/InboxCombinedView";
|
149
|
-
export { InboxDataType } from "./types/InboxDataType";
|
150
154
|
export { Instance } from "./types/Instance";
|
151
155
|
export { InstanceActions } from "./types/InstanceActions";
|
152
156
|
export { InstanceId } from "./types/InstanceId";
|
@@ -154,8 +158,8 @@ export { InstanceWithFederationState } from "./types/InstanceWithFederationState
|
|
154
158
|
export { Language } from "./types/Language";
|
155
159
|
export { LanguageId } from "./types/LanguageId";
|
156
160
|
export { LemmyErrorType } from "./types/LemmyErrorType";
|
161
|
+
export { LikeType } from "./types/LikeType";
|
157
162
|
export { LinkMetadata } from "./types/LinkMetadata";
|
158
|
-
export { ListBannedPersons } from "./types/ListBannedPersons";
|
159
163
|
export { ListCommentLikes } from "./types/ListCommentLikes";
|
160
164
|
export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
161
165
|
export { ListCommunities } from "./types/ListCommunities";
|
@@ -164,13 +168,21 @@ export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
|
|
164
168
|
export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
|
165
169
|
export { ListCustomEmojis } from "./types/ListCustomEmojis";
|
166
170
|
export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
|
167
|
-
export { ListInbox } from "./types/ListInbox";
|
168
|
-
export { ListInboxResponse } from "./types/ListInboxResponse";
|
169
171
|
export { ListLoginsResponse } from "./types/ListLoginsResponse";
|
170
172
|
export { ListMedia } from "./types/ListMedia";
|
171
173
|
export { ListMediaResponse } from "./types/ListMediaResponse";
|
174
|
+
export { ListMultiCommunities } from "./types/ListMultiCommunities";
|
175
|
+
export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
|
176
|
+
export { ListNotifications } from "./types/ListNotifications";
|
177
|
+
export { ListNotificationsResponse } from "./types/ListNotificationsResponse";
|
172
178
|
export { ListPersonContent } from "./types/ListPersonContent";
|
173
179
|
export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
180
|
+
export { ListPersonHidden } from "./types/ListPersonHidden";
|
181
|
+
export { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
|
182
|
+
export { ListPersonLiked } from "./types/ListPersonLiked";
|
183
|
+
export { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
|
184
|
+
export { ListPersonRead } from "./types/ListPersonRead";
|
185
|
+
export { ListPersonReadResponse } from "./types/ListPersonReadResponse";
|
174
186
|
export { ListPersonSaved } from "./types/ListPersonSaved";
|
175
187
|
export { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
|
176
188
|
export { ListPostLikes } from "./types/ListPostLikes";
|
@@ -195,10 +207,8 @@ export { LockPost } from "./types/LockPost";
|
|
195
207
|
export { Login } from "./types/Login";
|
196
208
|
export { LoginResponse } from "./types/LoginResponse";
|
197
209
|
export { LoginToken } from "./types/LoginToken";
|
198
|
-
export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
199
210
|
export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
200
|
-
export {
|
201
|
-
export { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
|
211
|
+
export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
202
212
|
export { MarkPostAsRead } from "./types/MarkPostAsRead";
|
203
213
|
export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
|
204
214
|
export { ModAdd } from "./types/ModAdd";
|
@@ -216,6 +226,7 @@ export { ModBanView } from "./types/ModBanView";
|
|
216
226
|
export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
|
217
227
|
export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
|
218
228
|
export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
|
229
|
+
export { ModEditPost } from "./types/ModEditPost";
|
219
230
|
export { ModFeaturePost } from "./types/ModFeaturePost";
|
220
231
|
export { ModFeaturePostId } from "./types/ModFeaturePostId";
|
221
232
|
export { ModFeaturePostView } from "./types/ModFeaturePostView";
|
@@ -236,7 +247,18 @@ export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
|
|
236
247
|
export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
|
237
248
|
export { ModlogActionType } from "./types/ModlogActionType";
|
238
249
|
export { ModlogCombinedView } from "./types/ModlogCombinedView";
|
250
|
+
export { MultiCommunity } from "./types/MultiCommunity";
|
251
|
+
export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
|
252
|
+
export { MultiCommunityId } from "./types/MultiCommunityId";
|
253
|
+
export { MultiCommunityView } from "./types/MultiCommunityView";
|
239
254
|
export { MyUserInfo } from "./types/MyUserInfo";
|
255
|
+
export { NotePerson } from "./types/NotePerson";
|
256
|
+
export { Notification } from "./types/Notification";
|
257
|
+
export { NotificationData } from "./types/NotificationData";
|
258
|
+
export { NotificationDataType } from "./types/NotificationDataType";
|
259
|
+
export { NotificationId } from "./types/NotificationId";
|
260
|
+
export { NotificationTypes } from "./types/NotificationTypes";
|
261
|
+
export { NotificationView } from "./types/NotificationView";
|
240
262
|
export { OAuthAccount } from "./types/OAuthAccount";
|
241
263
|
export { OAuthProvider } from "./types/OAuthProvider";
|
242
264
|
export { OAuthProviderId } from "./types/OAuthProviderId";
|
@@ -247,15 +269,10 @@ export { PasswordReset } from "./types/PasswordReset";
|
|
247
269
|
export { PendingFollow } from "./types/PendingFollow";
|
248
270
|
export { Person } from "./types/Person";
|
249
271
|
export { PersonActions } from "./types/PersonActions";
|
250
|
-
export { PersonCommentMention } from "./types/PersonCommentMention";
|
251
|
-
export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
|
252
|
-
export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
|
253
272
|
export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
|
254
273
|
export { PersonContentType } from "./types/PersonContentType";
|
255
274
|
export { PersonId } from "./types/PersonId";
|
256
|
-
export {
|
257
|
-
export { PersonPostMentionId } from "./types/PersonPostMentionId";
|
258
|
-
export { PersonPostMentionView } from "./types/PersonPostMentionView";
|
275
|
+
export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
|
259
276
|
export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
|
260
277
|
export { PersonView } from "./types/PersonView";
|
261
278
|
export { PluginMetadata } from "./types/PluginMetadata";
|
@@ -264,6 +281,8 @@ export { PostActions } from "./types/PostActions";
|
|
264
281
|
export { PostFeatureType } from "./types/PostFeatureType";
|
265
282
|
export { PostId } from "./types/PostId";
|
266
283
|
export { PostListingMode } from "./types/PostListingMode";
|
284
|
+
export { PostNotificationsMode } from "./types/PostNotificationsMode";
|
285
|
+
export { PostOrCommentOrPrivateMessage } from "./types/PostOrCommentOrPrivateMessage";
|
267
286
|
export { PostReport } from "./types/PostReport";
|
268
287
|
export { PostReportId } from "./types/PostReportId";
|
269
288
|
export { PostReportResponse } from "./types/PostReportResponse";
|
@@ -300,7 +319,6 @@ export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
|
300
319
|
export { ResolveCommentReport } from "./types/ResolveCommentReport";
|
301
320
|
export { ResolveCommunityReport } from "./types/ResolveCommunityReport";
|
302
321
|
export { ResolveObject } from "./types/ResolveObject";
|
303
|
-
export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
|
304
322
|
export { ResolvePostReport } from "./types/ResolvePostReport";
|
305
323
|
export { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
|
306
324
|
export { SaveComment } from "./types/SaveComment";
|
@@ -324,11 +342,17 @@ export { TaglineId } from "./types/TaglineId";
|
|
324
342
|
export { TaglineResponse } from "./types/TaglineResponse";
|
325
343
|
export { TagsView } from "./types/TagsView";
|
326
344
|
export { TransferCommunity } from "./types/TransferCommunity";
|
345
|
+
export { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
|
327
346
|
export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
347
|
+
export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
348
|
+
export { UpdatePostNotifications } from "./types/UpdatePostNotifications";
|
328
349
|
export { UpdateTagline } from "./types/UpdateTagline";
|
329
350
|
export { UpdateTotp } from "./types/UpdateTotp";
|
330
351
|
export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
331
352
|
export { UploadImageResponse } from "./types/UploadImageResponse";
|
332
|
-
export {
|
353
|
+
export { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
|
354
|
+
export { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
|
355
|
+
export { UserSettingsBackup } from "./types/UserSettingsBackup";
|
333
356
|
export { VerifyEmail } from "./types/VerifyEmail";
|
357
|
+
export { VoteShow } from "./types/VoteShow";
|
334
358
|
export { VoteView } from "./types/VoteView";
|
package/dist/other_types.d.ts
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
+
import { AdminListUsers } from "./types/AdminListUsers";
|
2
|
+
import { CommunityIdQuery } from "./types/CommunityIdQuery";
|
1
3
|
import { DeleteImageParams } from "./types/DeleteImageParams";
|
2
4
|
import { GetComment } from "./types/GetComment";
|
3
5
|
import { GetComments } from "./types/GetComments";
|
4
6
|
import { GetCommunity } from "./types/GetCommunity";
|
5
7
|
import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
|
6
8
|
import { GetModlog } from "./types/GetModlog";
|
9
|
+
import { GetMultiCommunity } from "./types/GetMultiCommunity";
|
7
10
|
import { GetPersonDetails } from "./types/GetPersonDetails";
|
8
11
|
import { GetPost } from "./types/GetPost";
|
9
12
|
import { GetPosts } from "./types/GetPosts";
|
@@ -11,14 +14,17 @@ import { GetRandomCommunity } from "./types/GetRandomCommunity";
|
|
11
14
|
import { GetRegistrationApplication } from "./types/GetRegistrationApplication";
|
12
15
|
import { GetReportCount } from "./types/GetReportCount";
|
13
16
|
import { GetSiteMetadata } from "./types/GetSiteMetadata";
|
14
|
-
import { ListBannedPersons } from "./types/ListBannedPersons";
|
15
17
|
import { ListCommentLikes } from "./types/ListCommentLikes";
|
16
18
|
import { ListCommunities } from "./types/ListCommunities";
|
17
19
|
import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
|
18
20
|
import { ListCustomEmojis } from "./types/ListCustomEmojis";
|
19
|
-
import {
|
21
|
+
import { ListNotifications } from "./types/ListNotifications";
|
20
22
|
import { ListMedia } from "./types/ListMedia";
|
23
|
+
import { ListMultiCommunities } from "./types/ListMultiCommunities";
|
21
24
|
import { ListPersonContent } from "./types/ListPersonContent";
|
25
|
+
import { ListPersonHidden } from "./types/ListPersonHidden";
|
26
|
+
import { ListPersonLiked } from "./types/ListPersonLiked";
|
27
|
+
import { ListPersonRead } from "./types/ListPersonRead";
|
22
28
|
import { ListPersonSaved } from "./types/ListPersonSaved";
|
23
29
|
import { ListPostLikes } from "./types/ListPostLikes";
|
24
30
|
import { ListRegistrationApplications } from "./types/ListRegistrationApplications";
|
@@ -68,10 +74,16 @@ export interface ListPersonContentI extends ListPersonContent {
|
|
68
74
|
}
|
69
75
|
export interface GetReportCountI extends GetReportCount {
|
70
76
|
}
|
71
|
-
export interface
|
77
|
+
export interface ListNotificationsI extends ListNotifications {
|
72
78
|
}
|
73
79
|
export interface ListPersonSavedI extends ListPersonSaved {
|
74
80
|
}
|
81
|
+
export interface ListPersonReadI extends ListPersonRead {
|
82
|
+
}
|
83
|
+
export interface ListPersonHiddenI extends ListPersonHidden {
|
84
|
+
}
|
85
|
+
export interface ListPersonLikedI extends ListPersonLiked {
|
86
|
+
}
|
75
87
|
export interface ListRegistrationApplicationsI extends ListRegistrationApplications {
|
76
88
|
}
|
77
89
|
export interface GetRegistrationApplicationI extends GetRegistrationApplication {
|
@@ -84,5 +96,11 @@ export interface ListReportsI extends ListReports {
|
|
84
96
|
}
|
85
97
|
export interface DeleteImageParamsI extends DeleteImageParams {
|
86
98
|
}
|
87
|
-
export interface
|
99
|
+
export interface AdminListUsersI extends AdminListUsers {
|
100
|
+
}
|
101
|
+
export interface CommunityIdQueryI extends CommunityIdQuery {
|
102
|
+
}
|
103
|
+
export interface ListMultiCommunitiesI extends ListMultiCommunities {
|
104
|
+
}
|
105
|
+
export interface GetMultiCommunityI extends GetMultiCommunity {
|
88
106
|
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { LocalUserView } from "./LocalUserView";
|
2
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
3
|
+
export type AdminListUsersResponse = {
|
4
|
+
users: Array<LocalUserView>;
|
5
|
+
/**
|
6
|
+
* the pagination cursor to use to fetch the next page
|
7
|
+
*/
|
8
|
+
next_page?: PaginationCursor;
|
9
|
+
prev_page?: PaginationCursor;
|
10
|
+
};
|
package/dist/types/Comment.d.ts
CHANGED
@@ -15,8 +15,8 @@ export type Comment = {
|
|
15
15
|
* Whether the comment has been removed.
|
16
16
|
*/
|
17
17
|
removed: boolean;
|
18
|
-
|
19
|
-
|
18
|
+
published_at: string;
|
19
|
+
updated_at?: string;
|
20
20
|
/**
|
21
21
|
* Whether the comment has been deleted by its creator.
|
22
22
|
*/
|
@@ -1,8 +1,4 @@
|
|
1
|
-
import type { CommentId } from "./CommentId";
|
2
|
-
import type { PersonId } from "./PersonId";
|
3
1
|
export type CommentActions = {
|
4
|
-
person_id: PersonId;
|
5
|
-
comment_id: CommentId;
|
6
2
|
/**
|
7
3
|
* The like / score for the comment.
|
8
4
|
*/
|
@@ -10,9 +6,9 @@ export type CommentActions = {
|
|
10
6
|
/**
|
11
7
|
* When the comment was liked.
|
12
8
|
*/
|
13
|
-
|
9
|
+
liked_at?: string;
|
14
10
|
/**
|
15
11
|
* When the comment was saved.
|
16
12
|
*/
|
17
|
-
|
13
|
+
saved_at?: string;
|
18
14
|
};
|
@@ -18,8 +18,10 @@ export type CommentReportView = {
|
|
18
18
|
comment_creator: Person;
|
19
19
|
comment_actions?: CommentActions;
|
20
20
|
resolver?: Person;
|
21
|
-
creator_community_actions?: CommunityActions;
|
22
21
|
person_actions?: PersonActions;
|
23
22
|
community_actions?: CommunityActions;
|
24
23
|
creator_is_admin: boolean;
|
24
|
+
creator_is_moderator: boolean;
|
25
|
+
creator_banned: boolean;
|
26
|
+
creator_banned_from_community: boolean;
|
25
27
|
};
|
@@ -1,7 +1,5 @@
|
|
1
1
|
import type { Comment } from "./Comment";
|
2
2
|
import type { CommentActions } from "./CommentActions";
|
3
|
-
import type { CommunityActions } from "./CommunityActions";
|
4
|
-
import type { InstanceActions } from "./InstanceActions";
|
5
3
|
import type { Person } from "./Person";
|
6
4
|
import type { PersonActions } from "./PersonActions";
|
7
5
|
/**
|
@@ -12,11 +10,9 @@ export type CommentSlimView = {
|
|
12
10
|
creator: Person;
|
13
11
|
comment_actions?: CommentActions;
|
14
12
|
person_actions?: PersonActions;
|
15
|
-
creator_community_actions?: CommunityActions;
|
16
|
-
instance_actions?: InstanceActions;
|
17
|
-
creator_home_instance_actions?: InstanceActions;
|
18
|
-
creator_local_instance_actions?: InstanceActions;
|
19
13
|
creator_is_admin: boolean;
|
20
14
|
can_mod: boolean;
|
21
15
|
creator_banned: boolean;
|
16
|
+
creator_is_moderator: boolean;
|
17
|
+
creator_banned_from_community: boolean;
|
22
18
|
};
|
@@ -2,7 +2,6 @@ import type { Comment } from "./Comment";
|
|
2
2
|
import type { CommentActions } from "./CommentActions";
|
3
3
|
import type { Community } from "./Community";
|
4
4
|
import type { CommunityActions } from "./CommunityActions";
|
5
|
-
import type { InstanceActions } from "./InstanceActions";
|
6
5
|
import type { Person } from "./Person";
|
7
6
|
import type { PersonActions } from "./PersonActions";
|
8
7
|
import type { Post } from "./Post";
|
@@ -18,12 +17,10 @@ export type CommentView = {
|
|
18
17
|
community_actions?: CommunityActions;
|
19
18
|
comment_actions?: CommentActions;
|
20
19
|
person_actions?: PersonActions;
|
21
|
-
instance_actions?: InstanceActions;
|
22
|
-
creator_home_instance_actions?: InstanceActions;
|
23
|
-
creator_local_instance_actions?: InstanceActions;
|
24
|
-
creator_community_actions?: CommunityActions;
|
25
20
|
creator_is_admin: boolean;
|
26
21
|
post_tags: TagsView;
|
27
22
|
can_mod: boolean;
|
28
23
|
creator_banned: boolean;
|
24
|
+
creator_is_moderator: boolean;
|
25
|
+
creator_banned_from_community: boolean;
|
29
26
|
};
|
@@ -20,8 +20,8 @@ export type Community = {
|
|
20
20
|
* Whether the community is removed by a mod.
|
21
21
|
*/
|
22
22
|
removed: boolean;
|
23
|
-
|
24
|
-
|
23
|
+
published_at: string;
|
24
|
+
updated_at?: string;
|
25
25
|
/**
|
26
26
|
* Whether the community has been deleted by its creator.
|
27
27
|
*/
|
@@ -1,35 +1,29 @@
|
|
1
1
|
import type { CommunityFollowerState } from "./CommunityFollowerState";
|
2
|
-
import type {
|
3
|
-
import type { PersonId } from "./PersonId";
|
2
|
+
import type { CommunityNotificationsMode } from "./CommunityNotificationsMode";
|
4
3
|
export type CommunityActions = {
|
5
|
-
community_id: CommunityId;
|
6
|
-
person_id: PersonId;
|
7
4
|
/**
|
8
5
|
* When the community was followed.
|
9
6
|
*/
|
10
|
-
|
7
|
+
followed_at?: string;
|
11
8
|
/**
|
12
9
|
* The state of the community follow.
|
13
10
|
*/
|
14
11
|
follow_state?: CommunityFollowerState;
|
15
|
-
/**
|
16
|
-
* The approver of the community follow.
|
17
|
-
*/
|
18
|
-
follow_approver_id?: PersonId;
|
19
12
|
/**
|
20
13
|
* When the community was blocked.
|
21
14
|
*/
|
22
|
-
|
15
|
+
blocked_at?: string;
|
23
16
|
/**
|
24
17
|
* When this user became a moderator.
|
25
18
|
*/
|
26
|
-
|
19
|
+
became_moderator_at?: string;
|
27
20
|
/**
|
28
21
|
* When this user received a ban.
|
29
22
|
*/
|
30
|
-
|
23
|
+
received_ban_at?: string;
|
31
24
|
/**
|
32
25
|
* When their ban expires.
|
33
26
|
*/
|
34
|
-
|
27
|
+
ban_expires_at?: string;
|
28
|
+
notifications?: CommunityNotificationsMode;
|
35
29
|
};
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import type { Community } from "./Community";
|
2
2
|
import type { CommunityActions } from "./CommunityActions";
|
3
|
-
import type { InstanceActions } from "./InstanceActions";
|
4
3
|
import type { TagsView } from "./TagsView";
|
5
4
|
/**
|
6
5
|
* A community view.
|
@@ -8,7 +7,6 @@ import type { TagsView } from "./TagsView";
|
|
8
7
|
export type CommunityView = {
|
9
8
|
community: Community;
|
10
9
|
community_actions?: CommunityActions;
|
11
|
-
instance_actions?: InstanceActions;
|
12
10
|
can_mod: boolean;
|
13
11
|
post_tags: TagsView;
|
14
12
|
};
|