lemmy-js-client 1.0.0-merge-modlog-tables.1 → 1.0.0-merge-modlog-tables.3
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 +2 -2
- package/dist/http.js +4 -3
- package/dist/index.d.ts +87 -1
- package/dist/index.js +3 -0
- package/dist/other_types.d.ts +3 -0
- package/dist/types/AdminAllowInstance.d.ts +11 -0
- package/dist/types/AdminAllowInstance.js +2 -0
- package/dist/types/AdminAllowInstanceId.d.ts +1 -0
- package/dist/types/AdminAllowInstanceId.js +3 -0
- package/dist/types/AdminAllowInstanceView.d.ts +11 -0
- package/dist/types/AdminAllowInstanceView.js +2 -0
- package/dist/types/AdminBlockInstance.d.ts +12 -0
- package/dist/types/AdminBlockInstance.js +2 -0
- package/dist/types/AdminBlockInstanceId.d.ts +1 -0
- package/dist/types/AdminBlockInstanceId.js +3 -0
- package/dist/types/AdminBlockInstanceView.d.ts +11 -0
- package/dist/types/AdminBlockInstanceView.js +2 -0
- package/dist/types/AdminPurgeComment.d.ts +9 -0
- package/dist/types/AdminPurgeComment.js +2 -0
- package/dist/types/AdminPurgeCommentId.d.ts +1 -0
- package/dist/types/AdminPurgeCommentId.js +3 -0
- package/dist/types/AdminPurgeCommentView.d.ts +11 -0
- package/dist/types/AdminPurgeCommentView.js +2 -0
- package/dist/types/AdminPurgeCommunity.d.ts +7 -0
- package/dist/types/AdminPurgeCommunity.js +2 -0
- package/dist/types/AdminPurgeCommunityId.d.ts +1 -0
- package/dist/types/AdminPurgeCommunityId.js +3 -0
- package/dist/types/AdminPurgeCommunityView.d.ts +9 -0
- package/dist/types/AdminPurgeCommunityView.js +2 -0
- package/dist/types/AdminPurgePerson.d.ts +7 -0
- package/dist/types/AdminPurgePerson.js +2 -0
- package/dist/types/AdminPurgePersonId.d.ts +1 -0
- package/dist/types/AdminPurgePersonId.js +3 -0
- package/dist/types/AdminPurgePersonView.d.ts +9 -0
- package/dist/types/AdminPurgePersonView.js +2 -0
- package/dist/types/AdminPurgePost.d.ts +9 -0
- package/dist/types/AdminPurgePost.js +2 -0
- package/dist/types/AdminPurgePostId.d.ts +1 -0
- package/dist/types/AdminPurgePostId.js +3 -0
- package/dist/types/AdminPurgePostView.d.ts +11 -0
- package/dist/types/AdminPurgePostView.js +2 -0
- package/dist/types/CommentAggregates.d.ts +9 -0
- package/dist/types/CommentAggregates.js +2 -0
- package/dist/types/CommentReply.d.ts +10 -0
- package/dist/types/CommentReply.js +2 -0
- package/dist/types/CommentReplyId.d.ts +1 -0
- package/dist/types/CommentReplyId.js +3 -0
- package/dist/types/CommentReplyView.d.ts +27 -0
- package/dist/types/CommentReplyView.js +2 -0
- package/dist/types/CommentReportView.d.ts +12 -17
- package/dist/types/CommentSlimView.d.ts +4 -3
- package/dist/types/CommunityAggregates.d.ts +13 -0
- package/dist/types/CommunityAggregates.js +2 -0
- package/dist/types/CommunityReportView.d.ts +0 -6
- package/dist/types/CustomEmojiView.d.ts +2 -5
- package/dist/types/FederationError.d.ts +10 -0
- package/dist/types/FederationError.js +3 -0
- package/dist/types/InboxCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/InboxCombinedPaginationCursor.js +3 -0
- package/dist/types/InboxCombinedView.d.ts +13 -0
- package/dist/types/InboxCombinedView.js +2 -0
- package/dist/types/InboxDataType.d.ts +4 -0
- package/dist/types/InboxDataType.js +3 -0
- package/dist/types/LocalUserVoteDisplayMode.d.ts +8 -0
- package/dist/types/LocalUserVoteDisplayMode.js +2 -0
- package/dist/types/ModAdd.d.ts +8 -0
- package/dist/types/ModAdd.js +2 -0
- package/dist/types/ModAddCommunity.d.ts +10 -0
- package/dist/types/ModAddCommunity.js +2 -0
- package/dist/types/ModAddCommunityId.d.ts +1 -0
- package/dist/types/ModAddCommunityId.js +3 -0
- package/dist/types/ModAddCommunityView.d.ts +12 -0
- package/dist/types/ModAddCommunityView.js +2 -0
- package/dist/types/ModAddId.d.ts +1 -0
- package/dist/types/ModAddId.js +3 -0
- package/dist/types/ModAddView.d.ts +10 -0
- package/dist/types/ModAddView.js +2 -0
- package/dist/types/ModBan.d.ts +10 -0
- package/dist/types/ModBan.js +2 -0
- package/dist/types/ModBanFromCommunity.d.ts +12 -0
- package/dist/types/ModBanFromCommunity.js +2 -0
- package/dist/types/ModBanFromCommunityId.d.ts +1 -0
- package/dist/types/ModBanFromCommunityId.js +3 -0
- package/dist/types/ModBanFromCommunityView.d.ts +12 -0
- package/dist/types/ModBanFromCommunityView.js +2 -0
- package/dist/types/ModBanId.d.ts +1 -0
- package/dist/types/ModBanId.js +3 -0
- package/dist/types/ModBanView.d.ts +10 -0
- package/dist/types/ModBanView.js +2 -0
- package/dist/types/ModChangeCommunityVisibility.d.ts +12 -0
- package/dist/types/ModChangeCommunityVisibility.js +2 -0
- package/dist/types/ModChangeCommunityVisibilityId.d.ts +1 -0
- package/dist/types/ModChangeCommunityVisibilityId.js +3 -0
- package/dist/types/ModChangeCommunityVisibilityView.d.ts +11 -0
- package/dist/types/ModChangeCommunityVisibilityView.js +2 -0
- package/dist/types/ModFeaturePost.d.ts +10 -0
- package/dist/types/ModFeaturePost.js +2 -0
- package/dist/types/ModFeaturePostId.d.ts +1 -0
- package/dist/types/ModFeaturePostId.js +3 -0
- package/dist/types/ModFeaturePostView.d.ts +14 -0
- package/dist/types/ModFeaturePostView.js +2 -0
- package/dist/types/ModHideCommunity.d.ts +10 -0
- package/dist/types/ModHideCommunity.js +2 -0
- package/dist/types/ModHideCommunityId.d.ts +1 -0
- package/dist/types/ModHideCommunityId.js +3 -0
- package/dist/types/ModHideCommunityView.d.ts +11 -0
- package/dist/types/ModHideCommunityView.js +2 -0
- package/dist/types/ModLockPost.d.ts +9 -0
- package/dist/types/ModLockPost.js +2 -0
- package/dist/types/ModLockPostId.d.ts +1 -0
- package/dist/types/ModLockPostId.js +3 -0
- package/dist/types/ModLockPostView.d.ts +14 -0
- package/dist/types/ModLockPostView.js +2 -0
- package/dist/types/ModRemoveComment.d.ts +10 -0
- package/dist/types/ModRemoveComment.js +2 -0
- package/dist/types/ModRemoveCommentId.d.ts +1 -0
- package/dist/types/ModRemoveCommentId.js +3 -0
- package/dist/types/ModRemoveCommentView.d.ts +16 -0
- package/dist/types/ModRemoveCommentView.js +2 -0
- package/dist/types/ModRemoveCommunity.d.ts +10 -0
- package/dist/types/ModRemoveCommunity.js +2 -0
- package/dist/types/ModRemoveCommunityId.d.ts +1 -0
- package/dist/types/ModRemoveCommunityId.js +3 -0
- package/dist/types/ModRemoveCommunityView.d.ts +11 -0
- package/dist/types/ModRemoveCommunityView.js +2 -0
- package/dist/types/ModRemovePost.d.ts +10 -0
- package/dist/types/ModRemovePost.js +2 -0
- package/dist/types/ModRemovePostId.d.ts +1 -0
- package/dist/types/ModRemovePostId.js +3 -0
- package/dist/types/ModRemovePostView.d.ts +14 -0
- package/dist/types/ModRemovePostView.js +2 -0
- package/dist/types/ModTransferCommunity.d.ts +9 -0
- package/dist/types/ModTransferCommunity.js +2 -0
- package/dist/types/ModTransferCommunityId.d.ts +1 -0
- package/dist/types/ModTransferCommunityId.js +3 -0
- package/dist/types/ModTransferCommunityView.d.ts +12 -0
- package/dist/types/ModTransferCommunityView.js +2 -0
- package/dist/types/ModlogActionType.d.ts +1 -0
- package/dist/types/ModlogActionType.js +3 -0
- package/dist/types/ModlogCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/ModlogCombinedPaginationCursor.js +3 -0
- package/dist/types/ModlogCombinedView.d.ts +52 -0
- package/dist/types/ModlogCombinedView.js +2 -0
- package/dist/types/PersonAggregates.d.ts +6 -0
- package/dist/types/PersonAggregates.js +2 -0
- package/dist/types/PersonCommentMention.d.ts +13 -0
- package/dist/types/PersonCommentMention.js +2 -0
- package/dist/types/PersonCommentMentionId.d.ts +4 -0
- package/dist/types/PersonCommentMentionId.js +3 -0
- package/dist/types/PersonCommentMentionView.d.ts +27 -0
- package/dist/types/PersonCommentMentionView.js +2 -0
- package/dist/types/PersonContentCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/PersonContentCombinedPaginationCursor.js +3 -0
- package/dist/types/PersonContentCombinedView.d.ts +2 -2
- package/dist/types/PersonMention.d.ts +10 -0
- package/dist/types/PersonMention.js +2 -0
- package/dist/types/PersonMentionId.d.ts +1 -0
- package/dist/types/PersonMentionId.js +3 -0
- package/dist/types/PersonPostMention.d.ts +13 -0
- package/dist/types/PersonPostMention.js +2 -0
- package/dist/types/PersonPostMentionId.d.ts +4 -0
- package/dist/types/PersonPostMentionId.js +3 -0
- package/dist/types/PersonPostMentionView.d.ts +27 -0
- package/dist/types/PersonPostMentionView.js +2 -0
- package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/PersonSavedCombinedPaginationCursor.js +3 -0
- package/dist/types/PersonSavedCombinedView.d.ts +2 -2
- package/dist/types/PostAggregates.d.ts +10 -0
- package/dist/types/PostAggregates.js +2 -0
- package/dist/types/PostPaginationCursor.d.ts +7 -0
- package/dist/types/PostPaginationCursor.js +3 -0
- package/dist/types/PostReportView.d.ts +15 -17
- package/dist/types/PostTags.d.ts +7 -0
- package/dist/types/PostTags.js +2 -0
- package/dist/types/PrivateMessageReportView.d.ts +3 -9
- package/dist/types/RegistrationApplicationView.d.ts +2 -5
- package/dist/types/ReportCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/ReportCombinedPaginationCursor.js +3 -0
- package/dist/types/ReportCombinedView.d.ts +4 -4
- package/dist/types/SearchCombinedPaginationCursor.d.ts +4 -0
- package/dist/types/SearchCombinedPaginationCursor.js +3 -0
- package/dist/types/SearchCombinedView.d.ts +5 -8
- package/dist/types/SiteAggregates.d.ts +12 -0
- package/dist/types/SiteAggregates.js +2 -0
- package/dist/types/SiteView.d.ts +4 -7
- package/dist/types/SortType.d.ts +1 -0
- package/dist/types/SortType.js +3 -0
- package/dist/types/SubscribedType.d.ts +1 -0
- package/dist/types/SubscribedType.js +3 -0
- package/dist/types/VoteView.d.ts +3 -10
- package/package.json +2 -2
package/dist/http.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Controller } from "@tsoa/runtime";
|
|
2
|
-
import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetModlogI, GetMultiCommunityI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListNotificationsI, ListMediaI, ListMultiCommunitiesI, ListPersonContentI, ListPersonHiddenI, ListPersonLikedI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
|
|
2
|
+
import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetModlogI, GetMultiCommunityI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListNotificationsI, ListMediaI, ListMultiCommunitiesI, ListPersonContentI, ListPersonHiddenI, ListPersonLikedI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage, GetFederatedInstancesI } from "./other_types";
|
|
3
3
|
import { AddAdmin } from "./types/AddAdmin";
|
|
4
4
|
import { AddAdminResponse } from "./types/AddAdminResponse";
|
|
5
5
|
import { AddModToCommunity } from "./types/AddModToCommunity";
|
|
@@ -670,7 +670,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
670
670
|
/**
|
|
671
671
|
* @summary Fetch federated instances.
|
|
672
672
|
*/
|
|
673
|
-
getFederatedInstances(options?: RequestOptions): Promise<GetFederatedInstancesResponse>;
|
|
673
|
+
getFederatedInstances(form: GetFederatedInstancesI, options?: RequestOptions): Promise<GetFederatedInstancesResponse>;
|
|
674
674
|
/**
|
|
675
675
|
* @summary List user reports.
|
|
676
676
|
*/
|
package/dist/http.js
CHANGED
|
@@ -805,8 +805,8 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
805
805
|
/**
|
|
806
806
|
* @summary Fetch federated instances.
|
|
807
807
|
*/
|
|
808
|
-
async getFederatedInstances(options) {
|
|
809
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances",
|
|
808
|
+
async getFederatedInstances(form, options) {
|
|
809
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", form, options);
|
|
810
810
|
}
|
|
811
811
|
/**
|
|
812
812
|
* @summary List user reports.
|
|
@@ -1889,7 +1889,8 @@ __decorate([
|
|
|
1889
1889
|
__decorate([
|
|
1890
1890
|
(0, runtime_1.Get)("/federated_instances"),
|
|
1891
1891
|
(0, runtime_1.Tags)("Miscellaneous"),
|
|
1892
|
-
__param(0, (0, runtime_1.
|
|
1892
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1893
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1893
1894
|
], LemmyHttp.prototype, "getFederatedInstances", null);
|
|
1894
1895
|
__decorate([
|
|
1895
1896
|
(0, runtime_1.Security)("bearerAuth"),
|
package/dist/index.d.ts
CHANGED
|
@@ -5,11 +5,29 @@ 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 { AdminAllowInstance } from "./types/AdminAllowInstance";
|
|
9
|
+
export { AdminAllowInstanceId } from "./types/AdminAllowInstanceId";
|
|
8
10
|
export { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
|
|
11
|
+
export { AdminAllowInstanceView } from "./types/AdminAllowInstanceView";
|
|
12
|
+
export { AdminBlockInstance } from "./types/AdminBlockInstance";
|
|
13
|
+
export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
|
|
9
14
|
export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
|
15
|
+
export { AdminBlockInstanceView } from "./types/AdminBlockInstanceView";
|
|
10
16
|
export { AdminListUsers } from "./types/AdminListUsers";
|
|
11
17
|
export { AdminListUsersResponse } from "./types/AdminListUsersResponse";
|
|
12
|
-
export {} from "./types/
|
|
18
|
+
export { AdminPurgeComment } from "./types/AdminPurgeComment";
|
|
19
|
+
export { AdminPurgeCommentId } from "./types/AdminPurgeCommentId";
|
|
20
|
+
export { AdminPurgeCommentView } from "./types/AdminPurgeCommentView";
|
|
21
|
+
export { AdminPurgeCommunity } from "./types/AdminPurgeCommunity";
|
|
22
|
+
export { AdminPurgeCommunityId } from "./types/AdminPurgeCommunityId";
|
|
23
|
+
export { AdminPurgeCommunityView } from "./types/AdminPurgeCommunityView";
|
|
24
|
+
export { AdminPurgePerson } from "./types/AdminPurgePerson";
|
|
25
|
+
export { AdminPurgePersonId } from "./types/AdminPurgePersonId";
|
|
26
|
+
export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
|
|
27
|
+
export { AdminPurgePost } from "./types/AdminPurgePost";
|
|
28
|
+
export { AdminPurgePostId } from "./types/AdminPurgePostId";
|
|
29
|
+
export { AdminPurgePostView } from "./types/AdminPurgePostView";
|
|
30
|
+
export { AllLemmyErrors } from "./types/AllLemmyErrors";
|
|
13
31
|
export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
|
|
14
32
|
export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
|
|
15
33
|
export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
|
|
@@ -22,7 +40,11 @@ export { CaptchaResponse } from "./types/CaptchaResponse";
|
|
|
22
40
|
export { ChangePassword } from "./types/ChangePassword";
|
|
23
41
|
export { Comment } from "./types/Comment";
|
|
24
42
|
export { CommentActions } from "./types/CommentActions";
|
|
43
|
+
export { CommentAggregates } from "./types/CommentAggregates";
|
|
25
44
|
export { CommentId } from "./types/CommentId";
|
|
45
|
+
export { CommentReply } from "./types/CommentReply";
|
|
46
|
+
export { CommentReplyId } from "./types/CommentReplyId";
|
|
47
|
+
export { CommentReplyView } from "./types/CommentReplyView";
|
|
26
48
|
export { CommentReport } from "./types/CommentReport";
|
|
27
49
|
export { CommentReportId } from "./types/CommentReportId";
|
|
28
50
|
export { CommentReportResponse } from "./types/CommentReportResponse";
|
|
@@ -33,6 +55,7 @@ export { CommentSortType } from "./types/CommentSortType";
|
|
|
33
55
|
export { CommentView } from "./types/CommentView";
|
|
34
56
|
export { Community } from "./types/Community";
|
|
35
57
|
export { CommunityActions } from "./types/CommunityActions";
|
|
58
|
+
export { CommunityAggregates } from "./types/CommunityAggregates";
|
|
36
59
|
export { CommunityFollowerState } from "./types/CommunityFollowerState";
|
|
37
60
|
export { CommunityFollowerView } from "./types/CommunityFollowerView";
|
|
38
61
|
export { CommunityId } from "./types/CommunityId";
|
|
@@ -93,6 +116,7 @@ export { FeaturePost } from "./types/FeaturePost";
|
|
|
93
116
|
export { FederatedInstanceView } from "./types/FederatedInstanceView";
|
|
94
117
|
export { FederationAllowList } from "./types/FederationAllowList";
|
|
95
118
|
export { FederationBlockList } from "./types/FederationBlockList";
|
|
119
|
+
export { FederationError } from "./types/FederationError";
|
|
96
120
|
export { FederationMode } from "./types/FederationMode";
|
|
97
121
|
export { FederationQueueState } from "./types/FederationQueueState";
|
|
98
122
|
export { FollowCommunity } from "./types/FollowCommunity";
|
|
@@ -133,6 +157,9 @@ export { HidePost } from "./types/HidePost";
|
|
|
133
157
|
export { ImageDetails } from "./types/ImageDetails";
|
|
134
158
|
export { ImageGetParams } from "./types/ImageGetParams";
|
|
135
159
|
export { ImageProxyParams } from "./types/ImageProxyParams";
|
|
160
|
+
export { InboxCombinedPaginationCursor } from "./types/InboxCombinedPaginationCursor";
|
|
161
|
+
export { InboxCombinedView } from "./types/InboxCombinedView";
|
|
162
|
+
export { InboxDataType } from "./types/InboxDataType";
|
|
136
163
|
export { Instance } from "./types/Instance";
|
|
137
164
|
export { InstanceActions } from "./types/InstanceActions";
|
|
138
165
|
export { InstanceId } from "./types/InstanceId";
|
|
@@ -185,6 +212,7 @@ export { LocalSiteUrlBlocklist } from "./types/LocalSiteUrlBlocklist";
|
|
|
185
212
|
export { LocalUser } from "./types/LocalUser";
|
|
186
213
|
export { LocalUserId } from "./types/LocalUserId";
|
|
187
214
|
export { LocalUserView } from "./types/LocalUserView";
|
|
215
|
+
export { LocalUserVoteDisplayMode } from "./types/LocalUserVoteDisplayMode";
|
|
188
216
|
export { LockComment } from "./types/LockComment";
|
|
189
217
|
export { LockPost } from "./types/LockPost";
|
|
190
218
|
export { Login } from "./types/Login";
|
|
@@ -193,8 +221,47 @@ export { LoginToken } from "./types/LoginToken";
|
|
|
193
221
|
export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
|
194
222
|
export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
|
195
223
|
export { MarkPostAsRead } from "./types/MarkPostAsRead";
|
|
224
|
+
export { ModAdd } from "./types/ModAdd";
|
|
225
|
+
export { ModAddCommunity } from "./types/ModAddCommunity";
|
|
226
|
+
export { ModAddCommunityId } from "./types/ModAddCommunityId";
|
|
227
|
+
export { ModAddCommunityView } from "./types/ModAddCommunityView";
|
|
228
|
+
export { ModAddId } from "./types/ModAddId";
|
|
229
|
+
export { ModAddView } from "./types/ModAddView";
|
|
230
|
+
export { ModBan } from "./types/ModBan";
|
|
231
|
+
export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
|
|
232
|
+
export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
|
|
233
|
+
export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
|
|
234
|
+
export { ModBanId } from "./types/ModBanId";
|
|
235
|
+
export { ModBanView } from "./types/ModBanView";
|
|
236
|
+
export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
|
|
237
|
+
export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
|
|
238
|
+
export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
|
|
196
239
|
export { ModEditPost } from "./types/ModEditPost";
|
|
240
|
+
export { ModFeaturePost } from "./types/ModFeaturePost";
|
|
241
|
+
export { ModFeaturePostId } from "./types/ModFeaturePostId";
|
|
242
|
+
export { ModFeaturePostView } from "./types/ModFeaturePostView";
|
|
243
|
+
export { ModHideCommunity } from "./types/ModHideCommunity";
|
|
244
|
+
export { ModHideCommunityId } from "./types/ModHideCommunityId";
|
|
245
|
+
export { ModHideCommunityView } from "./types/ModHideCommunityView";
|
|
246
|
+
export { ModLockPost } from "./types/ModLockPost";
|
|
247
|
+
export { ModLockPostId } from "./types/ModLockPostId";
|
|
248
|
+
export { ModLockPostView } from "./types/ModLockPostView";
|
|
249
|
+
export { ModRemoveComment } from "./types/ModRemoveComment";
|
|
250
|
+
export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
|
|
251
|
+
export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
|
|
252
|
+
export { ModRemoveCommunity } from "./types/ModRemoveCommunity";
|
|
253
|
+
export { ModRemoveCommunityId } from "./types/ModRemoveCommunityId";
|
|
254
|
+
export { ModRemoveCommunityView } from "./types/ModRemoveCommunityView";
|
|
255
|
+
export { ModRemovePost } from "./types/ModRemovePost";
|
|
256
|
+
export { ModRemovePostId } from "./types/ModRemovePostId";
|
|
257
|
+
export { ModRemovePostView } from "./types/ModRemovePostView";
|
|
258
|
+
export { ModTransferCommunity } from "./types/ModTransferCommunity";
|
|
259
|
+
export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
|
|
260
|
+
export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
|
|
197
261
|
export { Modlog } from "./types/Modlog";
|
|
262
|
+
export { ModlogActionType } from "./types/ModlogActionType";
|
|
263
|
+
export { ModlogCombinedPaginationCursor } from "./types/ModlogCombinedPaginationCursor";
|
|
264
|
+
export { ModlogCombinedView } from "./types/ModlogCombinedView";
|
|
198
265
|
export { ModlogId } from "./types/ModlogId";
|
|
199
266
|
export { ModlogKind } from "./types/ModlogKind";
|
|
200
267
|
export { ModlogView } from "./types/ModlogView";
|
|
@@ -223,27 +290,41 @@ export { PendingFollow } from "./types/PendingFollow";
|
|
|
223
290
|
export { PendingFollowerView } from "./types/PendingFollowerView";
|
|
224
291
|
export { Person } from "./types/Person";
|
|
225
292
|
export { PersonActions } from "./types/PersonActions";
|
|
293
|
+
export { PersonAggregates } from "./types/PersonAggregates";
|
|
294
|
+
export { PersonCommentMention } from "./types/PersonCommentMention";
|
|
295
|
+
export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
|
|
296
|
+
export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
|
|
297
|
+
export { PersonContentCombinedPaginationCursor } from "./types/PersonContentCombinedPaginationCursor";
|
|
226
298
|
export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
|
|
227
299
|
export { PersonContentType } from "./types/PersonContentType";
|
|
228
300
|
export { PersonId } from "./types/PersonId";
|
|
229
301
|
export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
|
|
302
|
+
export { PersonMention } from "./types/PersonMention";
|
|
303
|
+
export { PersonMentionId } from "./types/PersonMentionId";
|
|
304
|
+
export { PersonPostMention } from "./types/PersonPostMention";
|
|
305
|
+
export { PersonPostMentionId } from "./types/PersonPostMentionId";
|
|
306
|
+
export { PersonPostMentionView } from "./types/PersonPostMentionView";
|
|
230
307
|
export { PersonResponse } from "./types/PersonResponse";
|
|
308
|
+
export { PersonSavedCombinedPaginationCursor } from "./types/PersonSavedCombinedPaginationCursor";
|
|
231
309
|
export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
|
|
232
310
|
export { PersonView } from "./types/PersonView";
|
|
233
311
|
export { PluginMetadata } from "./types/PluginMetadata";
|
|
234
312
|
export { Post } from "./types/Post";
|
|
235
313
|
export { PostActions } from "./types/PostActions";
|
|
314
|
+
export { PostAggregates } from "./types/PostAggregates";
|
|
236
315
|
export { PostFeatureType } from "./types/PostFeatureType";
|
|
237
316
|
export { PostId } from "./types/PostId";
|
|
238
317
|
export { PostListingMode } from "./types/PostListingMode";
|
|
239
318
|
export { PostNotificationsMode } from "./types/PostNotificationsMode";
|
|
240
319
|
export { PostOrCommentOrPrivateMessage } from "./types/PostOrCommentOrPrivateMessage";
|
|
320
|
+
export { PostPaginationCursor } from "./types/PostPaginationCursor";
|
|
241
321
|
export { PostReport } from "./types/PostReport";
|
|
242
322
|
export { PostReportId } from "./types/PostReportId";
|
|
243
323
|
export { PostReportResponse } from "./types/PostReportResponse";
|
|
244
324
|
export { PostReportView } from "./types/PostReportView";
|
|
245
325
|
export { PostResponse } from "./types/PostResponse";
|
|
246
326
|
export { PostSortType } from "./types/PostSortType";
|
|
327
|
+
export { PostTags } from "./types/PostTags";
|
|
247
328
|
export { PostView } from "./types/PostView";
|
|
248
329
|
export { PrivateMessage } from "./types/PrivateMessage";
|
|
249
330
|
export { PrivateMessageId } from "./types/PrivateMessageId";
|
|
@@ -268,6 +349,7 @@ export { RegistrationMode } from "./types/RegistrationMode";
|
|
|
268
349
|
export { RemoveComment } from "./types/RemoveComment";
|
|
269
350
|
export { RemoveCommunity } from "./types/RemoveCommunity";
|
|
270
351
|
export { RemovePost } from "./types/RemovePost";
|
|
352
|
+
export { ReportCombinedPaginationCursor } from "./types/ReportCombinedPaginationCursor";
|
|
271
353
|
export { ReportCombinedView } from "./types/ReportCombinedView";
|
|
272
354
|
export { ReportType } from "./types/ReportType";
|
|
273
355
|
export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
|
@@ -280,15 +362,19 @@ export { SaveComment } from "./types/SaveComment";
|
|
|
280
362
|
export { SavePost } from "./types/SavePost";
|
|
281
363
|
export { SaveUserSettings } from "./types/SaveUserSettings";
|
|
282
364
|
export { Search } from "./types/Search";
|
|
365
|
+
export { SearchCombinedPaginationCursor } from "./types/SearchCombinedPaginationCursor";
|
|
283
366
|
export { SearchCombinedView } from "./types/SearchCombinedView";
|
|
284
367
|
export { SearchResponse } from "./types/SearchResponse";
|
|
285
368
|
export { SearchSortType } from "./types/SearchSortType";
|
|
286
369
|
export { SearchType } from "./types/SearchType";
|
|
287
370
|
export { SensitiveString } from "./types/SensitiveString";
|
|
288
371
|
export { Site } from "./types/Site";
|
|
372
|
+
export { SiteAggregates } from "./types/SiteAggregates";
|
|
289
373
|
export { SiteId } from "./types/SiteId";
|
|
290
374
|
export { SiteResponse } from "./types/SiteResponse";
|
|
291
375
|
export { SiteView } from "./types/SiteView";
|
|
376
|
+
export { SortType } from "./types/SortType";
|
|
377
|
+
export { SubscribedType } from "./types/SubscribedType";
|
|
292
378
|
export { SuccessResponse } from "./types/SuccessResponse";
|
|
293
379
|
export { Tag } from "./types/Tag";
|
|
294
380
|
export { TagId } from "./types/TagId";
|
package/dist/index.js
CHANGED
|
@@ -14,4 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.AllLemmyErrors = void 0;
|
|
17
18
|
__exportStar(require("./http"), exports);
|
|
19
|
+
var AllLemmyErrors_1 = require("./types/AllLemmyErrors");
|
|
20
|
+
Object.defineProperty(exports, "AllLemmyErrors", { enumerable: true, get: function () { return AllLemmyErrors_1.AllLemmyErrors; } });
|
package/dist/other_types.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ import { ListReports } from "./types/ListReports";
|
|
|
31
31
|
import { ListTaglines } from "./types/ListTaglines";
|
|
32
32
|
import { ResolveObject } from "./types/ResolveObject";
|
|
33
33
|
import { Search } from "./types/Search";
|
|
34
|
+
import { GetFederatedInstances } from "./types/GetFederatedInstances";
|
|
34
35
|
export declare const VERSION = "v4";
|
|
35
36
|
export interface UploadImage {
|
|
36
37
|
image: File | Buffer;
|
|
@@ -101,3 +102,5 @@ export interface ListMultiCommunitiesI extends ListMultiCommunities {
|
|
|
101
102
|
}
|
|
102
103
|
export interface GetMultiCommunityI extends GetMultiCommunity {
|
|
103
104
|
}
|
|
105
|
+
export interface GetFederatedInstancesI extends GetFederatedInstances {
|
|
106
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AdminAllowInstanceId } from "./AdminAllowInstanceId";
|
|
2
|
+
import type { InstanceId } from "./InstanceId";
|
|
3
|
+
import type { PersonId } from "./PersonId";
|
|
4
|
+
export type AdminAllowInstance = {
|
|
5
|
+
id: AdminAllowInstanceId;
|
|
6
|
+
instance_id: InstanceId;
|
|
7
|
+
admin_person_id: PersonId;
|
|
8
|
+
allowed: boolean;
|
|
9
|
+
reason?: string;
|
|
10
|
+
published: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AdminAllowInstanceId = number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AdminAllowInstance } from "./AdminAllowInstance";
|
|
2
|
+
import type { Instance } from "./Instance";
|
|
3
|
+
import type { Person } from "./Person";
|
|
4
|
+
/**
|
|
5
|
+
* When an admin purges a post.
|
|
6
|
+
*/
|
|
7
|
+
export type AdminAllowInstanceView = {
|
|
8
|
+
admin_allow_instance: AdminAllowInstance;
|
|
9
|
+
instance: Instance;
|
|
10
|
+
admin?: Person;
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AdminBlockInstanceId } from "./AdminBlockInstanceId";
|
|
2
|
+
import type { InstanceId } from "./InstanceId";
|
|
3
|
+
import type { PersonId } from "./PersonId";
|
|
4
|
+
export type AdminBlockInstance = {
|
|
5
|
+
id: AdminBlockInstanceId;
|
|
6
|
+
instance_id: InstanceId;
|
|
7
|
+
admin_person_id: PersonId;
|
|
8
|
+
blocked: boolean;
|
|
9
|
+
reason?: string;
|
|
10
|
+
expires?: string;
|
|
11
|
+
published: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AdminBlockInstanceId = number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AdminBlockInstance } from "./AdminBlockInstance";
|
|
2
|
+
import type { Instance } from "./Instance";
|
|
3
|
+
import type { Person } from "./Person";
|
|
4
|
+
/**
|
|
5
|
+
* When an admin purges a post.
|
|
6
|
+
*/
|
|
7
|
+
export type AdminBlockInstanceView = {
|
|
8
|
+
admin_block_instance: AdminBlockInstance;
|
|
9
|
+
instance: Instance;
|
|
10
|
+
admin?: Person;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AdminPurgeCommentId = number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AdminPurgeComment } from "./AdminPurgeComment";
|
|
2
|
+
import type { Person } from "./Person";
|
|
3
|
+
import type { Post } from "./Post";
|
|
4
|
+
/**
|
|
5
|
+
* When an admin purges a comment.
|
|
6
|
+
*/
|
|
7
|
+
export type AdminPurgeCommentView = {
|
|
8
|
+
admin_purge_comment: AdminPurgeComment;
|
|
9
|
+
admin?: Person;
|
|
10
|
+
post: Post;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AdminPurgeCommunityId = number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AdminPurgeCommunity } from "./AdminPurgeCommunity";
|
|
2
|
+
import type { Person } from "./Person";
|
|
3
|
+
/**
|
|
4
|
+
* When an admin purges a community.
|
|
5
|
+
*/
|
|
6
|
+
export type AdminPurgeCommunityView = {
|
|
7
|
+
admin_purge_community: AdminPurgeCommunity;
|
|
8
|
+
admin?: Person;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AdminPurgePersonId = number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AdminPurgePostId = number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AdminPurgePost } from "./AdminPurgePost";
|
|
2
|
+
import type { Community } from "./Community";
|
|
3
|
+
import type { Person } from "./Person";
|
|
4
|
+
/**
|
|
5
|
+
* When an admin purges a post.
|
|
6
|
+
*/
|
|
7
|
+
export type AdminPurgePostView = {
|
|
8
|
+
admin_purge_post: AdminPurgePost;
|
|
9
|
+
admin?: Person;
|
|
10
|
+
community: Community;
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CommentId } from "./CommentId";
|
|
2
|
+
import type { CommentReplyId } from "./CommentReplyId";
|
|
3
|
+
import type { PersonId } from "./PersonId";
|
|
4
|
+
export interface CommentReply {
|
|
5
|
+
id: CommentReplyId;
|
|
6
|
+
recipient_id: PersonId;
|
|
7
|
+
comment_id: CommentId;
|
|
8
|
+
read: boolean;
|
|
9
|
+
published: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CommentReplyId = number;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Comment } from "./Comment";
|
|
2
|
+
import type { CommentActions } from "./CommentActions";
|
|
3
|
+
import type { CommentReply } from "./CommentReply";
|
|
4
|
+
import type { Community } from "./Community";
|
|
5
|
+
import type { CommunityActions } from "./CommunityActions";
|
|
6
|
+
import type { InstanceActions } from "./InstanceActions";
|
|
7
|
+
import type { Person } from "./Person";
|
|
8
|
+
import type { PersonActions } from "./PersonActions";
|
|
9
|
+
import type { Post } from "./Post";
|
|
10
|
+
/**
|
|
11
|
+
* A comment reply view.
|
|
12
|
+
*/
|
|
13
|
+
export type CommentReplyView = {
|
|
14
|
+
comment_reply: CommentReply;
|
|
15
|
+
recipient: Person;
|
|
16
|
+
comment: Comment;
|
|
17
|
+
creator: Person;
|
|
18
|
+
post: Post;
|
|
19
|
+
community: Community;
|
|
20
|
+
community_actions?: CommunityActions;
|
|
21
|
+
comment_actions?: CommentActions;
|
|
22
|
+
person_actions?: PersonActions;
|
|
23
|
+
instance_actions?: InstanceActions;
|
|
24
|
+
creator_community_actions?: CommunityActions;
|
|
25
|
+
creator_is_admin: boolean;
|
|
26
|
+
can_mod: boolean;
|
|
27
|
+
};
|
|
@@ -1,29 +1,24 @@
|
|
|
1
1
|
import type { Comment } from "./Comment";
|
|
2
|
-
import type {
|
|
2
|
+
import type { CommentAggregates } from "./CommentAggregates";
|
|
3
3
|
import type { CommentReport } from "./CommentReport";
|
|
4
4
|
import type { Community } from "./Community";
|
|
5
|
-
import type { CommunityActions } from "./CommunityActions";
|
|
6
5
|
import type { Person } from "./Person";
|
|
7
|
-
import type { PersonActions } from "./PersonActions";
|
|
8
6
|
import type { Post } from "./Post";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*/
|
|
12
|
-
export type CommentReportView = {
|
|
7
|
+
import type { SubscribedType } from "./SubscribedType";
|
|
8
|
+
export interface CommentReportView {
|
|
13
9
|
comment_report: CommentReport;
|
|
14
10
|
comment: Comment;
|
|
15
11
|
post: Post;
|
|
16
12
|
community: Community;
|
|
17
13
|
creator: Person;
|
|
18
14
|
comment_creator: Person;
|
|
19
|
-
|
|
20
|
-
resolver?: Person;
|
|
21
|
-
person_actions?: PersonActions;
|
|
22
|
-
community_actions?: CommunityActions;
|
|
23
|
-
creator_is_admin: boolean;
|
|
24
|
-
creator_is_moderator: boolean;
|
|
25
|
-
creator_banned: boolean;
|
|
26
|
-
creator_ban_expires_at?: string;
|
|
15
|
+
counts: CommentAggregates;
|
|
27
16
|
creator_banned_from_community: boolean;
|
|
28
|
-
|
|
29
|
-
|
|
17
|
+
creator_is_moderator: boolean;
|
|
18
|
+
creator_is_admin: boolean;
|
|
19
|
+
creator_blocked: boolean;
|
|
20
|
+
subscribed: SubscribedType;
|
|
21
|
+
saved: boolean;
|
|
22
|
+
my_vote?: number;
|
|
23
|
+
resolver?: Person;
|
|
24
|
+
}
|