lemmy-js-client 1.0.0-bool-vote.2 → 1.0.0-change-api-routes.1
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 +4 -5
- package/dist/http.js +29 -28
- package/dist/index.d.ts +11 -59
- package/dist/index.js +3 -0
- package/dist/other_types.d.ts +3 -0
- package/dist/types/AuthenticateWithOauth.d.ts +4 -0
- package/dist/types/ChangePassword.d.ts +4 -0
- package/dist/types/CommunityActions.d.ts +4 -4
- package/dist/types/CreateCommentLike.d.ts +3 -0
- package/dist/types/CreatePostLike.d.ts +3 -0
- package/dist/types/FederatedInstanceView.d.ts +12 -0
- package/dist/types/FederationAllowList.d.ts +4 -0
- package/dist/types/FederationBlockList.d.ts +0 -2
- package/dist/types/FederationBlockList.js +1 -0
- package/dist/types/FederationQueueState.d.ts +18 -0
- package/dist/types/GetFederatedInstances.d.ts +9 -0
- package/dist/types/GetFederatedInstancesKind.d.ts +1 -0
- package/dist/types/GetFederatedInstancesResponse.d.ts +5 -5
- package/dist/types/GetModlog.d.ts +2 -2
- package/dist/types/GetModlogResponse.d.ts +2 -2
- package/dist/types/GetPosts.d.ts +1 -0
- package/dist/types/Login.d.ts +4 -0
- package/dist/types/MarkManyPostsAsRead.d.ts +1 -0
- package/dist/types/Modlog.d.ts +10 -0
- package/dist/types/ModlogId.d.ts +1 -0
- package/dist/types/ModlogKind.d.ts +4 -0
- package/dist/types/ModlogView.d.ts +15 -0
- package/dist/types/MultiCommunityEntry.d.ts +6 -0
- package/dist/types/Notification.d.ts +2 -20
- package/dist/types/NotificationData.d.ts +6 -33
- package/dist/types/PersonContentCombinedView.d.ts +2 -2
- package/dist/types/PersonLikedCombinedView.d.ts +2 -2
- package/dist/types/PersonSavedCombinedView.d.ts +2 -2
- package/dist/types/PostOrCommentOrPrivateMessage.d.ts +3 -3
- package/dist/types/Register.d.ts +4 -0
- package/dist/types/ReportCombinedView.d.ts +4 -4
- package/dist/types/SearchCombinedView.d.ts +5 -5
- package/dist/types/UntranslatedError.d.ts +3 -1
- package/dist/types/UserSettingsBackup.d.ts +2 -0
- package/dist/types/VoteView.d.ts +3 -0
- package/package.json +4 -4
- package/dist/types/AdminAdd.d.ts +0 -12
- package/dist/types/AdminAddId.d.ts +0 -1
- package/dist/types/AdminAddView.d.ts +0 -10
- package/dist/types/AdminAllowInstance.d.ts +0 -11
- package/dist/types/AdminAllowInstanceId.d.ts +0 -1
- package/dist/types/AdminAllowInstanceView.d.ts +0 -11
- package/dist/types/AdminBan.d.ts +0 -16
- package/dist/types/AdminBanId.d.ts +0 -1
- package/dist/types/AdminBanView.d.ts +0 -10
- package/dist/types/AdminBlockInstance.d.ts +0 -12
- package/dist/types/AdminBlockInstance.js +0 -2
- package/dist/types/AdminBlockInstanceId.d.ts +0 -1
- package/dist/types/AdminBlockInstanceView.d.ts +0 -11
- package/dist/types/AdminBlockInstanceView.js +0 -2
- package/dist/types/AdminPurgeComment.d.ts +0 -13
- package/dist/types/AdminPurgeComment.js +0 -2
- package/dist/types/AdminPurgeCommentId.d.ts +0 -1
- package/dist/types/AdminPurgeCommentId.js +0 -3
- package/dist/types/AdminPurgeCommentView.d.ts +0 -11
- package/dist/types/AdminPurgeCommentView.js +0 -2
- package/dist/types/AdminPurgeCommunity.d.ts +0 -11
- package/dist/types/AdminPurgeCommunity.js +0 -2
- package/dist/types/AdminPurgeCommunityId.d.ts +0 -1
- package/dist/types/AdminPurgeCommunityId.js +0 -3
- package/dist/types/AdminPurgeCommunityView.d.ts +0 -9
- package/dist/types/AdminPurgeCommunityView.js +0 -2
- package/dist/types/AdminPurgePerson.d.ts +0 -11
- package/dist/types/AdminPurgePerson.js +0 -2
- package/dist/types/AdminPurgePersonId.d.ts +0 -1
- package/dist/types/AdminPurgePersonId.js +0 -3
- package/dist/types/AdminPurgePersonView.d.ts +0 -9
- package/dist/types/AdminPurgePersonView.js +0 -2
- package/dist/types/AdminPurgePost.d.ts +0 -13
- package/dist/types/AdminPurgePost.js +0 -2
- package/dist/types/AdminPurgePostId.d.ts +0 -1
- package/dist/types/AdminPurgePostId.js +0 -3
- package/dist/types/AdminPurgePostView.d.ts +0 -11
- package/dist/types/AdminPurgePostView.js +0 -2
- package/dist/types/AdminRemoveCommunity.d.ts +0 -14
- package/dist/types/AdminRemoveCommunity.js +0 -2
- package/dist/types/AdminRemoveCommunityId.d.ts +0 -1
- package/dist/types/AdminRemoveCommunityId.js +0 -3
- package/dist/types/AdminRemoveCommunityView.d.ts +0 -11
- package/dist/types/AdminRemoveCommunityView.js +0 -2
- package/dist/types/BanFromCommunityResponse.d.ts +0 -8
- package/dist/types/BanFromCommunityResponse.js +0 -2
- package/dist/types/FederatedInstances.d.ts +0 -9
- package/dist/types/FederatedInstances.js +0 -2
- package/dist/types/ModAddToCommunity.d.ts +0 -14
- package/dist/types/ModAddToCommunity.js +0 -2
- package/dist/types/ModAddToCommunityId.d.ts +0 -1
- package/dist/types/ModAddToCommunityId.js +0 -3
- package/dist/types/ModAddToCommunityView.d.ts +0 -12
- package/dist/types/ModAddToCommunityView.js +0 -2
- package/dist/types/ModBanFromCommunity.d.ts +0 -16
- package/dist/types/ModBanFromCommunity.js +0 -2
- package/dist/types/ModBanFromCommunityId.d.ts +0 -1
- package/dist/types/ModBanFromCommunityId.js +0 -3
- package/dist/types/ModBanFromCommunityView.d.ts +0 -12
- package/dist/types/ModBanFromCommunityView.js +0 -2
- package/dist/types/ModChangeCommunityVisibility.d.ts +0 -11
- package/dist/types/ModChangeCommunityVisibility.js +0 -2
- package/dist/types/ModChangeCommunityVisibilityId.d.ts +0 -1
- package/dist/types/ModChangeCommunityVisibilityId.js +0 -3
- package/dist/types/ModChangeCommunityVisibilityView.d.ts +0 -11
- package/dist/types/ModChangeCommunityVisibilityView.js +0 -2
- package/dist/types/ModFeaturePost.d.ts +0 -14
- package/dist/types/ModFeaturePost.js +0 -2
- package/dist/types/ModFeaturePostId.d.ts +0 -1
- package/dist/types/ModFeaturePostId.js +0 -3
- package/dist/types/ModFeaturePostView.d.ts +0 -14
- package/dist/types/ModFeaturePostView.js +0 -2
- package/dist/types/ModLockComment.d.ts +0 -14
- package/dist/types/ModLockComment.js +0 -2
- package/dist/types/ModLockCommentId.d.ts +0 -1
- package/dist/types/ModLockCommentId.js +0 -3
- package/dist/types/ModLockCommentView.d.ts +0 -16
- package/dist/types/ModLockCommentView.js +0 -2
- package/dist/types/ModLockPost.d.ts +0 -14
- package/dist/types/ModLockPost.js +0 -2
- package/dist/types/ModLockPostId.d.ts +0 -1
- package/dist/types/ModLockPostId.js +0 -3
- package/dist/types/ModLockPostView.d.ts +0 -14
- package/dist/types/ModLockPostView.js +0 -2
- package/dist/types/ModRemoveComment.d.ts +0 -14
- package/dist/types/ModRemoveComment.js +0 -2
- package/dist/types/ModRemoveCommentId.d.ts +0 -1
- package/dist/types/ModRemoveCommentId.js +0 -3
- package/dist/types/ModRemoveCommentView.d.ts +0 -16
- package/dist/types/ModRemoveCommentView.js +0 -2
- package/dist/types/ModRemovePost.d.ts +0 -14
- package/dist/types/ModRemovePost.js +0 -2
- package/dist/types/ModRemovePostId.d.ts +0 -1
- package/dist/types/ModRemovePostId.js +0 -3
- package/dist/types/ModRemovePostView.d.ts +0 -14
- package/dist/types/ModRemovePostView.js +0 -2
- package/dist/types/ModTransferCommunity.d.ts +0 -13
- package/dist/types/ModTransferCommunity.js +0 -2
- package/dist/types/ModTransferCommunityId.d.ts +0 -1
- package/dist/types/ModTransferCommunityId.js +0 -3
- package/dist/types/ModTransferCommunityView.d.ts +0 -12
- package/dist/types/ModTransferCommunityView.js +0 -2
- package/dist/types/ModlogActionType.d.ts +0 -4
- package/dist/types/ModlogActionType.js +0 -3
- package/dist/types/ModlogCombinedView.d.ts +0 -55
- package/dist/types/ModlogCombinedView.js +0 -2
- /package/dist/types/{AdminAdd.js → FederatedInstanceView.js} +0 -0
- /package/dist/types/{AdminAddId.js → FederationAllowList.js} +0 -0
- /package/dist/types/{AdminAddView.js → FederationQueueState.js} +0 -0
- /package/dist/types/{AdminAllowInstance.js → GetFederatedInstances.js} +0 -0
- /package/dist/types/{AdminAllowInstanceId.js → GetFederatedInstancesKind.js} +0 -0
- /package/dist/types/{AdminAllowInstanceView.js → Modlog.js} +0 -0
- /package/dist/types/{AdminBanId.js → ModlogId.js} +0 -0
- /package/dist/types/{AdminBlockInstanceId.js → ModlogKind.js} +0 -0
- /package/dist/types/{AdminBan.js → ModlogView.js} +0 -0
- /package/dist/types/{AdminBanView.js → MultiCommunityEntry.js} +0 -0
package/dist/http.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
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";
|
|
6
6
|
import { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
|
|
7
7
|
import { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
|
|
8
8
|
import { BanFromCommunity } from "./types/BanFromCommunity";
|
|
9
|
-
import { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
|
|
10
9
|
import { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
|
11
10
|
import { BanPerson } from "./types/BanPerson";
|
|
12
11
|
import { BlockCommunity } from "./types/BlockCommunity";
|
|
@@ -302,7 +301,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
302
301
|
/**
|
|
303
302
|
* @summary Ban a user from a community.
|
|
304
303
|
*/
|
|
305
|
-
banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<
|
|
304
|
+
banFromCommunity(form: BanFromCommunity, options?: RequestOptions): Promise<PersonResponse>;
|
|
306
305
|
/**
|
|
307
306
|
* @summary Add a moderator to your community.
|
|
308
307
|
*/
|
|
@@ -520,7 +519,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
520
519
|
*/
|
|
521
520
|
passwordChangeAfterReset(form: PasswordChangeAfterReset, options?: RequestOptions): Promise<SuccessResponse>;
|
|
522
521
|
/**
|
|
523
|
-
* @summary Mark all
|
|
522
|
+
* @summary Mark all notifications as read.
|
|
524
523
|
*/
|
|
525
524
|
markAllNotificationsAsRead(options?: RequestOptions): Promise<SuccessResponse>;
|
|
526
525
|
/**
|
|
@@ -670,7 +669,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
670
669
|
/**
|
|
671
670
|
* @summary Fetch federated instances.
|
|
672
671
|
*/
|
|
673
|
-
getFederatedInstances(options?: RequestOptions): Promise<GetFederatedInstancesResponse>;
|
|
672
|
+
getFederatedInstances(form: GetFederatedInstancesI, options?: RequestOptions): Promise<GetFederatedInstancesResponse>;
|
|
674
673
|
/**
|
|
675
674
|
* @summary List user reports.
|
|
676
675
|
*/
|
package/dist/http.js
CHANGED
|
@@ -112,7 +112,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
112
112
|
* @summary List login tokens for your user
|
|
113
113
|
*/
|
|
114
114
|
async listLogins(options) {
|
|
115
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
|
115
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/login/list", {}, options);
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
118
|
* @summary Returns an error message if your auth token is invalid
|
|
@@ -230,7 +230,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
230
230
|
* @summary Delete a community.
|
|
231
231
|
*/
|
|
232
232
|
async deleteCommunity(form, options) {
|
|
233
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
233
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community", form, options);
|
|
234
234
|
}
|
|
235
235
|
/**
|
|
236
236
|
* @summary Hide a community from public / "All" view. Admins only.
|
|
@@ -308,7 +308,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
308
308
|
* @summary Delete a post.
|
|
309
309
|
*/
|
|
310
310
|
async deletePost(form, options) {
|
|
311
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
311
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/post", form, options);
|
|
312
312
|
}
|
|
313
313
|
/**
|
|
314
314
|
* @summary A moderator remove for a post.
|
|
@@ -404,7 +404,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
404
404
|
* @summary Delete a comment.
|
|
405
405
|
*/
|
|
406
406
|
async deleteComment(form, options) {
|
|
407
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
407
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/comment", form, options);
|
|
408
408
|
}
|
|
409
409
|
/**
|
|
410
410
|
* @summary A moderator remove for a comment.
|
|
@@ -488,7 +488,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
488
488
|
* @summary Delete a private message.
|
|
489
489
|
*/
|
|
490
490
|
async deletePrivateMessage(form, options) {
|
|
491
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
491
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/private_message", form, options);
|
|
492
492
|
}
|
|
493
493
|
/**
|
|
494
494
|
* @summary Create a report for a private message.
|
|
@@ -566,7 +566,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
566
566
|
* @summary Delete your account.
|
|
567
567
|
*/
|
|
568
568
|
async deleteAccount(form, options) {
|
|
569
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
569
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account", form, options);
|
|
570
570
|
}
|
|
571
571
|
/**
|
|
572
572
|
* @summary Reset your password.
|
|
@@ -581,16 +581,16 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
581
581
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_change", form, options);
|
|
582
582
|
}
|
|
583
583
|
/**
|
|
584
|
-
* @summary Mark all
|
|
584
|
+
* @summary Mark all notifications as read.
|
|
585
585
|
*/
|
|
586
586
|
async markAllNotificationsAsRead(options) {
|
|
587
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read/all", {}, options);
|
|
587
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/notification/mark_as_read/all", {}, options);
|
|
588
588
|
}
|
|
589
589
|
/**
|
|
590
590
|
* @summary Mark a notification as read.
|
|
591
591
|
*/
|
|
592
592
|
async markNotificationAsRead(form, options) {
|
|
593
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read", form, options);
|
|
593
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/notification/mark_as_read", form, options);
|
|
594
594
|
}
|
|
595
595
|
/**
|
|
596
596
|
* @summary Save your user settings.
|
|
@@ -614,13 +614,13 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
614
614
|
* @summary Get your unread counts.
|
|
615
615
|
*/
|
|
616
616
|
async getUnreadCount(options) {
|
|
617
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
|
617
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/notification/count", {}, options);
|
|
618
618
|
}
|
|
619
619
|
/**
|
|
620
620
|
* @summary Get your inbox (replies, comment mentions, post mentions, and messages)
|
|
621
621
|
*/
|
|
622
622
|
async listNotifications(form, options) {
|
|
623
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
|
623
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/notification/list", form, options);
|
|
624
624
|
}
|
|
625
625
|
/**
|
|
626
626
|
* @summary Verify your email
|
|
@@ -752,7 +752,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
752
752
|
* @summary Delete a tagline
|
|
753
753
|
*/
|
|
754
754
|
async deleteTagline(form, options) {
|
|
755
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
755
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/admin/tagline", form, options);
|
|
756
756
|
}
|
|
757
757
|
/**
|
|
758
758
|
* @summary List taglines.
|
|
@@ -794,7 +794,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
794
794
|
* @summary Delete an oauth provider method
|
|
795
795
|
*/
|
|
796
796
|
async deleteOAuthProvider(form, options) {
|
|
797
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
|
797
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/oauth_provider", form, options);
|
|
798
798
|
}
|
|
799
799
|
/**
|
|
800
800
|
* @summary Authenticate with OAuth
|
|
@@ -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.
|
|
@@ -1080,7 +1080,7 @@ __decorate([
|
|
|
1080
1080
|
], LemmyHttp.prototype, "importSettings", null);
|
|
1081
1081
|
__decorate([
|
|
1082
1082
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1083
|
-
(0, runtime_1.Get)("/account/
|
|
1083
|
+
(0, runtime_1.Get)("/account/login/list"),
|
|
1084
1084
|
(0, runtime_1.Tags)("Account"),
|
|
1085
1085
|
__param(0, (0, runtime_1.Inject)())
|
|
1086
1086
|
], LemmyHttp.prototype, "listLogins", null);
|
|
@@ -1216,7 +1216,7 @@ __decorate([
|
|
|
1216
1216
|
], LemmyHttp.prototype, "blockCommunity", null);
|
|
1217
1217
|
__decorate([
|
|
1218
1218
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1219
|
-
(0, runtime_1.
|
|
1219
|
+
(0, runtime_1.Delete)("/community"),
|
|
1220
1220
|
(0, runtime_1.Tags)("Community"),
|
|
1221
1221
|
__param(0, (0, runtime_1.Body)()),
|
|
1222
1222
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1309,7 +1309,7 @@ __decorate([
|
|
|
1309
1309
|
], LemmyHttp.prototype, "modEditPost", null);
|
|
1310
1310
|
__decorate([
|
|
1311
1311
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1312
|
-
(0, runtime_1.
|
|
1312
|
+
(0, runtime_1.Delete)("/post"),
|
|
1313
1313
|
(0, runtime_1.Tags)("Post"),
|
|
1314
1314
|
__param(0, (0, runtime_1.Body)()),
|
|
1315
1315
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1422,7 +1422,7 @@ __decorate([
|
|
|
1422
1422
|
], LemmyHttp.prototype, "editComment", null);
|
|
1423
1423
|
__decorate([
|
|
1424
1424
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1425
|
-
(0, runtime_1.
|
|
1425
|
+
(0, runtime_1.Delete)("/comment"),
|
|
1426
1426
|
(0, runtime_1.Tags)("Comment"),
|
|
1427
1427
|
__param(0, (0, runtime_1.Body)()),
|
|
1428
1428
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1523,7 +1523,7 @@ __decorate([
|
|
|
1523
1523
|
], LemmyHttp.prototype, "editPrivateMessage", null);
|
|
1524
1524
|
__decorate([
|
|
1525
1525
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1526
|
-
(0, runtime_1.
|
|
1526
|
+
(0, runtime_1.Delete)("/private_message"),
|
|
1527
1527
|
(0, runtime_1.Tags)("PrivateMessage"),
|
|
1528
1528
|
__param(0, (0, runtime_1.Body)()),
|
|
1529
1529
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1611,7 +1611,7 @@ __decorate([
|
|
|
1611
1611
|
], LemmyHttp.prototype, "getCaptcha", null);
|
|
1612
1612
|
__decorate([
|
|
1613
1613
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1614
|
-
(0, runtime_1.
|
|
1614
|
+
(0, runtime_1.Delete)("/account"),
|
|
1615
1615
|
(0, runtime_1.Tags)("Account"),
|
|
1616
1616
|
__param(0, (0, runtime_1.Body)()),
|
|
1617
1617
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1632,13 +1632,13 @@ __decorate([
|
|
|
1632
1632
|
], LemmyHttp.prototype, "passwordChangeAfterReset", null);
|
|
1633
1633
|
__decorate([
|
|
1634
1634
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1635
|
-
(0, runtime_1.Post)("/account/mark_as_read/all"),
|
|
1635
|
+
(0, runtime_1.Post)("/account/notification/mark_as_read/all"),
|
|
1636
1636
|
(0, runtime_1.Tags)("Account"),
|
|
1637
1637
|
__param(0, (0, runtime_1.Inject)())
|
|
1638
1638
|
], LemmyHttp.prototype, "markAllNotificationsAsRead", null);
|
|
1639
1639
|
__decorate([
|
|
1640
1640
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1641
|
-
(0, runtime_1.Post)("/account/mark_as_read"),
|
|
1641
|
+
(0, runtime_1.Post)("/account/notification/mark_as_read"),
|
|
1642
1642
|
(0, runtime_1.Tags)("Account"),
|
|
1643
1643
|
__param(0, (0, runtime_1.Body)()),
|
|
1644
1644
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1666,13 +1666,13 @@ __decorate([
|
|
|
1666
1666
|
], LemmyHttp.prototype, "getReportCount", null);
|
|
1667
1667
|
__decorate([
|
|
1668
1668
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1669
|
-
(0, runtime_1.Get)("/account/
|
|
1669
|
+
(0, runtime_1.Get)("/account/notification/count"),
|
|
1670
1670
|
(0, runtime_1.Tags)("Account"),
|
|
1671
1671
|
__param(0, (0, runtime_1.Inject)())
|
|
1672
1672
|
], LemmyHttp.prototype, "getUnreadCount", null);
|
|
1673
1673
|
__decorate([
|
|
1674
1674
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1675
|
-
(0, runtime_1.Get)("/account/
|
|
1675
|
+
(0, runtime_1.Get)("/account/notification/list"),
|
|
1676
1676
|
(0, runtime_1.Tags)("Account"),
|
|
1677
1677
|
__param(0, (0, runtime_1.Queries)()),
|
|
1678
1678
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1824,7 +1824,7 @@ __decorate([
|
|
|
1824
1824
|
], LemmyHttp.prototype, "editTagline", null);
|
|
1825
1825
|
__decorate([
|
|
1826
1826
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1827
|
-
(0, runtime_1.
|
|
1827
|
+
(0, runtime_1.Delete)("/admin/tagline"),
|
|
1828
1828
|
(0, runtime_1.Tags)("Admin", "Tagline"),
|
|
1829
1829
|
__param(0, (0, runtime_1.Body)()),
|
|
1830
1830
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1874,7 +1874,7 @@ __decorate([
|
|
|
1874
1874
|
], LemmyHttp.prototype, "editOAuthProvider", null);
|
|
1875
1875
|
__decorate([
|
|
1876
1876
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1877
|
-
(0, runtime_1.
|
|
1877
|
+
(0, runtime_1.Delete)("/oauth_provider"),
|
|
1878
1878
|
(0, runtime_1.Tags)("Miscellaneous", "OAuth"),
|
|
1879
1879
|
__param(0, (0, runtime_1.Body)()),
|
|
1880
1880
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -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,43 +5,15 @@ export { AddAdmin } from "./types/AddAdmin";
|
|
|
5
5
|
export { AddAdminResponse } from "./types/AddAdminResponse";
|
|
6
6
|
export { AddModToCommunity } from "./types/AddModToCommunity";
|
|
7
7
|
export { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
|
|
8
|
-
export { AdminAdd } from "./types/AdminAdd";
|
|
9
|
-
export { AdminAddId } from "./types/AdminAddId";
|
|
10
|
-
export { AdminAddView } from "./types/AdminAddView";
|
|
11
|
-
export { AdminAllowInstance } from "./types/AdminAllowInstance";
|
|
12
|
-
export { AdminAllowInstanceId } from "./types/AdminAllowInstanceId";
|
|
13
8
|
export { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
|
|
14
|
-
export { AdminAllowInstanceView } from "./types/AdminAllowInstanceView";
|
|
15
|
-
export { AdminBan } from "./types/AdminBan";
|
|
16
|
-
export { AdminBanId } from "./types/AdminBanId";
|
|
17
|
-
export { AdminBanView } from "./types/AdminBanView";
|
|
18
|
-
export { AdminBlockInstance } from "./types/AdminBlockInstance";
|
|
19
|
-
export { AdminBlockInstanceId } from "./types/AdminBlockInstanceId";
|
|
20
9
|
export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
|
21
|
-
export { AdminBlockInstanceView } from "./types/AdminBlockInstanceView";
|
|
22
10
|
export { AdminListUsers } from "./types/AdminListUsers";
|
|
23
11
|
export { AdminListUsersResponse } from "./types/AdminListUsersResponse";
|
|
24
|
-
export {
|
|
25
|
-
export { AdminPurgeCommentId } from "./types/AdminPurgeCommentId";
|
|
26
|
-
export { AdminPurgeCommentView } from "./types/AdminPurgeCommentView";
|
|
27
|
-
export { AdminPurgeCommunity } from "./types/AdminPurgeCommunity";
|
|
28
|
-
export { AdminPurgeCommunityId } from "./types/AdminPurgeCommunityId";
|
|
29
|
-
export { AdminPurgeCommunityView } from "./types/AdminPurgeCommunityView";
|
|
30
|
-
export { AdminPurgePerson } from "./types/AdminPurgePerson";
|
|
31
|
-
export { AdminPurgePersonId } from "./types/AdminPurgePersonId";
|
|
32
|
-
export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
|
|
33
|
-
export { AdminPurgePost } from "./types/AdminPurgePost";
|
|
34
|
-
export { AdminPurgePostId } from "./types/AdminPurgePostId";
|
|
35
|
-
export { AdminPurgePostView } from "./types/AdminPurgePostView";
|
|
36
|
-
export { AdminRemoveCommunity } from "./types/AdminRemoveCommunity";
|
|
37
|
-
export { AdminRemoveCommunityId } from "./types/AdminRemoveCommunityId";
|
|
38
|
-
export { AdminRemoveCommunityView } from "./types/AdminRemoveCommunityView";
|
|
39
|
-
export {} from "./types/AllLemmyErrors";
|
|
12
|
+
export { AllLemmyErrors } from "./types/AllLemmyErrors";
|
|
40
13
|
export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
|
|
41
14
|
export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
|
|
42
15
|
export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
|
|
43
16
|
export { BanFromCommunity } from "./types/BanFromCommunity";
|
|
44
|
-
export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
|
|
45
17
|
export { BanPerson } from "./types/BanPerson";
|
|
46
18
|
export { BlockCommunity } from "./types/BlockCommunity";
|
|
47
19
|
export { BlockPerson } from "./types/BlockPerson";
|
|
@@ -117,9 +89,11 @@ export { EditPrivateMessage } from "./types/EditPrivateMessage";
|
|
|
117
89
|
export { EditSite } from "./types/EditSite";
|
|
118
90
|
export { ExportDataResponse } from "./types/ExportDataResponse";
|
|
119
91
|
export { FeaturePost } from "./types/FeaturePost";
|
|
120
|
-
export {
|
|
92
|
+
export { FederatedInstanceView } from "./types/FederatedInstanceView";
|
|
93
|
+
export { FederationAllowList } from "./types/FederationAllowList";
|
|
121
94
|
export { FederationBlockList } from "./types/FederationBlockList";
|
|
122
95
|
export { FederationMode } from "./types/FederationMode";
|
|
96
|
+
export { FederationQueueState } from "./types/FederationQueueState";
|
|
123
97
|
export { FollowCommunity } from "./types/FollowCommunity";
|
|
124
98
|
export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
|
|
125
99
|
export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
|
@@ -131,6 +105,8 @@ export { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
|
|
|
131
105
|
export { GetCommunity } from "./types/GetCommunity";
|
|
132
106
|
export { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
|
|
133
107
|
export { GetCommunityResponse } from "./types/GetCommunityResponse";
|
|
108
|
+
export { GetFederatedInstances } from "./types/GetFederatedInstances";
|
|
109
|
+
export { GetFederatedInstancesKind } from "./types/GetFederatedInstancesKind";
|
|
134
110
|
export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
|
|
135
111
|
export { GetModlog } from "./types/GetModlog";
|
|
136
112
|
export { GetModlogResponse } from "./types/GetModlogResponse";
|
|
@@ -216,37 +192,13 @@ export { LoginToken } from "./types/LoginToken";
|
|
|
216
192
|
export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
|
217
193
|
export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
|
218
194
|
export { MarkPostAsRead } from "./types/MarkPostAsRead";
|
|
219
|
-
export { ModAddToCommunity } from "./types/ModAddToCommunity";
|
|
220
|
-
export { ModAddToCommunityId } from "./types/ModAddToCommunityId";
|
|
221
|
-
export { ModAddToCommunityView } from "./types/ModAddToCommunityView";
|
|
222
|
-
export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
|
|
223
|
-
export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
|
|
224
|
-
export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
|
|
225
|
-
export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
|
|
226
|
-
export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
|
|
227
|
-
export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
|
|
228
195
|
export { ModEditPost } from "./types/ModEditPost";
|
|
229
|
-
export {
|
|
230
|
-
export {
|
|
231
|
-
export {
|
|
232
|
-
export {
|
|
233
|
-
export { ModLockCommentId } from "./types/ModLockCommentId";
|
|
234
|
-
export { ModLockCommentView } from "./types/ModLockCommentView";
|
|
235
|
-
export { ModLockPost } from "./types/ModLockPost";
|
|
236
|
-
export { ModLockPostId } from "./types/ModLockPostId";
|
|
237
|
-
export { ModLockPostView } from "./types/ModLockPostView";
|
|
238
|
-
export { ModRemoveComment } from "./types/ModRemoveComment";
|
|
239
|
-
export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
|
|
240
|
-
export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
|
|
241
|
-
export { ModRemovePost } from "./types/ModRemovePost";
|
|
242
|
-
export { ModRemovePostId } from "./types/ModRemovePostId";
|
|
243
|
-
export { ModRemovePostView } from "./types/ModRemovePostView";
|
|
244
|
-
export { ModTransferCommunity } from "./types/ModTransferCommunity";
|
|
245
|
-
export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
|
|
246
|
-
export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
|
|
247
|
-
export { ModlogActionType } from "./types/ModlogActionType";
|
|
248
|
-
export { ModlogCombinedView } from "./types/ModlogCombinedView";
|
|
196
|
+
export { Modlog } from "./types/Modlog";
|
|
197
|
+
export { ModlogId } from "./types/ModlogId";
|
|
198
|
+
export { ModlogKind } from "./types/ModlogKind";
|
|
199
|
+
export { ModlogView } from "./types/ModlogView";
|
|
249
200
|
export { MultiCommunity } from "./types/MultiCommunity";
|
|
201
|
+
export { MultiCommunityEntry } from "./types/MultiCommunityEntry";
|
|
250
202
|
export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
|
|
251
203
|
export { MultiCommunityId } from "./types/MultiCommunityId";
|
|
252
204
|
export { MultiCommunityResponse } from "./types/MultiCommunityResponse";
|
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
|
+
}
|
|
@@ -6,4 +6,8 @@ export type ChangePassword = {
|
|
|
6
6
|
new_password: SensitiveString;
|
|
7
7
|
new_password_verify: SensitiveString;
|
|
8
8
|
old_password: SensitiveString;
|
|
9
|
+
/**
|
|
10
|
+
* If this is true the login is valid forever, otherwise it expires after one week.
|
|
11
|
+
*/
|
|
12
|
+
stay_logged_in?: boolean;
|
|
9
13
|
};
|
|
@@ -5,10 +5,6 @@ export type CommunityActions = {
|
|
|
5
5
|
* When the community was followed.
|
|
6
6
|
*/
|
|
7
7
|
followed_at?: string;
|
|
8
|
-
/**
|
|
9
|
-
* The state of the community follow.
|
|
10
|
-
*/
|
|
11
|
-
follow_state?: CommunityFollowerState;
|
|
12
8
|
/**
|
|
13
9
|
* When the community was blocked.
|
|
14
10
|
*/
|
|
@@ -25,5 +21,9 @@ export type CommunityActions = {
|
|
|
25
21
|
* When their ban expires.
|
|
26
22
|
*/
|
|
27
23
|
ban_expires_at?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The state of the community follow.
|
|
26
|
+
*/
|
|
27
|
+
follow_state?: CommunityFollowerState;
|
|
28
28
|
notifications?: CommunityNotificationsMode;
|
|
29
29
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FederationAllowList } from "./FederationAllowList";
|
|
2
|
+
import type { FederationBlockList } from "./FederationBlockList";
|
|
3
|
+
import type { FederationQueueState } from "./FederationQueueState";
|
|
4
|
+
import type { Instance } from "./Instance";
|
|
5
|
+
import type { Site } from "./Site";
|
|
6
|
+
export type FederatedInstanceView = {
|
|
7
|
+
instance: Instance;
|
|
8
|
+
site?: Site;
|
|
9
|
+
queue_state?: FederationQueueState;
|
|
10
|
+
blocked?: FederationBlockList;
|
|
11
|
+
allowed?: FederationAllowList;
|
|
12
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ActivityId } from "./ActivityId";
|
|
2
|
+
import type { InstanceId } from "./InstanceId";
|
|
3
|
+
export type FederationQueueState = {
|
|
4
|
+
instance_id: InstanceId;
|
|
5
|
+
/**
|
|
6
|
+
* the last successfully sent activity id
|
|
7
|
+
*/
|
|
8
|
+
last_successful_id?: ActivityId;
|
|
9
|
+
last_successful_published_time_at?: string;
|
|
10
|
+
/**
|
|
11
|
+
* how many failed attempts have been made to send the next activity
|
|
12
|
+
*/
|
|
13
|
+
fail_count: number;
|
|
14
|
+
/**
|
|
15
|
+
* timestamp of the last retry attempt (when the last failing activity was resent)
|
|
16
|
+
*/
|
|
17
|
+
last_retry_at?: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { GetFederatedInstancesKind } from "./GetFederatedInstancesKind";
|
|
2
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
|
3
|
+
export type GetFederatedInstances = {
|
|
4
|
+
domain_filter?: string;
|
|
5
|
+
kind: GetFederatedInstancesKind;
|
|
6
|
+
page_cursor?: PaginationCursor;
|
|
7
|
+
page_back?: boolean;
|
|
8
|
+
limit?: number;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type GetFederatedInstancesKind = "all" | "linked" | "allowed" | "blocked";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FederatedInstanceView } from "./FederatedInstanceView";
|
|
2
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
|
2
3
|
/**
|
|
3
4
|
* A response of federated instances.
|
|
4
5
|
*/
|
|
5
6
|
export type GetFederatedInstancesResponse = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
federated_instances?: FederatedInstances;
|
|
7
|
+
federated_instances: Array<FederatedInstanceView>;
|
|
8
|
+
next_page?: PaginationCursor;
|
|
9
|
+
prev_page?: PaginationCursor;
|
|
10
10
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CommentId } from "./CommentId";
|
|
2
2
|
import type { CommunityId } from "./CommunityId";
|
|
3
3
|
import type { ListingType } from "./ListingType";
|
|
4
|
-
import type {
|
|
4
|
+
import type { ModlogKind } from "./ModlogKind";
|
|
5
5
|
import type { PaginationCursor } from "./PaginationCursor";
|
|
6
6
|
import type { PersonId } from "./PersonId";
|
|
7
7
|
import type { PostId } from "./PostId";
|
|
@@ -20,7 +20,7 @@ export type GetModlog = {
|
|
|
20
20
|
/**
|
|
21
21
|
* Filter by the modlog action type.
|
|
22
22
|
*/
|
|
23
|
-
type_?:
|
|
23
|
+
type_?: ModlogKind;
|
|
24
24
|
/**
|
|
25
25
|
* Filter by listing type. When not using All, it will remove the non-community modlog entries,
|
|
26
26
|
* such as site bans, instance blocks, adding an admin, etc.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ModlogView } from "./ModlogView";
|
|
2
2
|
import type { PaginationCursor } from "./PaginationCursor";
|
|
3
3
|
/**
|
|
4
4
|
* The modlog fetch response.
|
|
5
5
|
*/
|
|
6
6
|
export type GetModlogResponse = {
|
|
7
|
-
modlog: Array<
|
|
7
|
+
modlog: Array<ModlogView>;
|
|
8
8
|
/**
|
|
9
9
|
* the pagination cursor to use to fetch the next page
|
|
10
10
|
*/
|
package/dist/types/GetPosts.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export type GetPosts = {
|
|
|
18
18
|
community_id?: CommunityId;
|
|
19
19
|
community_name?: string;
|
|
20
20
|
multi_community_id?: MultiCommunityId;
|
|
21
|
+
multi_community_name?: string;
|
|
21
22
|
show_hidden?: boolean;
|
|
22
23
|
/**
|
|
23
24
|
* If true, then show the read posts (even if your user setting is to hide them)
|
package/dist/types/Login.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ModlogId = number;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A list of possible types for the various modlog actions.
|
|
3
|
+
*/
|
|
4
|
+
export type ModlogKind = "admin_add" | "admin_ban" | "admin_allow_instance" | "admin_block_instance" | "admin_purge_comment" | "admin_purge_community" | "admin_purge_person" | "admin_purge_post" | "mod_add_to_community" | "mod_ban_from_community" | "admin_feature_post_site" | "mod_feature_post_community" | "mod_change_community_visibility" | "mod_lock_post" | "mod_remove_comment" | "admin_remove_community" | "mod_remove_post" | "mod_transfer_community" | "mod_lock_comment";
|