lemmy-js-client 1.0.0-rename-timestamp-to-at.4 → 1.0.0-rename-person-banned.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 +54 -28
- package/dist/http.js +164 -56
- package/dist/index.d.ts +48 -30
- package/dist/other_types.d.ts +8 -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/{ModBan.d.ts → AdminBan.d.ts} +3 -3
- package/dist/types/AdminBanId.d.ts +1 -0
- package/dist/types/{ModBanView.d.ts → AdminBanView.d.ts} +3 -3
- package/dist/types/{ModRemoveCommunity.d.ts → AdminRemoveCommunity.d.ts} +3 -3
- package/dist/types/AdminRemoveCommunityId.d.ts +1 -0
- package/dist/types/AdminRemoveCommunityView.d.ts +11 -0
- 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/CreateMultiCommunity.d.ts +5 -0
- package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
- package/dist/types/CreateSite.d.ts +16 -12
- package/dist/types/EditSite.d.ts +26 -12
- package/dist/types/ExportDataResponse.d.ts +13 -0
- package/dist/types/FederationError.d.ts +4 -2
- package/dist/types/FollowMultiCommunity.d.ts +5 -0
- package/dist/types/GetMultiCommunity.d.ts +4 -0
- package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
- package/dist/types/GetPosts.d.ts +2 -0
- package/dist/types/InstanceActions.d.ts +6 -2
- package/dist/types/LemmyErrorType.d.ts +16 -134
- package/dist/types/LinkMetadata.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/ListingType.d.ts +1 -1
- package/dist/types/LocalImage.d.ts +1 -1
- package/dist/types/LocalSite.d.ts +5 -0
- package/dist/types/LocalSiteRateLimit.d.ts +14 -14
- package/dist/types/LocalUser.d.ts +2 -0
- package/dist/types/LocalUserView.d.ts +2 -2
- package/dist/types/LockComment.d.ts +6 -0
- 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/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 +14 -0
- package/dist/types/ModlogActionType.d.ts +1 -1
- package/dist/types/ModlogCombinedView.d.ts +16 -13
- 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/OpenGraphData.d.ts +4 -0
- package/dist/types/PersonActions.d.ts +20 -0
- package/dist/types/PersonView.d.ts +4 -4
- 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/PostOrCommentOrPrivateMessage.js +2 -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/SaveUserSettings.d.ts +8 -0
- package/dist/types/Search.d.ts +1 -1
- package/dist/types/SearchCombinedView.d.ts +4 -1
- package/dist/types/SearchType.d.ts +1 -1
- 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/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 +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/{ModBanId.js → CreateMultiCommunity.js} +0 -0
- /package/dist/types/{MarkPersonCommentMentionAsRead.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
- /package/dist/types/{MarkPersonPostMentionAsRead.js → ExportDataResponse.js} +0 -0
- /package/dist/types/{MarkPrivateMessageAsRead.js → FollowMultiCommunity.js} +0 -0
- /package/dist/types/{ModAdd.js → GetMultiCommunity.js} +0 -0
- /package/dist/types/{ModAddCommunity.js → GetMultiCommunityResponse.js} +0 -0
- /package/dist/types/{ModAddCommunityView.js → ListMultiCommunities.js} +0 -0
- /package/dist/types/{ModAddView.js → ListMultiCommunitiesResponse.js} +0 -0
- /package/dist/types/{ModBan.js → ListNotifications.js} +0 -0
- /package/dist/types/{ModBanView.js → ListNotificationsResponse.js} +0 -0
- /package/dist/types/{ModRemoveCommunity.js → LockComment.js} +0 -0
- /package/dist/types/{ModRemoveCommunityView.js → MarkNotificationAsRead.js} +0 -0
- /package/dist/types/{PersonCommentMention.js → ModAddToCommunity.js} +0 -0
- /package/dist/types/{ModRemoveCommunityId.js → ModAddToCommunityId.js} +0 -0
- /package/dist/types/{PersonCommentMentionView.js → ModAddToCommunityView.js} +0 -0
- /package/dist/types/{PersonPostMention.js → ModEditPost.js} +0 -0
- /package/dist/types/{PersonPostMentionView.js → ModLockComment.js} +0 -0
- /package/dist/types/{PersonCommentMentionId.js → ModLockCommentId.js} +0 -0
- /package/dist/types/{UserBlockInstanceParams.js → ModLockCommentView.js} +0 -0
- /package/dist/types/{PersonPostMentionId.js → MultiCommunityId.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,9 @@ 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";
|
30
39
|
export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
|
31
40
|
export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
|
32
41
|
export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
|
@@ -43,9 +52,6 @@ export { ChangePassword } from "./types/ChangePassword";
|
|
43
52
|
export { Comment } from "./types/Comment";
|
44
53
|
export { CommentActions } from "./types/CommentActions";
|
45
54
|
export { CommentId } from "./types/CommentId";
|
46
|
-
export { CommentReply } from "./types/CommentReply";
|
47
|
-
export { CommentReplyId } from "./types/CommentReplyId";
|
48
|
-
export { CommentReplyView } from "./types/CommentReplyView";
|
49
55
|
export { CommentReport } from "./types/CommentReport";
|
50
56
|
export { CommentReportId } from "./types/CommentReportId";
|
51
57
|
export { CommentReportResponse } from "./types/CommentReportResponse";
|
@@ -61,6 +67,7 @@ export { CommunityFollowerView } from "./types/CommunityFollowerView";
|
|
61
67
|
export { CommunityId } from "./types/CommunityId";
|
62
68
|
export { CommunityIdQuery } from "./types/CommunityIdQuery";
|
63
69
|
export { CommunityModeratorView } from "./types/CommunityModeratorView";
|
70
|
+
export { CommunityNotificationsMode } from "./types/CommunityNotificationsMode";
|
64
71
|
export { CommunityReport } from "./types/CommunityReport";
|
65
72
|
export { CommunityReportId } from "./types/CommunityReportId";
|
66
73
|
export { CommunityReportResponse } from "./types/CommunityReportResponse";
|
@@ -76,7 +83,9 @@ export { CreateCommunity } from "./types/CreateCommunity";
|
|
76
83
|
export { CreateCommunityReport } from "./types/CreateCommunityReport";
|
77
84
|
export { CreateCommunityTag } from "./types/CreateCommunityTag";
|
78
85
|
export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
86
|
+
export { CreateMultiCommunity } from "./types/CreateMultiCommunity";
|
79
87
|
export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
88
|
+
export { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
|
80
89
|
export { CreatePost } from "./types/CreatePost";
|
81
90
|
export { CreatePostLike } from "./types/CreatePostLike";
|
82
91
|
export { CreatePostReport } from "./types/CreatePostReport";
|
@@ -108,12 +117,14 @@ export { EditOAuthProvider } from "./types/EditOAuthProvider";
|
|
108
117
|
export { EditPost } from "./types/EditPost";
|
109
118
|
export { EditPrivateMessage } from "./types/EditPrivateMessage";
|
110
119
|
export { EditSite } from "./types/EditSite";
|
120
|
+
export { ExportDataResponse } from "./types/ExportDataResponse";
|
111
121
|
export { FeaturePost } from "./types/FeaturePost";
|
112
122
|
export { FederatedInstances } from "./types/FederatedInstances";
|
113
123
|
export { FederationBlockList } from "./types/FederationBlockList";
|
114
124
|
export { FederationError } from "./types/FederationError";
|
115
125
|
export { FederationMode } from "./types/FederationMode";
|
116
126
|
export { FollowCommunity } from "./types/FollowCommunity";
|
127
|
+
export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
|
117
128
|
export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
118
129
|
export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
|
119
130
|
export { GetComment } from "./types/GetComment";
|
@@ -127,6 +138,8 @@ export { GetCommunityResponse } from "./types/GetCommunityResponse";
|
|
127
138
|
export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
|
128
139
|
export { GetModlog } from "./types/GetModlog";
|
129
140
|
export { GetModlogResponse } from "./types/GetModlogResponse";
|
141
|
+
export { GetMultiCommunity } from "./types/GetMultiCommunity";
|
142
|
+
export { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
|
130
143
|
export { GetPersonDetails } from "./types/GetPersonDetails";
|
131
144
|
export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
|
132
145
|
export { GetPost } from "./types/GetPost";
|
@@ -147,8 +160,6 @@ export { HidePost } from "./types/HidePost";
|
|
147
160
|
export { ImageDetails } from "./types/ImageDetails";
|
148
161
|
export { ImageGetParams } from "./types/ImageGetParams";
|
149
162
|
export { ImageProxyParams } from "./types/ImageProxyParams";
|
150
|
-
export { InboxCombinedView } from "./types/InboxCombinedView";
|
151
|
-
export { InboxDataType } from "./types/InboxDataType";
|
152
163
|
export { Instance } from "./types/Instance";
|
153
164
|
export { InstanceActions } from "./types/InstanceActions";
|
154
165
|
export { InstanceId } from "./types/InstanceId";
|
@@ -166,11 +177,13 @@ export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
|
|
166
177
|
export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
|
167
178
|
export { ListCustomEmojis } from "./types/ListCustomEmojis";
|
168
179
|
export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
|
169
|
-
export { ListInbox } from "./types/ListInbox";
|
170
|
-
export { ListInboxResponse } from "./types/ListInboxResponse";
|
171
180
|
export { ListLoginsResponse } from "./types/ListLoginsResponse";
|
172
181
|
export { ListMedia } from "./types/ListMedia";
|
173
182
|
export { ListMediaResponse } from "./types/ListMediaResponse";
|
183
|
+
export { ListMultiCommunities } from "./types/ListMultiCommunities";
|
184
|
+
export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
|
185
|
+
export { ListNotifications } from "./types/ListNotifications";
|
186
|
+
export { ListNotificationsResponse } from "./types/ListNotificationsResponse";
|
174
187
|
export { ListPersonContent } from "./types/ListPersonContent";
|
175
188
|
export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
176
189
|
export { ListPersonHidden } from "./types/ListPersonHidden";
|
@@ -199,43 +212,36 @@ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
|
|
199
212
|
export { LocalUser } from "./types/LocalUser";
|
200
213
|
export { LocalUserId } from "./types/LocalUserId";
|
201
214
|
export { LocalUserView } from "./types/LocalUserView";
|
215
|
+
export { LockComment } from "./types/LockComment";
|
202
216
|
export { LockPost } from "./types/LockPost";
|
203
217
|
export { Login } from "./types/Login";
|
204
218
|
export { LoginResponse } from "./types/LoginResponse";
|
205
219
|
export { LoginToken } from "./types/LoginToken";
|
206
|
-
export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
207
220
|
export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
208
|
-
export {
|
209
|
-
export { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
|
221
|
+
export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
210
222
|
export { MarkPostAsRead } from "./types/MarkPostAsRead";
|
211
|
-
export {
|
212
|
-
export {
|
213
|
-
export {
|
214
|
-
export { ModAddCommunityId } from "./types/ModAddCommunityId";
|
215
|
-
export { ModAddCommunityView } from "./types/ModAddCommunityView";
|
216
|
-
export { ModAddId } from "./types/ModAddId";
|
217
|
-
export { ModAddView } from "./types/ModAddView";
|
218
|
-
export { ModBan } from "./types/ModBan";
|
223
|
+
export { ModAddToCommunity } from "./types/ModAddToCommunity";
|
224
|
+
export { ModAddToCommunityId } from "./types/ModAddToCommunityId";
|
225
|
+
export { ModAddToCommunityView } from "./types/ModAddToCommunityView";
|
219
226
|
export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
|
220
227
|
export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
|
221
228
|
export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
|
222
|
-
export { ModBanId } from "./types/ModBanId";
|
223
|
-
export { ModBanView } from "./types/ModBanView";
|
224
229
|
export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
|
225
230
|
export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
|
226
231
|
export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
|
232
|
+
export { ModEditPost } from "./types/ModEditPost";
|
227
233
|
export { ModFeaturePost } from "./types/ModFeaturePost";
|
228
234
|
export { ModFeaturePostId } from "./types/ModFeaturePostId";
|
229
235
|
export { ModFeaturePostView } from "./types/ModFeaturePostView";
|
236
|
+
export { ModLockComment } from "./types/ModLockComment";
|
237
|
+
export { ModLockCommentId } from "./types/ModLockCommentId";
|
238
|
+
export { ModLockCommentView } from "./types/ModLockCommentView";
|
230
239
|
export { ModLockPost } from "./types/ModLockPost";
|
231
240
|
export { ModLockPostId } from "./types/ModLockPostId";
|
232
241
|
export { ModLockPostView } from "./types/ModLockPostView";
|
233
242
|
export { ModRemoveComment } from "./types/ModRemoveComment";
|
234
243
|
export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
|
235
244
|
export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
|
236
|
-
export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
|
237
|
-
export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
|
238
|
-
export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
|
239
245
|
export { ModRemovePost } from "./types/ModRemovePost";
|
240
246
|
export { ModRemovePostId } from "./types/ModRemovePostId";
|
241
247
|
export { ModRemovePostView } from "./types/ModRemovePostView";
|
@@ -244,7 +250,18 @@ export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
|
|
244
250
|
export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
|
245
251
|
export { ModlogActionType } from "./types/ModlogActionType";
|
246
252
|
export { ModlogCombinedView } from "./types/ModlogCombinedView";
|
253
|
+
export { MultiCommunity } from "./types/MultiCommunity";
|
254
|
+
export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
|
255
|
+
export { MultiCommunityId } from "./types/MultiCommunityId";
|
256
|
+
export { MultiCommunityView } from "./types/MultiCommunityView";
|
247
257
|
export { MyUserInfo } from "./types/MyUserInfo";
|
258
|
+
export { NotePerson } from "./types/NotePerson";
|
259
|
+
export { Notification } from "./types/Notification";
|
260
|
+
export { NotificationData } from "./types/NotificationData";
|
261
|
+
export { NotificationDataType } from "./types/NotificationDataType";
|
262
|
+
export { NotificationId } from "./types/NotificationId";
|
263
|
+
export { NotificationTypes } from "./types/NotificationTypes";
|
264
|
+
export { NotificationView } from "./types/NotificationView";
|
248
265
|
export { OAuthAccount } from "./types/OAuthAccount";
|
249
266
|
export { OAuthProvider } from "./types/OAuthProvider";
|
250
267
|
export { OAuthProviderId } from "./types/OAuthProviderId";
|
@@ -255,16 +272,10 @@ export { PasswordReset } from "./types/PasswordReset";
|
|
255
272
|
export { PendingFollow } from "./types/PendingFollow";
|
256
273
|
export { Person } from "./types/Person";
|
257
274
|
export { PersonActions } from "./types/PersonActions";
|
258
|
-
export { PersonCommentMention } from "./types/PersonCommentMention";
|
259
|
-
export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
|
260
|
-
export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
|
261
275
|
export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
|
262
276
|
export { PersonContentType } from "./types/PersonContentType";
|
263
277
|
export { PersonId } from "./types/PersonId";
|
264
278
|
export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
|
265
|
-
export { PersonPostMention } from "./types/PersonPostMention";
|
266
|
-
export { PersonPostMentionId } from "./types/PersonPostMentionId";
|
267
|
-
export { PersonPostMentionView } from "./types/PersonPostMentionView";
|
268
279
|
export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
|
269
280
|
export { PersonView } from "./types/PersonView";
|
270
281
|
export { PluginMetadata } from "./types/PluginMetadata";
|
@@ -273,6 +284,8 @@ export { PostActions } from "./types/PostActions";
|
|
273
284
|
export { PostFeatureType } from "./types/PostFeatureType";
|
274
285
|
export { PostId } from "./types/PostId";
|
275
286
|
export { PostListingMode } from "./types/PostListingMode";
|
287
|
+
export { PostNotificationsMode } from "./types/PostNotificationsMode";
|
288
|
+
export { PostOrCommentOrPrivateMessage } from "./types/PostOrCommentOrPrivateMessage";
|
276
289
|
export { PostReport } from "./types/PostReport";
|
277
290
|
export { PostReportId } from "./types/PostReportId";
|
278
291
|
export { PostReportResponse } from "./types/PostReportResponse";
|
@@ -332,12 +345,17 @@ export { TaglineId } from "./types/TaglineId";
|
|
332
345
|
export { TaglineResponse } from "./types/TaglineResponse";
|
333
346
|
export { TagsView } from "./types/TagsView";
|
334
347
|
export { TransferCommunity } from "./types/TransferCommunity";
|
348
|
+
export { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
|
335
349
|
export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
350
|
+
export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
351
|
+
export { UpdatePostNotifications } from "./types/UpdatePostNotifications";
|
336
352
|
export { UpdateTagline } from "./types/UpdateTagline";
|
337
353
|
export { UpdateTotp } from "./types/UpdateTotp";
|
338
354
|
export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
339
355
|
export { UploadImageResponse } from "./types/UploadImageResponse";
|
340
|
-
export {
|
356
|
+
export { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
|
357
|
+
export { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
|
358
|
+
export { UserSettingsBackup } from "./types/UserSettingsBackup";
|
341
359
|
export { VerifyEmail } from "./types/VerifyEmail";
|
342
360
|
export { VoteShow } from "./types/VoteShow";
|
343
361
|
export { VoteView } from "./types/VoteView";
|
package/dist/other_types.d.ts
CHANGED
@@ -6,6 +6,7 @@ import { GetComments } from "./types/GetComments";
|
|
6
6
|
import { GetCommunity } from "./types/GetCommunity";
|
7
7
|
import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
|
8
8
|
import { GetModlog } from "./types/GetModlog";
|
9
|
+
import { GetMultiCommunity } from "./types/GetMultiCommunity";
|
9
10
|
import { GetPersonDetails } from "./types/GetPersonDetails";
|
10
11
|
import { GetPost } from "./types/GetPost";
|
11
12
|
import { GetPosts } from "./types/GetPosts";
|
@@ -17,8 +18,9 @@ import { ListCommentLikes } from "./types/ListCommentLikes";
|
|
17
18
|
import { ListCommunities } from "./types/ListCommunities";
|
18
19
|
import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
|
19
20
|
import { ListCustomEmojis } from "./types/ListCustomEmojis";
|
20
|
-
import {
|
21
|
+
import { ListNotifications } from "./types/ListNotifications";
|
21
22
|
import { ListMedia } from "./types/ListMedia";
|
23
|
+
import { ListMultiCommunities } from "./types/ListMultiCommunities";
|
22
24
|
import { ListPersonContent } from "./types/ListPersonContent";
|
23
25
|
import { ListPersonHidden } from "./types/ListPersonHidden";
|
24
26
|
import { ListPersonLiked } from "./types/ListPersonLiked";
|
@@ -72,7 +74,7 @@ export interface ListPersonContentI extends ListPersonContent {
|
|
72
74
|
}
|
73
75
|
export interface GetReportCountI extends GetReportCount {
|
74
76
|
}
|
75
|
-
export interface
|
77
|
+
export interface ListNotificationsI extends ListNotifications {
|
76
78
|
}
|
77
79
|
export interface ListPersonSavedI extends ListPersonSaved {
|
78
80
|
}
|
@@ -98,3 +100,7 @@ export interface AdminListUsersI extends AdminListUsers {
|
|
98
100
|
}
|
99
101
|
export interface CommunityIdQueryI extends CommunityIdQuery {
|
100
102
|
}
|
103
|
+
export interface ListMultiCommunitiesI extends ListMultiCommunities {
|
104
|
+
}
|
105
|
+
export interface GetMultiCommunityI extends GetMultiCommunity {
|
106
|
+
}
|
@@ -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,11 +1,11 @@
|
|
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
11
|
reason?: 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,11 +1,11 @@
|
|
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
11
|
reason?: string;
|
@@ -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
|
+
};
|
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
|
};
|
@@ -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
|
};
|
@@ -2,6 +2,7 @@ import type { CommentSortType } from "./CommentSortType";
|
|
2
2
|
import type { FederationMode } from "./FederationMode";
|
3
3
|
import type { LanguageId } from "./LanguageId";
|
4
4
|
import type { ListingType } from "./ListingType";
|
5
|
+
import type { MultiCommunityId } from "./MultiCommunityId";
|
5
6
|
import type { PostListingMode } from "./PostListingMode";
|
6
7
|
import type { PostSortType } from "./PostSortType";
|
7
8
|
import type { RegistrationMode } from "./RegistrationMode";
|
@@ -27,18 +28,20 @@ export type CreateSite = {
|
|
27
28
|
discussion_languages?: Array<LanguageId>;
|
28
29
|
slur_filter_regex?: string;
|
29
30
|
actor_name_max_length?: number;
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
31
|
+
rate_limit_message_max_requests?: number;
|
32
|
+
rate_limit_message_interval_seconds?: number;
|
33
|
+
rate_limit_post_max_requests?: number;
|
34
|
+
rate_limit_post_interval_seconds?: number;
|
35
|
+
rate_limit_register_max_requests?: number;
|
36
|
+
rate_limit_register_interval_seconds?: number;
|
37
|
+
rate_limit_image_max_requests?: number;
|
38
|
+
rate_limit_image_interval_seconds?: number;
|
39
|
+
rate_limit_comment_max_requests?: number;
|
40
|
+
rate_limit_comment_interval_seconds?: number;
|
41
|
+
rate_limit_search_max_requests?: number;
|
42
|
+
rate_limit_search_interval_seconds?: number;
|
43
|
+
rate_limit_import_user_settings_max_requests?: number;
|
44
|
+
rate_limit_import_user_settings_interval_seconds?: number;
|
42
45
|
federation_enabled?: boolean;
|
43
46
|
captcha_enabled?: boolean;
|
44
47
|
captcha_difficulty?: string;
|
@@ -51,4 +54,5 @@ export type CreateSite = {
|
|
51
54
|
comment_downvotes?: FederationMode;
|
52
55
|
disallow_nsfw_content?: boolean;
|
53
56
|
disable_email_notifications?: boolean;
|
57
|
+
suggested_communities?: MultiCommunityId;
|
54
58
|
};
|
package/dist/types/EditSite.d.ts
CHANGED
@@ -2,6 +2,7 @@ import type { CommentSortType } from "./CommentSortType";
|
|
2
2
|
import type { FederationMode } from "./FederationMode";
|
3
3
|
import type { LanguageId } from "./LanguageId";
|
4
4
|
import type { ListingType } from "./ListingType";
|
5
|
+
import type { MultiCommunityId } from "./MultiCommunityId";
|
5
6
|
import type { PostListingMode } from "./PostListingMode";
|
6
7
|
import type { PostSortType } from "./PostSortType";
|
7
8
|
import type { RegistrationMode } from "./RegistrationMode";
|
@@ -54,6 +55,10 @@ export type EditSite = {
|
|
54
55
|
* A default time range limit to apply to post sorts, in seconds. 0 means none.
|
55
56
|
*/
|
56
57
|
default_post_time_range_seconds?: number;
|
58
|
+
/**
|
59
|
+
* A default fetch limit for number of items returned.
|
60
|
+
*/
|
61
|
+
default_items_per_page?: number;
|
57
62
|
/**
|
58
63
|
* The default comment sort, usually "hot"
|
59
64
|
*/
|
@@ -81,33 +86,38 @@ export type EditSite = {
|
|
81
86
|
/**
|
82
87
|
* The number of messages allowed in a given time frame.
|
83
88
|
*/
|
84
|
-
|
85
|
-
|
89
|
+
rate_limit_message_max_requests?: number;
|
90
|
+
rate_limit_message_interval_seconds?: number;
|
86
91
|
/**
|
87
92
|
* The number of posts allowed in a given time frame.
|
88
93
|
*/
|
89
|
-
|
90
|
-
|
94
|
+
rate_limit_post_max_requests?: number;
|
95
|
+
rate_limit_post_interval_seconds?: number;
|
91
96
|
/**
|
92
97
|
* The number of registrations allowed in a given time frame.
|
93
98
|
*/
|
94
|
-
|
95
|
-
|
99
|
+
rate_limit_register_max_requests?: number;
|
100
|
+
rate_limit_register_interval_seconds?: number;
|
96
101
|
/**
|
97
102
|
* The number of image uploads allowed in a given time frame.
|
98
103
|
*/
|
99
|
-
|
100
|
-
|
104
|
+
rate_limit_image_max_requests?: number;
|
105
|
+
rate_limit_image_interval_seconds?: number;
|
101
106
|
/**
|
102
107
|
* The number of comments allowed in a given time frame.
|
103
108
|
*/
|
104
|
-
|
105
|
-
|
109
|
+
rate_limit_comment_max_requests?: number;
|
110
|
+
rate_limit_comment_interval_seconds?: number;
|
106
111
|
/**
|
107
112
|
* The number of searches allowed in a given time frame.
|
108
113
|
*/
|
109
|
-
|
110
|
-
|
114
|
+
rate_limit_search_max_requests?: number;
|
115
|
+
rate_limit_search_interval_seconds?: number;
|
116
|
+
/**
|
117
|
+
* The number of settings imports or exports allowed in a given time frame.
|
118
|
+
*/
|
119
|
+
rate_limit_import_user_settings_max_requests?: number;
|
120
|
+
rate_limit_import_user_settings_interval_seconds?: number;
|
111
121
|
/**
|
112
122
|
* Whether to enable federation.
|
113
123
|
*/
|
@@ -162,4 +172,8 @@ export type EditSite = {
|
|
162
172
|
* Dont send email notifications to users for new replies, mentions etc
|
163
173
|
*/
|
164
174
|
disable_email_notifications?: boolean;
|
175
|
+
/**
|
176
|
+
* A multicommunity with suggested communities which is shown on the homepage
|
177
|
+
*/
|
178
|
+
suggested_communities?: MultiCommunityId;
|
165
179
|
};
|