lemmy-js-client 1.0.0-site-person-ban.1 → 1.0.0-vote-view.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/dist/http.d.ts +98 -26
- package/dist/http.js +1078 -894
- package/dist/index.d.ts +30 -4
- package/dist/other_types.d.ts +20 -2
- 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/{BannedPersonsResponse.d.ts → AdminListUsersResponse.d.ts} +4 -6
- 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 +7 -2
- package/dist/types/CommentActions.d.ts +2 -6
- package/dist/types/CommentActions.js +1 -0
- package/dist/types/CommentReply.d.ts +1 -1
- package/dist/types/CommentReplyView.d.ts +5 -2
- package/dist/types/CommentReport.d.ts +2 -2
- package/dist/types/CommentReportView.d.ts +0 -1
- package/dist/types/CommentSlimView.d.ts +3 -3
- package/dist/types/CommentView.d.ts +5 -2
- package/dist/types/Community.d.ts +2 -2
- package/dist/types/CommunityActions.d.ts +5 -13
- package/dist/types/CommunityIdQuery.d.ts +8 -0
- package/dist/types/CommunityReport.d.ts +2 -2
- package/dist/types/CommunityView.d.ts +2 -0
- package/dist/types/CreateCommunityTag.d.ts +8 -0
- package/dist/types/CreateCommunityTag.js +2 -0
- package/dist/types/CreateMultiCommunity.d.ts +5 -0
- package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
- package/dist/types/CreateOrDeleteMultiCommunityEntry.js +2 -0
- package/dist/types/CreatePost.d.ts +1 -1
- package/dist/types/CreateSite.d.ts +17 -14
- package/dist/types/CustomEmoji.d.ts +2 -2
- package/dist/types/DeleteCommunityTag.d.ts +7 -0
- package/dist/types/DeleteCommunityTag.js +2 -0
- package/dist/types/EditPost.d.ts +2 -2
- package/dist/types/EditSite.d.ts +26 -21
- package/dist/types/ExportDataResponse.d.ts +13 -0
- package/dist/types/ExportDataResponse.js +2 -0
- package/dist/types/FederationBlockList.d.ts +3 -3
- package/dist/types/FollowMultiCommunity.d.ts +5 -0
- package/dist/types/FollowMultiCommunity.js +2 -0
- package/dist/types/GetComments.d.ts +3 -3
- package/dist/types/GetCommentsResponse.d.ts +3 -0
- package/dist/types/GetCommentsSlimResponse.d.ts +3 -0
- package/dist/types/GetModlog.d.ts +1 -0
- package/dist/types/GetModlogResponse.d.ts +1 -0
- package/dist/types/GetMultiCommunity.d.ts +4 -0
- package/dist/types/GetMultiCommunity.js +2 -0
- package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
- package/dist/types/GetMultiCommunityResponse.js +2 -0
- package/dist/types/GetPosts.d.ts +5 -11
- package/dist/types/GetPostsResponse.d.ts +3 -2
- package/dist/types/GetSiteResponse.d.ts +2 -0
- package/dist/types/InboxCombined.d.ts +16 -0
- package/dist/types/InboxCombined.js +2 -0
- package/dist/types/InboxCombinedId.d.ts +4 -0
- package/dist/types/InboxCombinedId.js +3 -0
- package/dist/types/InboxCombinedViewInternal.d.ts +43 -0
- package/dist/types/InboxCombinedViewInternal.js +2 -0
- package/dist/types/Instance.d.ts +4 -3
- package/dist/types/InstanceActions.d.ts +3 -7
- package/dist/types/InstanceActions.js +1 -0
- package/dist/types/InstanceWithFederationState.d.ts +2 -2
- package/dist/types/LemmyErrorType.d.ts +99 -24
- package/dist/types/LikeType.d.ts +4 -0
- package/dist/types/LikeType.js +3 -0
- package/dist/types/ListCommentLikes.d.ts +3 -1
- package/dist/types/ListCommentLikesResponse.d.ts +6 -0
- package/dist/types/ListCommunities.d.ts +3 -1
- package/dist/types/ListCommunitiesResponse.d.ts +6 -0
- package/dist/types/ListCommunityPendingFollows.d.ts +3 -1
- package/dist/types/ListCommunityPendingFollows.js +0 -1
- package/dist/types/ListCommunityPendingFollowsResponse.d.ts +6 -0
- package/dist/types/ListCustomEmojis.d.ts +0 -3
- package/dist/types/ListInbox.d.ts +1 -0
- package/dist/types/ListInboxResponse.d.ts +1 -0
- package/dist/types/ListMedia.d.ts +3 -1
- package/dist/types/ListMedia.js +0 -1
- package/dist/types/ListMediaResponse.d.ts +6 -0
- package/dist/types/ListMultiCommunities.d.ts +5 -0
- package/dist/types/ListMultiCommunities.js +2 -0
- package/dist/types/ListMultiCommunitiesResponse.d.ts +4 -0
- package/dist/types/ListMultiCommunitiesResponse.js +2 -0
- package/dist/types/ListPersonContent.d.ts +1 -0
- package/dist/types/ListPersonContentResponse.d.ts +1 -0
- package/dist/types/{ListBannedPersons.d.ts → ListPersonHidden.d.ts} +2 -2
- package/dist/types/ListPersonHidden.js +2 -0
- package/dist/types/ListPersonHiddenResponse.d.ts +13 -0
- package/dist/types/ListPersonHiddenResponse.js +2 -0
- package/dist/types/ListPersonLiked.d.ts +13 -0
- package/dist/types/ListPersonLiked.js +2 -0
- package/dist/types/ListPersonLikedResponse.d.ts +13 -0
- package/dist/types/ListPersonLikedResponse.js +2 -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/ListPersonSaved.d.ts +1 -0
- package/dist/types/ListPersonSavedResponse.d.ts +1 -0
- package/dist/types/ListPostLikes.d.ts +3 -1
- package/dist/types/ListPostLikesResponse.d.ts +6 -0
- package/dist/types/ListRegistrationApplications.d.ts +3 -1
- package/dist/types/ListRegistrationApplications.js +0 -1
- package/dist/types/ListRegistrationApplicationsResponse.d.ts +6 -0
- package/dist/types/ListReports.d.ts +1 -0
- package/dist/types/ListReportsResponse.d.ts +1 -0
- package/dist/types/ListTaglines.d.ts +3 -1
- package/dist/types/ListTaglines.js +0 -1
- package/dist/types/ListTaglinesResponse.d.ts +6 -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 +10 -11
- 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/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/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/MultiCommunityId.js +3 -0
- package/dist/types/MultiCommunityView.d.ts +6 -0
- package/dist/types/MultiCommunityView.js +2 -0
- package/dist/types/MyUserInfo.d.ts +1 -0
- package/dist/types/NotePerson.d.ts +10 -0
- package/dist/types/NotePerson.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/PersonCommentMention.d.ts +1 -1
- package/dist/types/PersonCommentMentionView.d.ts +3 -2
- package/dist/types/PersonLikedCombinedView.d.ts +7 -0
- package/dist/types/PersonLikedCombinedView.js +2 -0
- package/dist/types/PersonPostMention.d.ts +1 -1
- package/dist/types/PersonPostMentionView.d.ts +5 -2
- package/dist/types/PersonView.d.ts +3 -3
- package/dist/types/PluginMetadata.d.ts +5 -0
- package/dist/types/PluginMetadata.js +3 -0
- package/dist/types/Post.d.ts +9 -4
- package/dist/types/PostActions.d.ts +5 -9
- package/dist/types/PostActions.js +1 -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 +0 -1
- package/dist/types/PostView.d.ts +5 -2
- package/dist/types/PrivateMessage.d.ts +2 -2
- package/dist/types/PrivateMessageReport.d.ts +2 -2
- package/dist/types/ReadableFederationState.d.ts +2 -2
- package/dist/types/RegistrationApplication.d.ts +1 -1
- package/dist/types/SaveUserSettings.d.ts +7 -1
- package/dist/types/Search.d.ts +6 -1
- package/dist/types/SearchCombinedView.d.ts +4 -1
- package/dist/types/SearchResponse.d.ts +1 -0
- 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 +10 -8
- package/dist/types/Tagline.d.ts +4 -3
- package/dist/types/Tagline.js +0 -1
- package/dist/types/TagsView.d.ts +5 -0
- package/dist/types/TagsView.js +2 -0
- package/dist/types/UpdateCommunityTag.d.ts +8 -0
- package/dist/types/UpdateCommunityTag.js +2 -0
- package/dist/types/UpdateMultiCommunity.d.ts +7 -0
- package/dist/types/UpdateMultiCommunity.js +2 -0
- package/dist/types/UserSettingsBackup.d.ts +26 -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 -0
- package/package.json +7 -4
- package/dist/types/PostPaginationCursor.d.ts +0 -7
- package/dist/types/ResolveObjectResponse.d.ts +0 -13
- /package/dist/types/{BannedPersonsResponse.js → AdminListUsers.js} +0 -0
- /package/dist/types/{ListBannedPersons.js → AdminListUsersResponse.js} +0 -0
- /package/dist/types/{ResolveObjectResponse.js → CommunityIdQuery.js} +0 -0
- /package/dist/types/{PostPaginationCursor.js → CreateMultiCommunity.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";
|
@@ -58,6 +59,7 @@ export { CommunityActions } from "./types/CommunityActions";
|
|
58
59
|
export { CommunityFollowerState } from "./types/CommunityFollowerState";
|
59
60
|
export { CommunityFollowerView } from "./types/CommunityFollowerView";
|
60
61
|
export { CommunityId } from "./types/CommunityId";
|
62
|
+
export { CommunityIdQuery } from "./types/CommunityIdQuery";
|
61
63
|
export { CommunityModeratorView } from "./types/CommunityModeratorView";
|
62
64
|
export { CommunityReport } from "./types/CommunityReport";
|
63
65
|
export { CommunityReportId } from "./types/CommunityReportId";
|
@@ -72,8 +74,11 @@ export { CreateCommentLike } from "./types/CreateCommentLike";
|
|
72
74
|
export { CreateCommentReport } from "./types/CreateCommentReport";
|
73
75
|
export { CreateCommunity } from "./types/CreateCommunity";
|
74
76
|
export { CreateCommunityReport } from "./types/CreateCommunityReport";
|
77
|
+
export { CreateCommunityTag } from "./types/CreateCommunityTag";
|
75
78
|
export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
79
|
+
export { CreateMultiCommunity } from "./types/CreateMultiCommunity";
|
76
80
|
export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
81
|
+
export { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
|
77
82
|
export { CreatePost } from "./types/CreatePost";
|
78
83
|
export { CreatePostLike } from "./types/CreatePostLike";
|
79
84
|
export { CreatePostReport } from "./types/CreatePostReport";
|
@@ -90,6 +95,7 @@ export { DbUrl } from "./types/DbUrl";
|
|
90
95
|
export { DeleteAccount } from "./types/DeleteAccount";
|
91
96
|
export { DeleteComment } from "./types/DeleteComment";
|
92
97
|
export { DeleteCommunity } from "./types/DeleteCommunity";
|
98
|
+
export { DeleteCommunityTag } from "./types/DeleteCommunityTag";
|
93
99
|
export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
|
94
100
|
export { DeleteImageParams } from "./types/DeleteImageParams";
|
95
101
|
export { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
|
@@ -110,6 +116,7 @@ export { FederationBlockList } from "./types/FederationBlockList";
|
|
110
116
|
export { FederationError } from "./types/FederationError";
|
111
117
|
export { FederationMode } from "./types/FederationMode";
|
112
118
|
export { FollowCommunity } from "./types/FollowCommunity";
|
119
|
+
export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
|
113
120
|
export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
114
121
|
export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
|
115
122
|
export { GetComment } from "./types/GetComment";
|
@@ -123,6 +130,8 @@ export { GetCommunityResponse } from "./types/GetCommunityResponse";
|
|
123
130
|
export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
|
124
131
|
export { GetModlog } from "./types/GetModlog";
|
125
132
|
export { GetModlogResponse } from "./types/GetModlogResponse";
|
133
|
+
export { GetMultiCommunity } from "./types/GetMultiCommunity";
|
134
|
+
export { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
|
126
135
|
export { GetPersonDetails } from "./types/GetPersonDetails";
|
127
136
|
export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
|
128
137
|
export { GetPost } from "./types/GetPost";
|
@@ -152,8 +161,8 @@ export { InstanceWithFederationState } from "./types/InstanceWithFederationState
|
|
152
161
|
export { Language } from "./types/Language";
|
153
162
|
export { LanguageId } from "./types/LanguageId";
|
154
163
|
export { LemmyErrorType } from "./types/LemmyErrorType";
|
164
|
+
export { LikeType } from "./types/LikeType";
|
155
165
|
export { LinkMetadata } from "./types/LinkMetadata";
|
156
|
-
export { ListBannedPersons } from "./types/ListBannedPersons";
|
157
166
|
export { ListCommentLikes } from "./types/ListCommentLikes";
|
158
167
|
export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
159
168
|
export { ListCommunities } from "./types/ListCommunities";
|
@@ -167,8 +176,16 @@ export { ListInboxResponse } from "./types/ListInboxResponse";
|
|
167
176
|
export { ListLoginsResponse } from "./types/ListLoginsResponse";
|
168
177
|
export { ListMedia } from "./types/ListMedia";
|
169
178
|
export { ListMediaResponse } from "./types/ListMediaResponse";
|
179
|
+
export { ListMultiCommunities } from "./types/ListMultiCommunities";
|
180
|
+
export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
|
170
181
|
export { ListPersonContent } from "./types/ListPersonContent";
|
171
182
|
export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
183
|
+
export { ListPersonHidden } from "./types/ListPersonHidden";
|
184
|
+
export { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
|
185
|
+
export { ListPersonLiked } from "./types/ListPersonLiked";
|
186
|
+
export { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
|
187
|
+
export { ListPersonRead } from "./types/ListPersonRead";
|
188
|
+
export { ListPersonReadResponse } from "./types/ListPersonReadResponse";
|
172
189
|
export { ListPersonSaved } from "./types/ListPersonSaved";
|
173
190
|
export { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
|
174
191
|
export { ListPostLikes } from "./types/ListPostLikes";
|
@@ -234,7 +251,12 @@ export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
|
|
234
251
|
export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
|
235
252
|
export { ModlogActionType } from "./types/ModlogActionType";
|
236
253
|
export { ModlogCombinedView } from "./types/ModlogCombinedView";
|
254
|
+
export { MultiCommunity } from "./types/MultiCommunity";
|
255
|
+
export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
|
256
|
+
export { MultiCommunityId } from "./types/MultiCommunityId";
|
257
|
+
export { MultiCommunityView } from "./types/MultiCommunityView";
|
237
258
|
export { MyUserInfo } from "./types/MyUserInfo";
|
259
|
+
export { NotePerson } from "./types/NotePerson";
|
238
260
|
export { OAuthAccount } from "./types/OAuthAccount";
|
239
261
|
export { OAuthProvider } from "./types/OAuthProvider";
|
240
262
|
export { OAuthProviderId } from "./types/OAuthProviderId";
|
@@ -251,17 +273,18 @@ export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
|
|
251
273
|
export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
|
252
274
|
export { PersonContentType } from "./types/PersonContentType";
|
253
275
|
export { PersonId } from "./types/PersonId";
|
276
|
+
export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
|
254
277
|
export { PersonPostMention } from "./types/PersonPostMention";
|
255
278
|
export { PersonPostMentionId } from "./types/PersonPostMentionId";
|
256
279
|
export { PersonPostMentionView } from "./types/PersonPostMentionView";
|
257
280
|
export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
|
258
281
|
export { PersonView } from "./types/PersonView";
|
282
|
+
export { PluginMetadata } from "./types/PluginMetadata";
|
259
283
|
export { Post } from "./types/Post";
|
260
284
|
export { PostActions } from "./types/PostActions";
|
261
285
|
export { PostFeatureType } from "./types/PostFeatureType";
|
262
286
|
export { PostId } from "./types/PostId";
|
263
287
|
export { PostListingMode } from "./types/PostListingMode";
|
264
|
-
export { PostPaginationCursor } from "./types/PostPaginationCursor";
|
265
288
|
export { PostReport } from "./types/PostReport";
|
266
289
|
export { PostReportId } from "./types/PostReportId";
|
267
290
|
export { PostReportResponse } from "./types/PostReportResponse";
|
@@ -298,7 +321,6 @@ export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
|
298
321
|
export { ResolveCommentReport } from "./types/ResolveCommentReport";
|
299
322
|
export { ResolveCommunityReport } from "./types/ResolveCommunityReport";
|
300
323
|
export { ResolveObject } from "./types/ResolveObject";
|
301
|
-
export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
|
302
324
|
export { ResolvePostReport } from "./types/ResolvePostReport";
|
303
325
|
export { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
|
304
326
|
export { SaveComment } from "./types/SaveComment";
|
@@ -320,11 +342,15 @@ export { TagId } from "./types/TagId";
|
|
320
342
|
export { Tagline } from "./types/Tagline";
|
321
343
|
export { TaglineId } from "./types/TaglineId";
|
322
344
|
export { TaglineResponse } from "./types/TaglineResponse";
|
345
|
+
export { TagsView } from "./types/TagsView";
|
323
346
|
export { TransferCommunity } from "./types/TransferCommunity";
|
347
|
+
export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
348
|
+
export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
324
349
|
export { UpdateTagline } from "./types/UpdateTagline";
|
325
350
|
export { UpdateTotp } from "./types/UpdateTotp";
|
326
351
|
export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
327
352
|
export { UploadImageResponse } from "./types/UploadImageResponse";
|
328
353
|
export { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
|
329
354
|
export { VerifyEmail } from "./types/VerifyEmail";
|
355
|
+
export { VoteShow } from "./types/VoteShow";
|
330
356
|
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
21
|
import { ListInbox } from "./types/ListInbox";
|
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";
|
@@ -72,6 +78,12 @@ export interface ListInboxI extends ListInbox {
|
|
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
|
}
|
@@ -1,12 +1,10 @@
|
|
1
|
+
import type { LocalUserView } from "./LocalUserView";
|
1
2
|
import type { PaginationCursor } from "./PaginationCursor";
|
2
|
-
|
3
|
-
|
4
|
-
* The list of banned persons.
|
5
|
-
*/
|
6
|
-
export type BannedPersonsResponse = {
|
7
|
-
banned: Array<PersonView>;
|
3
|
+
export type AdminListUsersResponse = {
|
4
|
+
users: Array<LocalUserView>;
|
8
5
|
/**
|
9
6
|
* the pagination cursor to use to fetch the next page
|
10
7
|
*/
|
11
8
|
next_page?: PaginationCursor;
|
9
|
+
prev_page?: PaginationCursor;
|
12
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
|
*/
|
@@ -48,4 +48,9 @@ export type Comment = {
|
|
48
48
|
child_count: number;
|
49
49
|
report_count: number;
|
50
50
|
unresolved_report_count: number;
|
51
|
+
/**
|
52
|
+
* If a local user comments in a remote community, the comment is hidden until it is confirmed
|
53
|
+
* accepted by the community (by receiving it back via federation).
|
54
|
+
*/
|
55
|
+
federation_pending: boolean;
|
51
56
|
};
|
@@ -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
|
};
|
@@ -7,6 +7,7 @@ import type { InstanceActions } from "./InstanceActions";
|
|
7
7
|
import type { Person } from "./Person";
|
8
8
|
import type { PersonActions } from "./PersonActions";
|
9
9
|
import type { Post } from "./Post";
|
10
|
+
import type { TagsView } from "./TagsView";
|
10
11
|
/**
|
11
12
|
* A comment reply view.
|
12
13
|
*/
|
@@ -21,8 +22,10 @@ export type CommentReplyView = {
|
|
21
22
|
comment_actions?: CommentActions;
|
22
23
|
person_actions?: PersonActions;
|
23
24
|
instance_actions?: InstanceActions;
|
24
|
-
home_instance_actions?: InstanceActions;
|
25
|
-
creator_community_actions?: CommunityActions;
|
26
25
|
creator_is_admin: boolean;
|
26
|
+
post_tags: TagsView;
|
27
27
|
can_mod: boolean;
|
28
|
+
creator_banned: boolean;
|
29
|
+
creator_is_moderator: boolean;
|
30
|
+
creator_banned_from_community: boolean;
|
28
31
|
};
|
@@ -18,7 +18,6 @@ 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;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import type { Comment } from "./Comment";
|
2
2
|
import type { CommentActions } from "./CommentActions";
|
3
|
-
import type { CommunityActions } from "./CommunityActions";
|
4
3
|
import type { InstanceActions } from "./InstanceActions";
|
5
4
|
import type { Person } from "./Person";
|
6
5
|
import type { PersonActions } from "./PersonActions";
|
@@ -12,9 +11,10 @@ export type CommentSlimView = {
|
|
12
11
|
creator: Person;
|
13
12
|
comment_actions?: CommentActions;
|
14
13
|
person_actions?: PersonActions;
|
15
|
-
creator_community_actions?: CommunityActions;
|
16
14
|
instance_actions?: InstanceActions;
|
17
|
-
home_instance_actions?: InstanceActions;
|
18
15
|
creator_is_admin: boolean;
|
19
16
|
can_mod: boolean;
|
17
|
+
creator_banned: boolean;
|
18
|
+
creator_is_moderator: boolean;
|
19
|
+
creator_banned_from_community: boolean;
|
20
20
|
};
|
@@ -6,6 +6,7 @@ import type { InstanceActions } from "./InstanceActions";
|
|
6
6
|
import type { Person } from "./Person";
|
7
7
|
import type { PersonActions } from "./PersonActions";
|
8
8
|
import type { Post } from "./Post";
|
9
|
+
import type { TagsView } from "./TagsView";
|
9
10
|
/**
|
10
11
|
* A comment view.
|
11
12
|
*/
|
@@ -18,8 +19,10 @@ export type CommentView = {
|
|
18
19
|
comment_actions?: CommentActions;
|
19
20
|
person_actions?: PersonActions;
|
20
21
|
instance_actions?: InstanceActions;
|
21
|
-
home_instance_actions?: InstanceActions;
|
22
|
-
creator_community_actions?: CommunityActions;
|
23
22
|
creator_is_admin: boolean;
|
23
|
+
post_tags: TagsView;
|
24
24
|
can_mod: boolean;
|
25
|
+
creator_banned: boolean;
|
26
|
+
creator_is_moderator: boolean;
|
27
|
+
creator_banned_from_community: boolean;
|
25
28
|
};
|
@@ -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,27 @@
|
|
1
1
|
import type { CommunityFollowerState } from "./CommunityFollowerState";
|
2
|
-
import type { CommunityId } from "./CommunityId";
|
3
|
-
import type { PersonId } from "./PersonId";
|
4
2
|
export type CommunityActions = {
|
5
|
-
community_id: CommunityId;
|
6
|
-
person_id: PersonId;
|
7
3
|
/**
|
8
4
|
* When the community was followed.
|
9
5
|
*/
|
10
|
-
|
6
|
+
followed_at?: string;
|
11
7
|
/**
|
12
8
|
* The state of the community follow.
|
13
9
|
*/
|
14
10
|
follow_state?: CommunityFollowerState;
|
15
|
-
/**
|
16
|
-
* The approver of the community follow.
|
17
|
-
*/
|
18
|
-
follow_approver_id?: PersonId;
|
19
11
|
/**
|
20
12
|
* When the community was blocked.
|
21
13
|
*/
|
22
|
-
|
14
|
+
blocked_at?: string;
|
23
15
|
/**
|
24
16
|
* When this user became a moderator.
|
25
17
|
*/
|
26
|
-
|
18
|
+
became_moderator_at?: string;
|
27
19
|
/**
|
28
20
|
* When this user received a ban.
|
29
21
|
*/
|
30
|
-
|
22
|
+
received_ban_at?: string;
|
31
23
|
/**
|
32
24
|
* When their ban expires.
|
33
25
|
*/
|
34
|
-
|
26
|
+
ban_expires_at?: string;
|
35
27
|
};
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import type { Community } from "./Community";
|
2
2
|
import type { CommunityActions } from "./CommunityActions";
|
3
3
|
import type { InstanceActions } from "./InstanceActions";
|
4
|
+
import type { TagsView } from "./TagsView";
|
4
5
|
/**
|
5
6
|
* A community view.
|
6
7
|
*/
|
@@ -9,4 +10,5 @@ export type CommunityView = {
|
|
9
10
|
community_actions?: CommunityActions;
|
10
11
|
instance_actions?: InstanceActions;
|
11
12
|
can_mod: boolean;
|
13
|
+
post_tags: TagsView;
|
12
14
|
};
|
@@ -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";
|
@@ -24,22 +25,23 @@ export type CreateSite = {
|
|
24
25
|
default_comment_sort_type?: CommentSortType;
|
25
26
|
legal_information?: string;
|
26
27
|
application_email_admins?: boolean;
|
27
|
-
hide_modlog_mod_names?: boolean;
|
28
28
|
discussion_languages?: Array<LanguageId>;
|
29
29
|
slur_filter_regex?: string;
|
30
30
|
actor_name_max_length?: number;
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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;
|
43
45
|
federation_enabled?: boolean;
|
44
46
|
captcha_enabled?: boolean;
|
45
47
|
captcha_difficulty?: string;
|
@@ -50,6 +52,7 @@ export type CreateSite = {
|
|
50
52
|
post_downvotes?: FederationMode;
|
51
53
|
comment_upvotes?: FederationMode;
|
52
54
|
comment_downvotes?: FederationMode;
|
53
|
-
disable_donation_dialog?: boolean;
|
54
55
|
disallow_nsfw_content?: boolean;
|
56
|
+
disable_email_notifications?: boolean;
|
57
|
+
suggested_communities?: MultiCommunityId;
|
55
58
|
};
|