lemmy-js-client 1.0.0-block-nsfw.1 → 1.0.0-creator-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/dist/http.d.ts +98 -26
- package/dist/http.js +1078 -893
- package/dist/index.d.ts +42 -19
- package/dist/other_types.d.ts +21 -0
- package/dist/types/AdminAllowInstance.d.ts +1 -1
- package/dist/types/AdminBlockInstance.d.ts +2 -2
- package/dist/types/AdminBlockInstanceParams.d.ts +1 -1
- package/dist/types/AdminListUsers.d.ts +7 -0
- package/dist/types/AdminListUsersResponse.d.ts +10 -0
- package/dist/types/AdminPurgeComment.d.ts +1 -1
- package/dist/types/AdminPurgeCommunity.d.ts +1 -1
- package/dist/types/AdminPurgePerson.d.ts +1 -1
- package/dist/types/AdminPurgePost.d.ts +1 -1
- package/dist/types/BanFromCommunity.d.ts +1 -1
- package/dist/types/BanPerson.d.ts +1 -1
- package/dist/types/Comment.d.ts +16 -2
- package/dist/types/CommentActions.d.ts +14 -0
- package/dist/types/CommentReply.d.ts +1 -1
- package/dist/types/CommentReplyView.d.ts +14 -14
- package/dist/types/CommentReport.d.ts +2 -2
- package/dist/types/CommentReportView.d.ts +7 -13
- package/dist/types/CommentSlimView.d.ts +9 -13
- package/dist/types/CommentView.d.ts +13 -13
- package/dist/types/Community.d.ts +25 -6
- package/dist/types/CommunityActions.d.ts +27 -0
- package/dist/types/CommunityIdQuery.d.ts +8 -0
- package/dist/types/CommunityReport.d.ts +2 -2
- package/dist/types/CommunityReportResponse.d.ts +7 -0
- package/dist/types/CommunityReportView.d.ts +0 -4
- package/dist/types/CommunityView.d.ts +6 -6
- package/dist/types/CommunityVisibility.d.ts +1 -1
- package/dist/types/CreateCommunityReport.d.ts +8 -0
- package/dist/types/CreateCommunityTag.d.ts +8 -0
- package/dist/types/CreateMultiCommunity.d.ts +5 -0
- package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
- package/dist/types/CreatePost.d.ts +1 -1
- package/dist/types/CreateSite.d.ts +4 -2
- package/dist/types/CustomEmoji.d.ts +2 -2
- package/dist/types/DeleteCommunityTag.d.ts +7 -0
- package/dist/types/EditPost.d.ts +2 -2
- package/dist/types/EditSite.d.ts +9 -9
- package/dist/types/FederationBlockList.d.ts +3 -3
- package/dist/types/FollowMultiCommunity.d.ts +5 -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 +3 -2
- package/dist/types/GetModlogResponse.d.ts +6 -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 +3 -9
- package/dist/types/GetPostsResponse.d.ts +1 -0
- package/dist/types/GetSiteResponse.d.ts +4 -2
- package/dist/types/Instance.d.ts +13 -3
- package/dist/types/InstanceActions.d.ts +14 -0
- package/dist/types/InstanceWithFederationState.d.ts +11 -2
- package/dist/types/LemmyErrorType.d.ts +105 -26
- package/dist/types/LikeType.d.ts +4 -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 +3 -2
- package/dist/types/ListInboxResponse.d.ts +6 -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 +3 -2
- package/dist/types/ListPersonContentResponse.d.ts +6 -0
- package/dist/types/ListPersonHidden.d.ts +9 -0
- 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 +3 -2
- package/dist/types/ListPersonSavedResponse.d.ts +8 -2
- 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 +3 -2
- package/dist/types/ListReportsResponse.d.ts +6 -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 +30 -11
- package/dist/types/LocalSiteRateLimit.d.ts +2 -2
- package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
- package/dist/types/LocalUser.d.ts +6 -1
- package/dist/types/LocalUserView.d.ts +1 -4
- 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 +4 -2
- package/dist/types/ModBanFromCommunity.d.ts +2 -2
- package/dist/types/ModChangeCommunityVisibility.d.ts +11 -0
- package/dist/types/ModChangeCommunityVisibility.js +2 -0
- package/dist/types/ModChangeCommunityVisibilityId.d.ts +1 -0
- package/dist/types/ModChangeCommunityVisibilityView.d.ts +11 -0
- package/dist/types/ModChangeCommunityVisibilityView.js +2 -0
- package/dist/types/ModFeaturePost.d.ts +1 -1
- package/dist/types/ModLockPost.d.ts +2 -1
- package/dist/types/ModRemoveComment.d.ts +1 -1
- package/dist/types/ModRemoveCommunity.d.ts +1 -1
- package/dist/types/ModRemovePost.d.ts +1 -1
- package/dist/types/ModTransferCommunity.d.ts +1 -1
- package/dist/types/ModlogActionType.d.ts +1 -1
- package/dist/types/ModlogCombinedView.d.ts +3 -3
- 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 +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/PaginationCursor.d.ts +1 -4
- package/dist/types/PendingFollow.d.ts +2 -2
- package/dist/types/Person.d.ts +4 -10
- package/dist/types/PersonActions.d.ts +14 -0
- package/dist/types/PersonCommentMention.d.ts +1 -1
- package/dist/types/PersonCommentMentionView.d.ts +12 -14
- 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 +14 -19
- package/dist/types/PersonSavedCombinedView.d.ts +7 -0
- package/dist/types/PersonSavedCombinedView.js +2 -0
- package/dist/types/PersonView.d.ts +3 -2
- package/dist/types/PluginMetadata.d.ts +5 -0
- package/dist/types/Post.d.ts +18 -3
- package/dist/types/PostActions.d.ts +31 -0
- package/dist/types/PostReport.d.ts +2 -2
- package/dist/types/PostReportView.d.ts +7 -16
- package/dist/types/PostView.d.ts +13 -18
- package/dist/types/PrivateMessage.d.ts +2 -2
- package/dist/types/PrivateMessageReport.d.ts +2 -2
- package/dist/types/PrivateMessageReportView.d.ts +1 -1
- package/dist/types/ReadableFederationState.d.ts +2 -2
- package/dist/types/RegistrationApplication.d.ts +1 -1
- package/dist/types/ResolveCommunityReport.d.ts +8 -0
- package/dist/types/ResolveCommunityReport.js +2 -0
- package/dist/types/SaveUserSettings.d.ts +3 -1
- package/dist/types/Search.d.ts +8 -3
- package/dist/types/SearchCombinedView.d.ts +4 -1
- package/dist/types/SearchResponse.d.ts +6 -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/SiteView.d.ts +2 -2
- 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/{PostTags.d.ts → TagsView.d.ts} +1 -3
- 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/VoteShow.d.ts +4 -0
- package/dist/types/VoteShow.js +3 -0
- package/package.json +8 -5
- package/dist/types/BannedPersonsResponse.d.ts +0 -7
- package/dist/types/CommentAggregates.d.ts +0 -17
- package/dist/types/CommunityAggregates.d.ts +0 -30
- package/dist/types/InboxCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/LocalUserVoteDisplayMode.d.ts +0 -9
- package/dist/types/ModHideCommunity.d.ts +0 -14
- package/dist/types/ModHideCommunityId.d.ts +0 -1
- package/dist/types/ModHideCommunityView.d.ts +0 -11
- package/dist/types/ModlogCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/PersonAggregates.d.ts +0 -10
- package/dist/types/PersonContentCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/PostAggregates.d.ts +0 -18
- package/dist/types/ReportCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/ResolveObjectResponse.d.ts +0 -13
- package/dist/types/SearchCombinedPaginationCursor.d.ts +0 -4
- package/dist/types/SiteAggregates.d.ts +0 -27
- package/dist/types/SubscribedType.d.ts +0 -4
- /package/dist/types/{BannedPersonsResponse.js → AdminListUsers.js} +0 -0
- /package/dist/types/{CommentAggregates.js → AdminListUsersResponse.js} +0 -0
- /package/dist/types/{InboxCombinedPaginationCursor.js → CommentActions.js} +0 -0
- /package/dist/types/{CommunityAggregates.js → CommunityActions.js} +0 -0
- /package/dist/types/{ModHideCommunity.js → CommunityIdQuery.js} +0 -0
- /package/dist/types/{ModHideCommunityView.js → CommunityReportResponse.js} +0 -0
- /package/dist/types/{PersonAggregates.js → CreateCommunityReport.js} +0 -0
- /package/dist/types/{PostAggregates.js → CreateCommunityTag.js} +0 -0
- /package/dist/types/{LocalUserVoteDisplayMode.js → CreateMultiCommunity.js} +0 -0
- /package/dist/types/{PostTags.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
- /package/dist/types/{ResolveObjectResponse.js → DeleteCommunityTag.js} +0 -0
- /package/dist/types/{SiteAggregates.js → FollowMultiCommunity.js} +0 -0
- /package/dist/types/{ModHideCommunityId.js → InstanceActions.js} +0 -0
- /package/dist/types/{ModlogCombinedPaginationCursor.js → LikeType.js} +0 -0
- /package/dist/types/{PersonContentCombinedPaginationCursor.js → ModChangeCommunityVisibilityId.js} +0 -0
- /package/dist/types/{PersonSavedCombinedPaginationCursor.js → MultiCommunityId.js} +0 -0
- /package/dist/types/{ReportCombinedPaginationCursor.js → PersonActions.js} +0 -0
- /package/dist/types/{SearchCombinedPaginationCursor.js → PluginMetadata.js} +0 -0
- /package/dist/types/{SubscribedType.js → PostActions.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";
|
@@ -40,7 +41,7 @@ export { BlockPersonResponse } from "./types/BlockPersonResponse";
|
|
40
41
|
export { CaptchaResponse } from "./types/CaptchaResponse";
|
41
42
|
export { ChangePassword } from "./types/ChangePassword";
|
42
43
|
export { Comment } from "./types/Comment";
|
43
|
-
export {
|
44
|
+
export { CommentActions } from "./types/CommentActions";
|
44
45
|
export { CommentId } from "./types/CommentId";
|
45
46
|
export { CommentReply } from "./types/CommentReply";
|
46
47
|
export { CommentReplyId } from "./types/CommentReplyId";
|
@@ -54,13 +55,15 @@ export { CommentSlimView } from "./types/CommentSlimView";
|
|
54
55
|
export { CommentSortType } from "./types/CommentSortType";
|
55
56
|
export { CommentView } from "./types/CommentView";
|
56
57
|
export { Community } from "./types/Community";
|
57
|
-
export {
|
58
|
+
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";
|
66
|
+
export { CommunityReportResponse } from "./types/CommunityReportResponse";
|
64
67
|
export { CommunityReportView } from "./types/CommunityReportView";
|
65
68
|
export { CommunityResponse } from "./types/CommunityResponse";
|
66
69
|
export { CommunitySortType } from "./types/CommunitySortType";
|
@@ -70,8 +73,12 @@ export { CreateComment } from "./types/CreateComment";
|
|
70
73
|
export { CreateCommentLike } from "./types/CreateCommentLike";
|
71
74
|
export { CreateCommentReport } from "./types/CreateCommentReport";
|
72
75
|
export { CreateCommunity } from "./types/CreateCommunity";
|
76
|
+
export { CreateCommunityReport } from "./types/CreateCommunityReport";
|
77
|
+
export { CreateCommunityTag } from "./types/CreateCommunityTag";
|
73
78
|
export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
79
|
+
export { CreateMultiCommunity } from "./types/CreateMultiCommunity";
|
74
80
|
export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
81
|
+
export { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
|
75
82
|
export { CreatePost } from "./types/CreatePost";
|
76
83
|
export { CreatePostLike } from "./types/CreatePostLike";
|
77
84
|
export { CreatePostReport } from "./types/CreatePostReport";
|
@@ -88,6 +95,7 @@ export { DbUrl } from "./types/DbUrl";
|
|
88
95
|
export { DeleteAccount } from "./types/DeleteAccount";
|
89
96
|
export { DeleteComment } from "./types/DeleteComment";
|
90
97
|
export { DeleteCommunity } from "./types/DeleteCommunity";
|
98
|
+
export { DeleteCommunityTag } from "./types/DeleteCommunityTag";
|
91
99
|
export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
|
92
100
|
export { DeleteImageParams } from "./types/DeleteImageParams";
|
93
101
|
export { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
|
@@ -108,6 +116,7 @@ export { FederationBlockList } from "./types/FederationBlockList";
|
|
108
116
|
export { FederationError } from "./types/FederationError";
|
109
117
|
export { FederationMode } from "./types/FederationMode";
|
110
118
|
export { FollowCommunity } from "./types/FollowCommunity";
|
119
|
+
export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
|
111
120
|
export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
112
121
|
export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
|
113
122
|
export { GetComment } from "./types/GetComment";
|
@@ -121,6 +130,8 @@ export { GetCommunityResponse } from "./types/GetCommunityResponse";
|
|
121
130
|
export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
|
122
131
|
export { GetModlog } from "./types/GetModlog";
|
123
132
|
export { GetModlogResponse } from "./types/GetModlogResponse";
|
133
|
+
export { GetMultiCommunity } from "./types/GetMultiCommunity";
|
134
|
+
export { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
|
124
135
|
export { GetPersonDetails } from "./types/GetPersonDetails";
|
125
136
|
export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
|
126
137
|
export { GetPost } from "./types/GetPost";
|
@@ -141,15 +152,16 @@ export { HidePost } from "./types/HidePost";
|
|
141
152
|
export { ImageDetails } from "./types/ImageDetails";
|
142
153
|
export { ImageGetParams } from "./types/ImageGetParams";
|
143
154
|
export { ImageProxyParams } from "./types/ImageProxyParams";
|
144
|
-
export { InboxCombinedPaginationCursor } from "./types/InboxCombinedPaginationCursor";
|
145
155
|
export { InboxCombinedView } from "./types/InboxCombinedView";
|
146
156
|
export { InboxDataType } from "./types/InboxDataType";
|
147
157
|
export { Instance } from "./types/Instance";
|
158
|
+
export { InstanceActions } from "./types/InstanceActions";
|
148
159
|
export { InstanceId } from "./types/InstanceId";
|
149
160
|
export { InstanceWithFederationState } from "./types/InstanceWithFederationState";
|
150
161
|
export { Language } from "./types/Language";
|
151
162
|
export { LanguageId } from "./types/LanguageId";
|
152
163
|
export { LemmyErrorType } from "./types/LemmyErrorType";
|
164
|
+
export { LikeType } from "./types/LikeType";
|
153
165
|
export { LinkMetadata } from "./types/LinkMetadata";
|
154
166
|
export { ListCommentLikes } from "./types/ListCommentLikes";
|
155
167
|
export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
@@ -164,8 +176,16 @@ export { ListInboxResponse } from "./types/ListInboxResponse";
|
|
164
176
|
export { ListLoginsResponse } from "./types/ListLoginsResponse";
|
165
177
|
export { ListMedia } from "./types/ListMedia";
|
166
178
|
export { ListMediaResponse } from "./types/ListMediaResponse";
|
179
|
+
export { ListMultiCommunities } from "./types/ListMultiCommunities";
|
180
|
+
export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
|
167
181
|
export { ListPersonContent } from "./types/ListPersonContent";
|
168
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";
|
169
189
|
export { ListPersonSaved } from "./types/ListPersonSaved";
|
170
190
|
export { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
|
171
191
|
export { ListPostLikes } from "./types/ListPostLikes";
|
@@ -186,7 +206,6 @@ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
|
|
186
206
|
export { LocalUser } from "./types/LocalUser";
|
187
207
|
export { LocalUserId } from "./types/LocalUserId";
|
188
208
|
export { LocalUserView } from "./types/LocalUserView";
|
189
|
-
export { LocalUserVoteDisplayMode } from "./types/LocalUserVoteDisplayMode";
|
190
209
|
export { LockPost } from "./types/LockPost";
|
191
210
|
export { Login } from "./types/Login";
|
192
211
|
export { LoginResponse } from "./types/LoginResponse";
|
@@ -209,12 +228,12 @@ export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
|
|
209
228
|
export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
|
210
229
|
export { ModBanId } from "./types/ModBanId";
|
211
230
|
export { ModBanView } from "./types/ModBanView";
|
231
|
+
export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
|
232
|
+
export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
|
233
|
+
export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
|
212
234
|
export { ModFeaturePost } from "./types/ModFeaturePost";
|
213
235
|
export { ModFeaturePostId } from "./types/ModFeaturePostId";
|
214
236
|
export { ModFeaturePostView } from "./types/ModFeaturePostView";
|
215
|
-
export { ModHideCommunity } from "./types/ModHideCommunity";
|
216
|
-
export { ModHideCommunityId } from "./types/ModHideCommunityId";
|
217
|
-
export { ModHideCommunityView } from "./types/ModHideCommunityView";
|
218
237
|
export { ModLockPost } from "./types/ModLockPost";
|
219
238
|
export { ModLockPostId } from "./types/ModLockPostId";
|
220
239
|
export { ModLockPostView } from "./types/ModLockPostView";
|
@@ -231,9 +250,13 @@ export { ModTransferCommunity } from "./types/ModTransferCommunity";
|
|
231
250
|
export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
|
232
251
|
export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
|
233
252
|
export { ModlogActionType } from "./types/ModlogActionType";
|
234
|
-
export { ModlogCombinedPaginationCursor } from "./types/ModlogCombinedPaginationCursor";
|
235
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";
|
236
258
|
export { MyUserInfo } from "./types/MyUserInfo";
|
259
|
+
export { NotePerson } from "./types/NotePerson";
|
237
260
|
export { OAuthAccount } from "./types/OAuthAccount";
|
238
261
|
export { OAuthProvider } from "./types/OAuthProvider";
|
239
262
|
export { OAuthProviderId } from "./types/OAuthProviderId";
|
@@ -243,21 +266,22 @@ export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
|
243
266
|
export { PasswordReset } from "./types/PasswordReset";
|
244
267
|
export { PendingFollow } from "./types/PendingFollow";
|
245
268
|
export { Person } from "./types/Person";
|
246
|
-
export {
|
269
|
+
export { PersonActions } from "./types/PersonActions";
|
247
270
|
export { PersonCommentMention } from "./types/PersonCommentMention";
|
248
271
|
export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
|
249
272
|
export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
|
250
|
-
export { PersonContentCombinedPaginationCursor } from "./types/PersonContentCombinedPaginationCursor";
|
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
|
-
export {
|
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
|
-
export {
|
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";
|
@@ -267,7 +291,6 @@ export { PostReportResponse } from "./types/PostReportResponse";
|
|
267
291
|
export { PostReportView } from "./types/PostReportView";
|
268
292
|
export { PostResponse } from "./types/PostResponse";
|
269
293
|
export { PostSortType } from "./types/PostSortType";
|
270
|
-
export { PostTags } from "./types/PostTags";
|
271
294
|
export { PostView } from "./types/PostView";
|
272
295
|
export { PrivateMessage } from "./types/PrivateMessage";
|
273
296
|
export { PrivateMessageId } from "./types/PrivateMessageId";
|
@@ -292,42 +315,42 @@ export { RegistrationMode } from "./types/RegistrationMode";
|
|
292
315
|
export { RemoveComment } from "./types/RemoveComment";
|
293
316
|
export { RemoveCommunity } from "./types/RemoveCommunity";
|
294
317
|
export { RemovePost } from "./types/RemovePost";
|
295
|
-
export { ReportCombinedPaginationCursor } from "./types/ReportCombinedPaginationCursor";
|
296
318
|
export { ReportCombinedView } from "./types/ReportCombinedView";
|
297
319
|
export { ReportType } from "./types/ReportType";
|
298
320
|
export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
299
321
|
export { ResolveCommentReport } from "./types/ResolveCommentReport";
|
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";
|
305
327
|
export { SavePost } from "./types/SavePost";
|
306
328
|
export { SaveUserSettings } from "./types/SaveUserSettings";
|
307
329
|
export { Search } from "./types/Search";
|
308
|
-
export { SearchCombinedPaginationCursor } from "./types/SearchCombinedPaginationCursor";
|
309
330
|
export { SearchCombinedView } from "./types/SearchCombinedView";
|
310
331
|
export { SearchResponse } from "./types/SearchResponse";
|
311
332
|
export { SearchSortType } from "./types/SearchSortType";
|
312
333
|
export { SearchType } from "./types/SearchType";
|
313
334
|
export { SensitiveString } from "./types/SensitiveString";
|
314
335
|
export { Site } from "./types/Site";
|
315
|
-
export { SiteAggregates } from "./types/SiteAggregates";
|
316
336
|
export { SiteId } from "./types/SiteId";
|
317
337
|
export { SiteResponse } from "./types/SiteResponse";
|
318
338
|
export { SiteView } from "./types/SiteView";
|
319
|
-
export { SubscribedType } from "./types/SubscribedType";
|
320
339
|
export { SuccessResponse } from "./types/SuccessResponse";
|
321
340
|
export { Tag } from "./types/Tag";
|
322
341
|
export { TagId } from "./types/TagId";
|
323
342
|
export { Tagline } from "./types/Tagline";
|
324
343
|
export { TaglineId } from "./types/TaglineId";
|
325
344
|
export { TaglineResponse } from "./types/TaglineResponse";
|
345
|
+
export { TagsView } from "./types/TagsView";
|
326
346
|
export { TransferCommunity } from "./types/TransferCommunity";
|
347
|
+
export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
348
|
+
export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
327
349
|
export { UpdateTagline } from "./types/UpdateTagline";
|
328
350
|
export { UpdateTotp } from "./types/UpdateTotp";
|
329
351
|
export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
330
352
|
export { UploadImageResponse } from "./types/UploadImageResponse";
|
331
353
|
export { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
|
332
354
|
export { VerifyEmail } from "./types/VerifyEmail";
|
355
|
+
export { VoteShow } from "./types/VoteShow";
|
333
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";
|
@@ -17,7 +20,11 @@ import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
|
|
17
20
|
import { ListCustomEmojis } from "./types/ListCustomEmojis";
|
18
21
|
import { ListInbox } from "./types/ListInbox";
|
19
22
|
import { ListMedia } from "./types/ListMedia";
|
23
|
+
import { ListMultiCommunities } from "./types/ListMultiCommunities";
|
20
24
|
import { ListPersonContent } from "./types/ListPersonContent";
|
25
|
+
import { ListPersonHidden } from "./types/ListPersonHidden";
|
26
|
+
import { ListPersonLiked } from "./types/ListPersonLiked";
|
27
|
+
import { ListPersonRead } from "./types/ListPersonRead";
|
21
28
|
import { ListPersonSaved } from "./types/ListPersonSaved";
|
22
29
|
import { ListPostLikes } from "./types/ListPostLikes";
|
23
30
|
import { ListRegistrationApplications } from "./types/ListRegistrationApplications";
|
@@ -71,6 +78,12 @@ export interface ListInboxI extends ListInbox {
|
|
71
78
|
}
|
72
79
|
export interface ListPersonSavedI extends ListPersonSaved {
|
73
80
|
}
|
81
|
+
export interface ListPersonReadI extends ListPersonRead {
|
82
|
+
}
|
83
|
+
export interface ListPersonHiddenI extends ListPersonHidden {
|
84
|
+
}
|
85
|
+
export interface ListPersonLikedI extends ListPersonLiked {
|
86
|
+
}
|
74
87
|
export interface ListRegistrationApplicationsI extends ListRegistrationApplications {
|
75
88
|
}
|
76
89
|
export interface GetRegistrationApplicationI extends GetRegistrationApplication {
|
@@ -83,3 +96,11 @@ export interface ListReportsI extends ListReports {
|
|
83
96
|
}
|
84
97
|
export interface DeleteImageParamsI extends DeleteImageParams {
|
85
98
|
}
|
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 {
|
106
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { LocalUserView } from "./LocalUserView";
|
2
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
3
|
+
export type AdminListUsersResponse = {
|
4
|
+
users: Array<LocalUserView>;
|
5
|
+
/**
|
6
|
+
* the pagination cursor to use to fetch the next page
|
7
|
+
*/
|
8
|
+
next_page?: PaginationCursor;
|
9
|
+
prev_page?: PaginationCursor;
|
10
|
+
};
|
package/dist/types/Comment.d.ts
CHANGED
@@ -15,8 +15,8 @@ export type Comment = {
|
|
15
15
|
* Whether the comment has been removed.
|
16
16
|
*/
|
17
17
|
removed: boolean;
|
18
|
-
|
19
|
-
|
18
|
+
published_at: string;
|
19
|
+
updated_at?: string;
|
20
20
|
/**
|
21
21
|
* Whether the comment has been deleted by its creator.
|
22
22
|
*/
|
@@ -39,4 +39,18 @@ export type Comment = {
|
|
39
39
|
*/
|
40
40
|
distinguished: boolean;
|
41
41
|
language_id: LanguageId;
|
42
|
+
score: number;
|
43
|
+
upvotes: number;
|
44
|
+
downvotes: number;
|
45
|
+
/**
|
46
|
+
* The total number of children in this comment branch.
|
47
|
+
*/
|
48
|
+
child_count: number;
|
49
|
+
report_count: number;
|
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;
|
42
56
|
};
|
@@ -1,31 +1,31 @@
|
|
1
1
|
import type { Comment } from "./Comment";
|
2
|
-
import type {
|
2
|
+
import type { CommentActions } from "./CommentActions";
|
3
3
|
import type { CommentReply } from "./CommentReply";
|
4
4
|
import type { Community } from "./Community";
|
5
|
+
import type { CommunityActions } from "./CommunityActions";
|
6
|
+
import type { InstanceActions } from "./InstanceActions";
|
5
7
|
import type { Person } from "./Person";
|
8
|
+
import type { PersonActions } from "./PersonActions";
|
6
9
|
import type { Post } from "./Post";
|
7
|
-
import type {
|
10
|
+
import type { TagsView } from "./TagsView";
|
8
11
|
/**
|
9
12
|
* A comment reply view.
|
10
13
|
*/
|
11
14
|
export type CommentReplyView = {
|
12
15
|
comment_reply: CommentReply;
|
16
|
+
recipient: Person;
|
13
17
|
comment: Comment;
|
14
18
|
creator: Person;
|
15
19
|
post: Post;
|
16
20
|
community: Community;
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
creator_is_moderator: boolean;
|
21
|
+
community_actions?: CommunityActions;
|
22
|
+
comment_actions?: CommentActions;
|
23
|
+
person_actions?: PersonActions;
|
24
|
+
instance_actions?: InstanceActions;
|
22
25
|
creator_is_admin: boolean;
|
23
|
-
|
24
|
-
/**
|
25
|
-
* The time when the comment was saved.
|
26
|
-
*/
|
27
|
-
saved?: string;
|
28
|
-
creator_blocked: boolean;
|
29
|
-
my_vote?: number;
|
26
|
+
post_tags: TagsView;
|
30
27
|
can_mod: boolean;
|
28
|
+
creator_banned: boolean;
|
29
|
+
creator_is_moderator: boolean;
|
30
|
+
creator_banned_from_community: boolean;
|
31
31
|
};
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import type { Comment } from "./Comment";
|
2
|
-
import type {
|
2
|
+
import type { CommentActions } from "./CommentActions";
|
3
3
|
import type { CommentReport } from "./CommentReport";
|
4
4
|
import type { Community } from "./Community";
|
5
|
+
import type { CommunityActions } from "./CommunityActions";
|
5
6
|
import type { Person } from "./Person";
|
7
|
+
import type { PersonActions } from "./PersonActions";
|
6
8
|
import type { Post } from "./Post";
|
7
|
-
import type { SubscribedType } from "./SubscribedType";
|
8
9
|
/**
|
9
10
|
* A comment report view.
|
10
11
|
*/
|
@@ -15,16 +16,9 @@ export type CommentReportView = {
|
|
15
16
|
community: Community;
|
16
17
|
creator: Person;
|
17
18
|
comment_creator: Person;
|
18
|
-
|
19
|
-
creator_banned_from_community: boolean;
|
20
|
-
creator_is_moderator: boolean;
|
21
|
-
creator_is_admin: boolean;
|
22
|
-
creator_blocked: boolean;
|
23
|
-
subscribed: SubscribedType;
|
24
|
-
/**
|
25
|
-
* The time when the comment was saved.
|
26
|
-
*/
|
27
|
-
saved?: string;
|
28
|
-
my_vote?: number;
|
19
|
+
comment_actions?: CommentActions;
|
29
20
|
resolver?: Person;
|
21
|
+
person_actions?: PersonActions;
|
22
|
+
community_actions?: CommunityActions;
|
23
|
+
creator_is_admin: boolean;
|
30
24
|
};
|
@@ -1,24 +1,20 @@
|
|
1
1
|
import type { Comment } from "./Comment";
|
2
|
-
import type {
|
2
|
+
import type { CommentActions } from "./CommentActions";
|
3
|
+
import type { InstanceActions } from "./InstanceActions";
|
3
4
|
import type { Person } from "./Person";
|
4
|
-
import type {
|
5
|
+
import type { PersonActions } from "./PersonActions";
|
5
6
|
/**
|
6
7
|
* A slimmer comment view, without the post, or community.
|
7
8
|
*/
|
8
9
|
export type CommentSlimView = {
|
9
10
|
comment: Comment;
|
10
11
|
creator: Person;
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
creator_is_moderator: boolean;
|
12
|
+
comment_actions?: CommentActions;
|
13
|
+
person_actions?: PersonActions;
|
14
|
+
instance_actions?: InstanceActions;
|
15
15
|
creator_is_admin: boolean;
|
16
|
-
subscribed: SubscribedType;
|
17
|
-
/**
|
18
|
-
* The time when the comment was saved.
|
19
|
-
*/
|
20
|
-
saved?: string;
|
21
|
-
creator_blocked: boolean;
|
22
|
-
my_vote?: number;
|
23
16
|
can_mod: boolean;
|
17
|
+
creator_banned: boolean;
|
18
|
+
creator_is_moderator: boolean;
|
19
|
+
creator_banned_from_community: boolean;
|
24
20
|
};
|
@@ -1,9 +1,12 @@
|
|
1
1
|
import type { Comment } from "./Comment";
|
2
|
-
import type {
|
2
|
+
import type { CommentActions } from "./CommentActions";
|
3
3
|
import type { Community } from "./Community";
|
4
|
+
import type { CommunityActions } from "./CommunityActions";
|
5
|
+
import type { InstanceActions } from "./InstanceActions";
|
4
6
|
import type { Person } from "./Person";
|
7
|
+
import type { PersonActions } from "./PersonActions";
|
5
8
|
import type { Post } from "./Post";
|
6
|
-
import type {
|
9
|
+
import type { TagsView } from "./TagsView";
|
7
10
|
/**
|
8
11
|
* A comment view.
|
9
12
|
*/
|
@@ -12,17 +15,14 @@ export type CommentView = {
|
|
12
15
|
creator: Person;
|
13
16
|
post: Post;
|
14
17
|
community: Community;
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
18
|
+
community_actions?: CommunityActions;
|
19
|
+
comment_actions?: CommentActions;
|
20
|
+
person_actions?: PersonActions;
|
21
|
+
instance_actions?: InstanceActions;
|
19
22
|
creator_is_admin: boolean;
|
20
|
-
|
21
|
-
/**
|
22
|
-
* The time when the comment was saved.
|
23
|
-
*/
|
24
|
-
saved?: string;
|
25
|
-
creator_blocked: boolean;
|
26
|
-
my_vote?: number;
|
23
|
+
post_tags: TagsView;
|
27
24
|
can_mod: boolean;
|
25
|
+
creator_banned: boolean;
|
26
|
+
creator_is_moderator: boolean;
|
27
|
+
creator_banned_from_community: boolean;
|
28
28
|
};
|