lemmy-js-client 1.0.0-multi-community.20 → 1.0.0-multi-community-follow-state.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 +42 -26
- package/dist/http.js +105 -56
- package/dist/index.d.ts +37 -30
- package/dist/index.js +3 -0
- package/dist/other_types.d.ts +2 -2
- package/dist/types/{ModAdd.d.ts → AdminAdd.d.ts} +4 -4
- package/dist/types/AdminAddId.d.ts +1 -0
- package/dist/types/{ModAddView.d.ts → AdminAddView.d.ts} +3 -3
- package/dist/types/AdminAllowInstance.d.ts +1 -1
- package/dist/types/AdminAllowInstanceParams.d.ts +1 -1
- package/dist/types/{ModBan.d.ts → AdminBan.d.ts} +4 -4
- package/dist/types/AdminBanId.d.ts +1 -0
- package/dist/types/{ModBanView.d.ts → AdminBanView.d.ts} +3 -3
- package/dist/types/AdminBlockInstance.d.ts +1 -1
- package/dist/types/AdminBlockInstanceParams.d.ts +1 -1
- 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/{ModRemoveCommunity.d.ts → AdminRemoveCommunity.d.ts} +4 -4
- package/dist/types/AdminRemoveCommunityId.d.ts +1 -0
- package/dist/types/AdminRemoveCommunityView.d.ts +11 -0
- package/dist/types/AllLemmyErrors.d.ts +1 -0
- package/dist/types/AllLemmyErrors.js +119 -0
- package/dist/types/BanFromCommunity.d.ts +1 -1
- package/dist/types/BanPerson.d.ts +1 -1
- package/dist/types/Comment.d.ts +4 -0
- 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 +4 -5
- package/dist/types/CommunityActions.d.ts +2 -0
- package/dist/types/CommunityNotificationsMode.d.ts +4 -0
- 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/CreateCustomEmoji.d.ts +2 -1
- package/dist/types/CreateCustomEmoji.js +0 -1
- package/dist/types/CreateSite.d.ts +14 -13
- package/dist/types/EditCustomEmoji.d.ts +7 -5
- package/dist/types/EditSite.d.ts +21 -16
- package/dist/types/ExportDataResponse.d.ts +13 -0
- package/dist/types/FederationError.d.ts +4 -2
- package/dist/types/HideCommunity.d.ts +1 -1
- package/dist/types/InstanceActions.d.ts +6 -2
- package/dist/types/LemmyErrorType.d.ts +12 -136
- package/dist/types/LinkMetadata.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/LocalImage.d.ts +1 -1
- package/dist/types/LocalSite.d.ts +1 -6
- package/dist/types/LocalSiteRateLimit.d.ts +14 -14
- package/dist/types/LocalUser.d.ts +11 -13
- package/dist/types/LocalUserView.d.ts +2 -2
- package/dist/types/LockComment.d.ts +9 -0
- package/dist/types/LockPost.d.ts +1 -1
- package/dist/types/MarkNotificationAsRead.d.ts +8 -0
- package/dist/types/{ModAddCommunity.d.ts → ModAddToCommunity.d.ts} +3 -3
- package/dist/types/ModAddToCommunityId.d.ts +1 -0
- package/dist/types/{ModAddCommunityView.d.ts → ModAddToCommunityView.d.ts} +3 -3
- package/dist/types/ModBanFromCommunity.d.ts +1 -1
- package/dist/types/ModEditPost.d.ts +10 -0
- package/dist/types/ModLockComment.d.ts +14 -0
- package/dist/types/ModLockCommentId.d.ts +1 -0
- package/dist/types/ModLockCommentView.d.ts +16 -0
- package/dist/types/ModLockPost.d.ts +1 -1
- package/dist/types/ModRemoveComment.d.ts +1 -1
- package/dist/types/ModRemovePost.d.ts +1 -1
- package/dist/types/ModlogActionType.d.ts +1 -1
- package/dist/types/ModlogCombinedView.d.ts +16 -13
- package/dist/types/MultiCommunityView.d.ts +2 -0
- package/dist/types/MyUserInfo.d.ts +2 -1
- package/dist/types/NotePerson.d.ts +10 -0
- package/dist/types/Notification.d.ts +16 -0
- package/dist/types/NotificationData.d.ts +10 -0
- package/dist/types/NotificationDataType.d.ts +4 -0
- package/dist/types/NotificationId.d.ts +1 -0
- package/dist/types/NotificationType.d.ts +4 -0
- package/dist/types/NotificationType.js +3 -0
- package/dist/types/NotificationView.d.ts +6 -0
- package/dist/types/OpenGraphData.d.ts +4 -0
- package/dist/types/PersonActions.d.ts +12 -0
- package/dist/types/PersonView.d.ts +2 -4
- package/dist/types/Post.d.ts +2 -0
- package/dist/types/PostActions.d.ts +2 -0
- package/dist/types/PostActions.js +0 -1
- 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/PostReportView.d.ts +3 -1
- package/dist/types/PostView.d.ts +4 -5
- package/dist/types/PrivateMessage.d.ts +0 -1
- package/dist/types/PrivateMessageReportView.d.ts +2 -0
- package/dist/types/PurgeComment.d.ts +1 -1
- package/dist/types/PurgeCommunity.d.ts +1 -1
- package/dist/types/PurgePerson.d.ts +1 -1
- package/dist/types/PurgePost.d.ts +1 -1
- package/dist/types/ReadableFederationState.d.ts +1 -1
- package/dist/types/RemoveComment.d.ts +1 -1
- package/dist/types/RemoveCommunity.d.ts +1 -1
- package/dist/types/RemovePost.d.ts +1 -1
- package/dist/types/SaveUserSettings.d.ts +9 -5
- package/dist/types/Tag.d.ts +6 -14
- package/dist/types/TagsView.d.ts +1 -1
- package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
- package/dist/types/UpdateCommunityTag.d.ts +3 -2
- 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 +27 -0
- package/dist/types/UserSettingsBackup.js +2 -0
- package/dist/types/VoteView.d.ts +1 -0
- package/package.json +6 -5
- 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/MarkPrivateMessageAsRead.d.ts +0 -8
- package/dist/types/ModAddCommunityId.d.ts +0 -1
- package/dist/types/ModAddId.d.ts +0 -1
- package/dist/types/ModBanId.d.ts +0 -1
- package/dist/types/ModRemoveCommunityId.d.ts +0 -1
- package/dist/types/ModRemoveCommunityView.d.ts +0 -11
- 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/{CommentReply.js → AdminAdd.js} +0 -0
- /package/dist/types/{CommentReplyId.js → AdminAddId.js} +0 -0
- /package/dist/types/{CommentReplyView.js → AdminAddView.js} +0 -0
- /package/dist/types/{InboxCombinedView.js → AdminBan.js} +0 -0
- /package/dist/types/{InboxDataType.js → AdminBanId.js} +0 -0
- /package/dist/types/{ListInbox.js → AdminBanView.js} +0 -0
- /package/dist/types/{ListInboxResponse.js → AdminRemoveCommunity.js} +0 -0
- /package/dist/types/{ModAddCommunityId.js → AdminRemoveCommunityId.js} +0 -0
- /package/dist/types/{MarkCommentReplyAsRead.js → AdminRemoveCommunityView.js} +0 -0
- /package/dist/types/{ModAddId.js → CommunityNotificationsMode.js} +0 -0
- /package/dist/types/{MarkPersonCommentMentionAsRead.js → ExportDataResponse.js} +0 -0
- /package/dist/types/{MarkPersonPostMentionAsRead.js → ListNotifications.js} +0 -0
- /package/dist/types/{MarkPrivateMessageAsRead.js → ListNotificationsResponse.js} +0 -0
- /package/dist/types/{ModAdd.js → LockComment.js} +0 -0
- /package/dist/types/{ModAddCommunity.js → MarkNotificationAsRead.js} +0 -0
- /package/dist/types/{ModAddCommunityView.js → ModAddToCommunity.js} +0 -0
- /package/dist/types/{ModBanId.js → ModAddToCommunityId.js} +0 -0
- /package/dist/types/{ModAddView.js → ModAddToCommunityView.js} +0 -0
- /package/dist/types/{ModBan.js → ModEditPost.js} +0 -0
- /package/dist/types/{ModBanView.js → ModLockComment.js} +0 -0
- /package/dist/types/{ModRemoveCommunityId.js → ModLockCommentId.js} +0 -0
- /package/dist/types/{ModRemoveCommunity.js → ModLockCommentView.js} +0 -0
- /package/dist/types/{ModRemoveCommunityView.js → NotePerson.js} +0 -0
- /package/dist/types/{PersonCommentMention.js → Notification.js} +0 -0
- /package/dist/types/{PersonCommentMentionView.js → NotificationData.js} +0 -0
- /package/dist/types/{PersonCommentMentionId.js → NotificationDataType.js} +0 -0
- /package/dist/types/{PersonPostMentionId.js → NotificationId.js} +0 -0
- /package/dist/types/{PersonPostMention.js → NotificationView.js} +0 -0
- /package/dist/types/{PersonPostMentionView.js → PostOrCommentOrPrivateMessage.js} +0 -0
- /package/dist/types/{UserBlockInstanceParams.js → UpdateCommunityNotifications.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -5,10 +5,16 @@ 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
|
+
export { AdminAdd } from "./types/AdminAdd";
|
|
9
|
+
export { AdminAddId } from "./types/AdminAddId";
|
|
10
|
+
export { AdminAddView } from "./types/AdminAddView";
|
|
8
11
|
export { AdminAllowInstance } from "./types/AdminAllowInstance";
|
|
9
12
|
export { AdminAllowInstanceId } from "./types/AdminAllowInstanceId";
|
|
10
13
|
export { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
|
|
11
14
|
export { AdminAllowInstanceView } from "./types/AdminAllowInstanceView";
|
|
15
|
+
export { AdminBan } from "./types/AdminBan";
|
|
16
|
+
export { AdminBanId } from "./types/AdminBanId";
|
|
17
|
+
export { AdminBanView } from "./types/AdminBanView";
|
|
12
18
|
export { AdminBlockInstance } from "./types/AdminBlockInstance";
|
|
13
19
|
export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
|
|
14
20
|
export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
|
@@ -27,6 +33,10 @@ export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
|
|
|
27
33
|
export { AdminPurgePost } from "./types/AdminPurgePost";
|
|
28
34
|
export { AdminPurgePostId } from "./types/AdminPurgePostId";
|
|
29
35
|
export { AdminPurgePostView } from "./types/AdminPurgePostView";
|
|
36
|
+
export { AdminRemoveCommunity } from "./types/AdminRemoveCommunity";
|
|
37
|
+
export { AdminRemoveCommunityId } from "./types/AdminRemoveCommunityId";
|
|
38
|
+
export { AdminRemoveCommunityView } from "./types/AdminRemoveCommunityView";
|
|
39
|
+
export { AllLemmyErrors } from "./types/AllLemmyErrors";
|
|
30
40
|
export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
|
|
31
41
|
export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
|
|
32
42
|
export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
|
|
@@ -43,9 +53,6 @@ export { ChangePassword } from "./types/ChangePassword";
|
|
|
43
53
|
export { Comment } from "./types/Comment";
|
|
44
54
|
export { CommentActions } from "./types/CommentActions";
|
|
45
55
|
export { CommentId } from "./types/CommentId";
|
|
46
|
-
export { CommentReply } from "./types/CommentReply";
|
|
47
|
-
export { CommentReplyId } from "./types/CommentReplyId";
|
|
48
|
-
export { CommentReplyView } from "./types/CommentReplyView";
|
|
49
56
|
export { CommentReport } from "./types/CommentReport";
|
|
50
57
|
export { CommentReportId } from "./types/CommentReportId";
|
|
51
58
|
export { CommentReportResponse } from "./types/CommentReportResponse";
|
|
@@ -61,6 +68,7 @@ export { CommunityFollowerView } from "./types/CommunityFollowerView";
|
|
|
61
68
|
export { CommunityId } from "./types/CommunityId";
|
|
62
69
|
export { CommunityIdQuery } from "./types/CommunityIdQuery";
|
|
63
70
|
export { CommunityModeratorView } from "./types/CommunityModeratorView";
|
|
71
|
+
export { CommunityNotificationsMode } from "./types/CommunityNotificationsMode";
|
|
64
72
|
export { CommunityReport } from "./types/CommunityReport";
|
|
65
73
|
export { CommunityReportId } from "./types/CommunityReportId";
|
|
66
74
|
export { CommunityReportResponse } from "./types/CommunityReportResponse";
|
|
@@ -110,6 +118,7 @@ export { EditOAuthProvider } from "./types/EditOAuthProvider";
|
|
|
110
118
|
export { EditPost } from "./types/EditPost";
|
|
111
119
|
export { EditPrivateMessage } from "./types/EditPrivateMessage";
|
|
112
120
|
export { EditSite } from "./types/EditSite";
|
|
121
|
+
export { ExportDataResponse } from "./types/ExportDataResponse";
|
|
113
122
|
export { FeaturePost } from "./types/FeaturePost";
|
|
114
123
|
export { FederatedInstances } from "./types/FederatedInstances";
|
|
115
124
|
export { FederationBlockList } from "./types/FederationBlockList";
|
|
@@ -152,8 +161,6 @@ export { HidePost } from "./types/HidePost";
|
|
|
152
161
|
export { ImageDetails } from "./types/ImageDetails";
|
|
153
162
|
export { ImageGetParams } from "./types/ImageGetParams";
|
|
154
163
|
export { ImageProxyParams } from "./types/ImageProxyParams";
|
|
155
|
-
export { InboxCombinedView } from "./types/InboxCombinedView";
|
|
156
|
-
export { InboxDataType } from "./types/InboxDataType";
|
|
157
164
|
export { Instance } from "./types/Instance";
|
|
158
165
|
export { InstanceActions } from "./types/InstanceActions";
|
|
159
166
|
export { InstanceId } from "./types/InstanceId";
|
|
@@ -171,13 +178,13 @@ export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
|
|
|
171
178
|
export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
|
|
172
179
|
export { ListCustomEmojis } from "./types/ListCustomEmojis";
|
|
173
180
|
export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
|
|
174
|
-
export { ListInbox } from "./types/ListInbox";
|
|
175
|
-
export { ListInboxResponse } from "./types/ListInboxResponse";
|
|
176
181
|
export { ListLoginsResponse } from "./types/ListLoginsResponse";
|
|
177
182
|
export { ListMedia } from "./types/ListMedia";
|
|
178
183
|
export { ListMediaResponse } from "./types/ListMediaResponse";
|
|
179
184
|
export { ListMultiCommunities } from "./types/ListMultiCommunities";
|
|
180
185
|
export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
|
|
186
|
+
export { ListNotifications } from "./types/ListNotifications";
|
|
187
|
+
export { ListNotificationsResponse } from "./types/ListNotificationsResponse";
|
|
181
188
|
export { ListPersonContent } from "./types/ListPersonContent";
|
|
182
189
|
export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
|
183
190
|
export { ListPersonHidden } from "./types/ListPersonHidden";
|
|
@@ -206,43 +213,36 @@ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
|
|
|
206
213
|
export { LocalUser } from "./types/LocalUser";
|
|
207
214
|
export { LocalUserId } from "./types/LocalUserId";
|
|
208
215
|
export { LocalUserView } from "./types/LocalUserView";
|
|
216
|
+
export { LockComment } from "./types/LockComment";
|
|
209
217
|
export { LockPost } from "./types/LockPost";
|
|
210
218
|
export { Login } from "./types/Login";
|
|
211
219
|
export { LoginResponse } from "./types/LoginResponse";
|
|
212
220
|
export { LoginToken } from "./types/LoginToken";
|
|
213
|
-
export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
|
214
221
|
export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
|
215
|
-
export {
|
|
216
|
-
export { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
|
|
222
|
+
export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
|
217
223
|
export { MarkPostAsRead } from "./types/MarkPostAsRead";
|
|
218
|
-
export {
|
|
219
|
-
export {
|
|
220
|
-
export {
|
|
221
|
-
export { ModAddCommunityId } from "./types/ModAddCommunityId";
|
|
222
|
-
export { ModAddCommunityView } from "./types/ModAddCommunityView";
|
|
223
|
-
export { ModAddId } from "./types/ModAddId";
|
|
224
|
-
export { ModAddView } from "./types/ModAddView";
|
|
225
|
-
export { ModBan } from "./types/ModBan";
|
|
224
|
+
export { ModAddToCommunity } from "./types/ModAddToCommunity";
|
|
225
|
+
export { ModAddToCommunityId } from "./types/ModAddToCommunityId";
|
|
226
|
+
export { ModAddToCommunityView } from "./types/ModAddToCommunityView";
|
|
226
227
|
export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
|
|
227
228
|
export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
|
|
228
229
|
export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
|
|
229
|
-
export { ModBanId } from "./types/ModBanId";
|
|
230
|
-
export { ModBanView } from "./types/ModBanView";
|
|
231
230
|
export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
|
|
232
231
|
export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
|
|
233
232
|
export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
|
|
233
|
+
export { ModEditPost } from "./types/ModEditPost";
|
|
234
234
|
export { ModFeaturePost } from "./types/ModFeaturePost";
|
|
235
235
|
export { ModFeaturePostId } from "./types/ModFeaturePostId";
|
|
236
236
|
export { ModFeaturePostView } from "./types/ModFeaturePostView";
|
|
237
|
+
export { ModLockComment } from "./types/ModLockComment";
|
|
238
|
+
export { ModLockCommentId } from "./types/ModLockCommentId";
|
|
239
|
+
export { ModLockCommentView } from "./types/ModLockCommentView";
|
|
237
240
|
export { ModLockPost } from "./types/ModLockPost";
|
|
238
241
|
export { ModLockPostId } from "./types/ModLockPostId";
|
|
239
242
|
export { ModLockPostView } from "./types/ModLockPostView";
|
|
240
243
|
export { ModRemoveComment } from "./types/ModRemoveComment";
|
|
241
244
|
export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
|
|
242
245
|
export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
|
|
243
|
-
export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
|
|
244
|
-
export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
|
|
245
|
-
export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
|
|
246
246
|
export { ModRemovePost } from "./types/ModRemovePost";
|
|
247
247
|
export { ModRemovePostId } from "./types/ModRemovePostId";
|
|
248
248
|
export { ModRemovePostView } from "./types/ModRemovePostView";
|
|
@@ -256,6 +256,13 @@ export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
|
|
|
256
256
|
export { MultiCommunityId } from "./types/MultiCommunityId";
|
|
257
257
|
export { MultiCommunityView } from "./types/MultiCommunityView";
|
|
258
258
|
export { MyUserInfo } from "./types/MyUserInfo";
|
|
259
|
+
export { NotePerson } from "./types/NotePerson";
|
|
260
|
+
export { Notification } from "./types/Notification";
|
|
261
|
+
export { NotificationData } from "./types/NotificationData";
|
|
262
|
+
export { NotificationDataType } from "./types/NotificationDataType";
|
|
263
|
+
export { NotificationId } from "./types/NotificationId";
|
|
264
|
+
export { NotificationType } from "./types/NotificationType";
|
|
265
|
+
export { NotificationView } from "./types/NotificationView";
|
|
259
266
|
export { OAuthAccount } from "./types/OAuthAccount";
|
|
260
267
|
export { OAuthProvider } from "./types/OAuthProvider";
|
|
261
268
|
export { OAuthProviderId } from "./types/OAuthProviderId";
|
|
@@ -266,16 +273,10 @@ export { PasswordReset } from "./types/PasswordReset";
|
|
|
266
273
|
export { PendingFollow } from "./types/PendingFollow";
|
|
267
274
|
export { Person } from "./types/Person";
|
|
268
275
|
export { PersonActions } from "./types/PersonActions";
|
|
269
|
-
export { PersonCommentMention } from "./types/PersonCommentMention";
|
|
270
|
-
export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
|
|
271
|
-
export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
|
|
272
276
|
export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
|
|
273
277
|
export { PersonContentType } from "./types/PersonContentType";
|
|
274
278
|
export { PersonId } from "./types/PersonId";
|
|
275
279
|
export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
|
|
276
|
-
export { PersonPostMention } from "./types/PersonPostMention";
|
|
277
|
-
export { PersonPostMentionId } from "./types/PersonPostMentionId";
|
|
278
|
-
export { PersonPostMentionView } from "./types/PersonPostMentionView";
|
|
279
280
|
export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
|
|
280
281
|
export { PersonView } from "./types/PersonView";
|
|
281
282
|
export { PluginMetadata } from "./types/PluginMetadata";
|
|
@@ -284,6 +285,8 @@ export { PostActions } from "./types/PostActions";
|
|
|
284
285
|
export { PostFeatureType } from "./types/PostFeatureType";
|
|
285
286
|
export { PostId } from "./types/PostId";
|
|
286
287
|
export { PostListingMode } from "./types/PostListingMode";
|
|
288
|
+
export { PostNotificationsMode } from "./types/PostNotificationsMode";
|
|
289
|
+
export { PostOrCommentOrPrivateMessage } from "./types/PostOrCommentOrPrivateMessage";
|
|
287
290
|
export { PostReport } from "./types/PostReport";
|
|
288
291
|
export { PostReportId } from "./types/PostReportId";
|
|
289
292
|
export { PostReportResponse } from "./types/PostReportResponse";
|
|
@@ -343,13 +346,17 @@ export { TaglineId } from "./types/TaglineId";
|
|
|
343
346
|
export { TaglineResponse } from "./types/TaglineResponse";
|
|
344
347
|
export { TagsView } from "./types/TagsView";
|
|
345
348
|
export { TransferCommunity } from "./types/TransferCommunity";
|
|
349
|
+
export { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
|
|
346
350
|
export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
|
347
351
|
export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
|
352
|
+
export { UpdatePostNotifications } from "./types/UpdatePostNotifications";
|
|
348
353
|
export { UpdateTagline } from "./types/UpdateTagline";
|
|
349
354
|
export { UpdateTotp } from "./types/UpdateTotp";
|
|
350
355
|
export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
|
351
356
|
export { UploadImageResponse } from "./types/UploadImageResponse";
|
|
352
|
-
export {
|
|
357
|
+
export { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
|
|
358
|
+
export { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
|
|
359
|
+
export { UserSettingsBackup } from "./types/UserSettingsBackup";
|
|
353
360
|
export { VerifyEmail } from "./types/VerifyEmail";
|
|
354
361
|
export { VoteShow } from "./types/VoteShow";
|
|
355
362
|
export { VoteView } from "./types/VoteView";
|
package/dist/index.js
CHANGED
|
@@ -14,4 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.AllLemmyErrors = void 0;
|
|
17
18
|
__exportStar(require("./http"), exports);
|
|
19
|
+
var AllLemmyErrors_1 = require("./types/AllLemmyErrors");
|
|
20
|
+
Object.defineProperty(exports, "AllLemmyErrors", { enumerable: true, get: function () { return AllLemmyErrors_1.AllLemmyErrors; } });
|
package/dist/other_types.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ import { ListCommentLikes } from "./types/ListCommentLikes";
|
|
|
18
18
|
import { ListCommunities } from "./types/ListCommunities";
|
|
19
19
|
import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
|
|
20
20
|
import { ListCustomEmojis } from "./types/ListCustomEmojis";
|
|
21
|
-
import {
|
|
21
|
+
import { ListNotifications } from "./types/ListNotifications";
|
|
22
22
|
import { ListMedia } from "./types/ListMedia";
|
|
23
23
|
import { ListMultiCommunities } from "./types/ListMultiCommunities";
|
|
24
24
|
import { ListPersonContent } from "./types/ListPersonContent";
|
|
@@ -74,7 +74,7 @@ export interface ListPersonContentI extends ListPersonContent {
|
|
|
74
74
|
}
|
|
75
75
|
export interface GetReportCountI extends GetReportCount {
|
|
76
76
|
}
|
|
77
|
-
export interface
|
|
77
|
+
export interface ListNotificationsI extends ListNotifications {
|
|
78
78
|
}
|
|
79
79
|
export interface ListPersonSavedI extends ListPersonSaved {
|
|
80
80
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AdminAddId } from "./AdminAddId";
|
|
2
2
|
import type { PersonId } from "./PersonId";
|
|
3
3
|
/**
|
|
4
|
-
* When someone is added as a site
|
|
4
|
+
* When someone is added as a site admin.
|
|
5
5
|
*/
|
|
6
|
-
export type
|
|
7
|
-
id:
|
|
6
|
+
export type AdminAdd = {
|
|
7
|
+
id: AdminAddId;
|
|
8
8
|
mod_person_id: PersonId;
|
|
9
9
|
other_person_id: PersonId;
|
|
10
10
|
removed: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AdminAddId = number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AdminAdd } from "./AdminAdd";
|
|
2
2
|
import type { Person } from "./Person";
|
|
3
3
|
/**
|
|
4
4
|
* When someone is added as a site moderator.
|
|
5
5
|
*/
|
|
6
|
-
export type
|
|
7
|
-
|
|
6
|
+
export type AdminAddView = {
|
|
7
|
+
admin_add: AdminAdd;
|
|
8
8
|
moderator?: Person;
|
|
9
9
|
other_person: Person;
|
|
10
10
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import type { AdminBanId } from "./AdminBanId";
|
|
1
2
|
import type { InstanceId } from "./InstanceId";
|
|
2
|
-
import type { ModBanId } from "./ModBanId";
|
|
3
3
|
import type { PersonId } from "./PersonId";
|
|
4
4
|
/**
|
|
5
5
|
* When someone is banned from the site.
|
|
6
6
|
*/
|
|
7
|
-
export type
|
|
8
|
-
id:
|
|
7
|
+
export type AdminBan = {
|
|
8
|
+
id: AdminBanId;
|
|
9
9
|
mod_person_id: PersonId;
|
|
10
10
|
other_person_id: PersonId;
|
|
11
|
-
reason
|
|
11
|
+
reason: string;
|
|
12
12
|
banned: boolean;
|
|
13
13
|
expires_at?: string;
|
|
14
14
|
published_at: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AdminBanId = number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AdminBan } from "./AdminBan";
|
|
2
2
|
import type { Person } from "./Person";
|
|
3
3
|
/**
|
|
4
4
|
* When someone is banned from the site.
|
|
5
5
|
*/
|
|
6
|
-
export type
|
|
7
|
-
|
|
6
|
+
export type AdminBanView = {
|
|
7
|
+
admin_ban: AdminBan;
|
|
8
8
|
moderator?: Person;
|
|
9
9
|
other_person: Person;
|
|
10
10
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import type { AdminRemoveCommunityId } from "./AdminRemoveCommunityId";
|
|
1
2
|
import type { CommunityId } from "./CommunityId";
|
|
2
|
-
import type { ModRemoveCommunityId } from "./ModRemoveCommunityId";
|
|
3
3
|
import type { PersonId } from "./PersonId";
|
|
4
4
|
/**
|
|
5
5
|
* When a moderator removes a community.
|
|
6
6
|
*/
|
|
7
|
-
export type
|
|
8
|
-
id:
|
|
7
|
+
export type AdminRemoveCommunity = {
|
|
8
|
+
id: AdminRemoveCommunityId;
|
|
9
9
|
mod_person_id: PersonId;
|
|
10
10
|
community_id: CommunityId;
|
|
11
|
-
reason
|
|
11
|
+
reason: string;
|
|
12
12
|
removed: boolean;
|
|
13
13
|
published_at: string;
|
|
14
14
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AdminRemoveCommunityId = number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AdminRemoveCommunity } from "./AdminRemoveCommunity";
|
|
2
|
+
import type { Community } from "./Community";
|
|
3
|
+
import type { Person } from "./Person";
|
|
4
|
+
/**
|
|
5
|
+
* When an admin removes a community.
|
|
6
|
+
*/
|
|
7
|
+
export type AdminRemoveCommunityView = {
|
|
8
|
+
admin_remove_community: AdminRemoveCommunity;
|
|
9
|
+
moderator?: Person;
|
|
10
|
+
community: Community;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare let AllLemmyErrors: string[];
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AllLemmyErrors = void 0;
|
|
4
|
+
exports.AllLemmyErrors = [
|
|
5
|
+
"block_keyword_too_short",
|
|
6
|
+
"block_keyword_too_long",
|
|
7
|
+
"couldnt_update",
|
|
8
|
+
"couldnt_create",
|
|
9
|
+
"report_reason_required",
|
|
10
|
+
"report_too_long",
|
|
11
|
+
"not_a_moderator",
|
|
12
|
+
"not_an_admin",
|
|
13
|
+
"cant_block_yourself",
|
|
14
|
+
"cant_note_yourself",
|
|
15
|
+
"cant_block_admin",
|
|
16
|
+
"passwords_do_not_match",
|
|
17
|
+
"email_not_verified",
|
|
18
|
+
"email_required",
|
|
19
|
+
"cannot_leave_admin",
|
|
20
|
+
"cannot_leave_admin",
|
|
21
|
+
"cannot_leave_admin",
|
|
22
|
+
"image_url_missing_path_segments",
|
|
23
|
+
"image_url_missing_last_path_segment",
|
|
24
|
+
"pictrs_api_key_not_provided",
|
|
25
|
+
"no_content_type_header",
|
|
26
|
+
"not_an_image_type",
|
|
27
|
+
"invalid_image_upload",
|
|
28
|
+
"image_upload_disabled",
|
|
29
|
+
"not_a_mod_or_admin",
|
|
30
|
+
"not_top_mod",
|
|
31
|
+
"not_logged_in",
|
|
32
|
+
"not_higher_mod",
|
|
33
|
+
"not_higher_admin",
|
|
34
|
+
"site_ban",
|
|
35
|
+
"deleted",
|
|
36
|
+
"person_is_blocked",
|
|
37
|
+
"community_is_blocked",
|
|
38
|
+
"instance_is_blocked",
|
|
39
|
+
"instance_is_private",
|
|
40
|
+
"invalid_password",
|
|
41
|
+
"site_description_length_overflow",
|
|
42
|
+
"honeypot_failed",
|
|
43
|
+
"registration_application_is_pending",
|
|
44
|
+
"locked",
|
|
45
|
+
"max_comment_depth_reached",
|
|
46
|
+
"no_comment_edit_allowed",
|
|
47
|
+
"only_admins_can_create_communities",
|
|
48
|
+
"already_exists",
|
|
49
|
+
"language_not_allowed",
|
|
50
|
+
"no_post_edit_allowed",
|
|
51
|
+
"nsfw_not_allowed",
|
|
52
|
+
"edit_private_message_not_allowed",
|
|
53
|
+
"application_question_required",
|
|
54
|
+
"invalid_default_post_listing_type",
|
|
55
|
+
"registration_closed",
|
|
56
|
+
"registration_application_answer_required",
|
|
57
|
+
"registration_username_required",
|
|
58
|
+
"email_already_taken",
|
|
59
|
+
"username_already_taken",
|
|
60
|
+
"person_is_banned_from_community",
|
|
61
|
+
"no_id_given",
|
|
62
|
+
"incorrect_login",
|
|
63
|
+
"no_email_setup",
|
|
64
|
+
"local_site_not_setup",
|
|
65
|
+
"local_site_not_setup",
|
|
66
|
+
"invalid_name",
|
|
67
|
+
"invalid_code_verifier",
|
|
68
|
+
"invalid_display_name",
|
|
69
|
+
"invalid_matrix_id",
|
|
70
|
+
"invalid_post_title",
|
|
71
|
+
"invalid_body_field",
|
|
72
|
+
"bio_length_overflow",
|
|
73
|
+
"alt_text_length_overflow",
|
|
74
|
+
"couldnt_parse_totp_secret",
|
|
75
|
+
"couldnt_generate_totp",
|
|
76
|
+
"missing_totp_token",
|
|
77
|
+
"missing_totp_secret",
|
|
78
|
+
"incorrect_totp_token",
|
|
79
|
+
"totp_already_enabled",
|
|
80
|
+
"blocked_url",
|
|
81
|
+
"invalid_url",
|
|
82
|
+
"email_send_failed",
|
|
83
|
+
"slurs",
|
|
84
|
+
"slurs",
|
|
85
|
+
"site_name_required",
|
|
86
|
+
"site_name_length_overflow",
|
|
87
|
+
"permissive_regex",
|
|
88
|
+
"invalid_regex",
|
|
89
|
+
"captcha_incorrect",
|
|
90
|
+
"couldnt_create_audio_captcha",
|
|
91
|
+
"couldnt_create_image_captcha",
|
|
92
|
+
"invalid_url_scheme",
|
|
93
|
+
"couldnt_send_webmention",
|
|
94
|
+
"contradicting_filters",
|
|
95
|
+
"too_many_items",
|
|
96
|
+
"ban_expiration_in_past",
|
|
97
|
+
"invalid_unix_time",
|
|
98
|
+
"invalid_bot_action",
|
|
99
|
+
"tag_not_in_community",
|
|
100
|
+
"cant_block_local_instance",
|
|
101
|
+
"cant_block_local_instance",
|
|
102
|
+
"url_length_overflow",
|
|
103
|
+
"oauth_authorization_invalid",
|
|
104
|
+
"oauth_login_failed",
|
|
105
|
+
"oauth_registration_closed",
|
|
106
|
+
"not_found",
|
|
107
|
+
"community_has_no_followers",
|
|
108
|
+
"post_schedule_time_must_be_in_future",
|
|
109
|
+
"too_many_scheduled_posts",
|
|
110
|
+
"cannot_combine_federation_blocklist_and_allowlist",
|
|
111
|
+
"cannot_combine_federation_blocklist_and_allowlist",
|
|
112
|
+
"couldnt_parse_pagination_token",
|
|
113
|
+
"couldnt_parse_pagination_token",
|
|
114
|
+
"invalid_fetch_limit",
|
|
115
|
+
"email_notifications_disabled",
|
|
116
|
+
"multi_community_update_wrong_user",
|
|
117
|
+
"cannot_combine_community_id_and_multi_community_id",
|
|
118
|
+
"multi_community_entry_limit_reached",
|
|
119
|
+
];
|
|
@@ -12,7 +12,7 @@ export type BanFromCommunity = {
|
|
|
12
12
|
* If ban is true, then this means remove. If ban is false, it means restore.
|
|
13
13
|
*/
|
|
14
14
|
remove_or_restore_data?: boolean;
|
|
15
|
-
reason
|
|
15
|
+
reason: string;
|
|
16
16
|
/**
|
|
17
17
|
* A time that the ban will expire, in unix epoch seconds.
|
|
18
18
|
*
|
|
@@ -10,7 +10,7 @@ export type BanPerson = {
|
|
|
10
10
|
* If ban is true, then this means remove. If ban is false, it means restore.
|
|
11
11
|
*/
|
|
12
12
|
remove_or_restore_data?: boolean;
|
|
13
|
-
reason
|
|
13
|
+
reason: string;
|
|
14
14
|
/**
|
|
15
15
|
* A time that the ban will expire, in unix epoch seconds.
|
|
16
16
|
*
|
package/dist/types/Comment.d.ts
CHANGED
|
@@ -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,12 @@ 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_ban_expires_at?: string;
|
|
25
|
+
creator_is_moderator: boolean;
|
|
26
|
+
creator_banned_from_community: boolean;
|
|
27
|
+
creator_community_ban_expires_at?: string;
|
|
29
28
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CommunityFollowerState } from "./CommunityFollowerState";
|
|
2
|
+
import type { CommunityNotificationsMode } from "./CommunityNotificationsMode";
|
|
2
3
|
export type CommunityActions = {
|
|
3
4
|
/**
|
|
4
5
|
* When the community was followed.
|
|
@@ -24,4 +25,5 @@ export type CommunityActions = {
|
|
|
24
25
|
* When their ban expires.
|
|
25
26
|
*/
|
|
26
27
|
ban_expires_at?: string;
|
|
28
|
+
notifications?: CommunityNotificationsMode;
|
|
27
29
|
};
|