lemmy-js-client 1.0.0-bool-vote.1 → 1.0.0-change-api-routes.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 +5 -6
- package/dist/http.js +32 -32
- package/dist/index.d.ts +11 -59
- package/dist/other_types.d.ts +3 -3
- package/dist/types/AuthenticateWithOauth.d.ts +4 -0
- package/dist/types/ChangePassword.d.ts +4 -0
- package/dist/types/CommentSortType.d.ts +1 -1
- package/dist/types/CommunityActions.d.ts +4 -4
- package/dist/types/CommunityFollowerState.d.ts +1 -1
- package/dist/types/CommunityNotificationsMode.d.ts +1 -1
- package/dist/types/CommunitySortType.d.ts +1 -1
- package/dist/types/CommunityVisibility.d.ts +1 -1
- 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/FederationMode.d.ts +1 -1
- 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/LikeType.d.ts +1 -1
- package/dist/types/ListCommunityPendingFollows.d.ts +1 -1
- package/dist/types/ListCommunityPendingFollowsResponse.d.ts +2 -2
- package/dist/types/ListingType.d.ts +1 -1
- 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/NotificationDataType.d.ts +1 -1
- package/dist/types/NotificationType.d.ts +1 -1
- package/dist/types/PendingFollowerView.d.ts +9 -0
- package/dist/types/PersonContentCombinedView.d.ts +2 -2
- package/dist/types/PersonContentType.d.ts +1 -1
- package/dist/types/PersonLikedCombinedView.d.ts +2 -2
- package/dist/types/PersonSavedCombinedView.d.ts +2 -2
- package/dist/types/PostFeatureType.d.ts +1 -1
- package/dist/types/PostListingMode.d.ts +1 -1
- package/dist/types/PostNotificationsMode.d.ts +1 -1
- package/dist/types/PostOrCommentOrPrivateMessage.d.ts +3 -3
- package/dist/types/PostSortType.d.ts +1 -1
- package/dist/types/Register.d.ts +4 -0
- package/dist/types/RegistrationMode.d.ts +1 -1
- package/dist/types/ReportCombinedView.d.ts +4 -4
- package/dist/types/ReportType.d.ts +1 -1
- package/dist/types/SearchCombinedView.d.ts +5 -5
- package/dist/types/SearchSortType.d.ts +1 -1
- package/dist/types/SearchType.d.ts +1 -1
- package/dist/types/UntranslatedError.d.ts +3 -1
- package/dist/types/UserSettingsBackup.d.ts +2 -0
- package/dist/types/VoteShow.d.ts +1 -1
- 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/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/GetCommunityPendingFollowsCount.d.ts +0 -4
- package/dist/types/GetCommunityPendingFollowsCount.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/types/{AdminBlockInstance.js → PendingFollowerView.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,
|
|
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";
|
|
@@ -270,7 +269,7 @@ export declare class LemmyHttp extends Controller {
|
|
|
270
269
|
/**
|
|
271
270
|
* @summary Get a community's pending follows count.
|
|
272
271
|
*/
|
|
273
|
-
getCommunityPendingFollowsCount(
|
|
272
|
+
getCommunityPendingFollowsCount(options?: RequestOptions): Promise<GetCommunityPendingFollowsCountResponse>;
|
|
274
273
|
/**
|
|
275
274
|
* @summary Get a community's pending followers.
|
|
276
275
|
*/
|
|
@@ -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
|
|
@@ -205,8 +205,8 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
|
205
205
|
/**
|
|
206
206
|
* @summary Get a community's pending follows count.
|
|
207
207
|
*/
|
|
208
|
-
async getCommunityPendingFollowsCount(
|
|
209
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count",
|
|
208
|
+
async getCommunityPendingFollowsCount(options) {
|
|
209
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", {}, options);
|
|
210
210
|
}
|
|
211
211
|
/**
|
|
212
212
|
* @summary Get a community's pending followers.
|
|
@@ -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/unread_count", {}, options);
|
|
617
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/notification/unread_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);
|
|
@@ -1191,8 +1191,7 @@ __decorate([
|
|
|
1191
1191
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1192
1192
|
(0, runtime_1.Get)("/community/pending_follows/count"),
|
|
1193
1193
|
(0, runtime_1.Tags)("Community"),
|
|
1194
|
-
__param(0, (0, runtime_1.
|
|
1195
|
-
__param(1, (0, runtime_1.Inject)())
|
|
1194
|
+
__param(0, (0, runtime_1.Inject)())
|
|
1196
1195
|
], LemmyHttp.prototype, "getCommunityPendingFollowsCount", null);
|
|
1197
1196
|
__decorate([
|
|
1198
1197
|
(0, runtime_1.Security)("bearerAuth"),
|
|
@@ -1217,7 +1216,7 @@ __decorate([
|
|
|
1217
1216
|
], LemmyHttp.prototype, "blockCommunity", null);
|
|
1218
1217
|
__decorate([
|
|
1219
1218
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1220
|
-
(0, runtime_1.
|
|
1219
|
+
(0, runtime_1.Delete)("/community"),
|
|
1221
1220
|
(0, runtime_1.Tags)("Community"),
|
|
1222
1221
|
__param(0, (0, runtime_1.Body)()),
|
|
1223
1222
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1310,7 +1309,7 @@ __decorate([
|
|
|
1310
1309
|
], LemmyHttp.prototype, "modEditPost", null);
|
|
1311
1310
|
__decorate([
|
|
1312
1311
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1313
|
-
(0, runtime_1.
|
|
1312
|
+
(0, runtime_1.Delete)("/post"),
|
|
1314
1313
|
(0, runtime_1.Tags)("Post"),
|
|
1315
1314
|
__param(0, (0, runtime_1.Body)()),
|
|
1316
1315
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1423,7 +1422,7 @@ __decorate([
|
|
|
1423
1422
|
], LemmyHttp.prototype, "editComment", null);
|
|
1424
1423
|
__decorate([
|
|
1425
1424
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1426
|
-
(0, runtime_1.
|
|
1425
|
+
(0, runtime_1.Delete)("/comment"),
|
|
1427
1426
|
(0, runtime_1.Tags)("Comment"),
|
|
1428
1427
|
__param(0, (0, runtime_1.Body)()),
|
|
1429
1428
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1524,7 +1523,7 @@ __decorate([
|
|
|
1524
1523
|
], LemmyHttp.prototype, "editPrivateMessage", null);
|
|
1525
1524
|
__decorate([
|
|
1526
1525
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1527
|
-
(0, runtime_1.
|
|
1526
|
+
(0, runtime_1.Delete)("/private_message"),
|
|
1528
1527
|
(0, runtime_1.Tags)("PrivateMessage"),
|
|
1529
1528
|
__param(0, (0, runtime_1.Body)()),
|
|
1530
1529
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1612,7 +1611,7 @@ __decorate([
|
|
|
1612
1611
|
], LemmyHttp.prototype, "getCaptcha", null);
|
|
1613
1612
|
__decorate([
|
|
1614
1613
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1615
|
-
(0, runtime_1.
|
|
1614
|
+
(0, runtime_1.Delete)("/account"),
|
|
1616
1615
|
(0, runtime_1.Tags)("Account"),
|
|
1617
1616
|
__param(0, (0, runtime_1.Body)()),
|
|
1618
1617
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1633,13 +1632,13 @@ __decorate([
|
|
|
1633
1632
|
], LemmyHttp.prototype, "passwordChangeAfterReset", null);
|
|
1634
1633
|
__decorate([
|
|
1635
1634
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1636
|
-
(0, runtime_1.Post)("/account/mark_as_read/all"),
|
|
1635
|
+
(0, runtime_1.Post)("/account/notification/mark_as_read/all"),
|
|
1637
1636
|
(0, runtime_1.Tags)("Account"),
|
|
1638
1637
|
__param(0, (0, runtime_1.Inject)())
|
|
1639
1638
|
], LemmyHttp.prototype, "markAllNotificationsAsRead", null);
|
|
1640
1639
|
__decorate([
|
|
1641
1640
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1642
|
-
(0, runtime_1.Post)("/account/mark_as_read"),
|
|
1641
|
+
(0, runtime_1.Post)("/account/notification/mark_as_read"),
|
|
1643
1642
|
(0, runtime_1.Tags)("Account"),
|
|
1644
1643
|
__param(0, (0, runtime_1.Body)()),
|
|
1645
1644
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1667,13 +1666,13 @@ __decorate([
|
|
|
1667
1666
|
], LemmyHttp.prototype, "getReportCount", null);
|
|
1668
1667
|
__decorate([
|
|
1669
1668
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1670
|
-
(0, runtime_1.Get)("/account/unread_count"),
|
|
1669
|
+
(0, runtime_1.Get)("/account/notification/unread_count"),
|
|
1671
1670
|
(0, runtime_1.Tags)("Account"),
|
|
1672
1671
|
__param(0, (0, runtime_1.Inject)())
|
|
1673
1672
|
], LemmyHttp.prototype, "getUnreadCount", null);
|
|
1674
1673
|
__decorate([
|
|
1675
1674
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1676
|
-
(0, runtime_1.Get)("/account/
|
|
1675
|
+
(0, runtime_1.Get)("/account/notification/list"),
|
|
1677
1676
|
(0, runtime_1.Tags)("Account"),
|
|
1678
1677
|
__param(0, (0, runtime_1.Queries)()),
|
|
1679
1678
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1825,7 +1824,7 @@ __decorate([
|
|
|
1825
1824
|
], LemmyHttp.prototype, "editTagline", null);
|
|
1826
1825
|
__decorate([
|
|
1827
1826
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1828
|
-
(0, runtime_1.
|
|
1827
|
+
(0, runtime_1.Delete)("/admin/tagline"),
|
|
1829
1828
|
(0, runtime_1.Tags)("Admin", "Tagline"),
|
|
1830
1829
|
__param(0, (0, runtime_1.Body)()),
|
|
1831
1830
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1875,7 +1874,7 @@ __decorate([
|
|
|
1875
1874
|
], LemmyHttp.prototype, "editOAuthProvider", null);
|
|
1876
1875
|
__decorate([
|
|
1877
1876
|
(0, runtime_1.Security)("bearerAuth"),
|
|
1878
|
-
(0, runtime_1.
|
|
1877
|
+
(0, runtime_1.Delete)("/oauth_provider"),
|
|
1879
1878
|
(0, runtime_1.Tags)("Miscellaneous", "OAuth"),
|
|
1880
1879
|
__param(0, (0, runtime_1.Body)()),
|
|
1881
1880
|
__param(1, (0, runtime_1.Inject)())
|
|
@@ -1890,7 +1889,8 @@ __decorate([
|
|
|
1890
1889
|
__decorate([
|
|
1891
1890
|
(0, runtime_1.Get)("/federated_instances"),
|
|
1892
1891
|
(0, runtime_1.Tags)("Miscellaneous"),
|
|
1893
|
-
__param(0, (0, runtime_1.
|
|
1892
|
+
__param(0, (0, runtime_1.Queries)()),
|
|
1893
|
+
__param(1, (0, runtime_1.Inject)())
|
|
1894
1894
|
], LemmyHttp.prototype, "getFederatedInstances", null);
|
|
1895
1895
|
__decorate([
|
|
1896
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 { AdminPurgeComment } from "./types/AdminPurgeComment";
|
|
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
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";
|
|
@@ -129,9 +103,10 @@ export { GetComments } from "./types/GetComments";
|
|
|
129
103
|
export { GetCommentsResponse } from "./types/GetCommentsResponse";
|
|
130
104
|
export { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
|
|
131
105
|
export { GetCommunity } from "./types/GetCommunity";
|
|
132
|
-
export { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
|
|
133
106
|
export { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
|
|
134
107
|
export { GetCommunityResponse } from "./types/GetCommunityResponse";
|
|
108
|
+
export { GetFederatedInstances } from "./types/GetFederatedInstances";
|
|
109
|
+
export { GetFederatedInstancesKind } from "./types/GetFederatedInstancesKind";
|
|
135
110
|
export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
|
|
136
111
|
export { GetModlog } from "./types/GetModlog";
|
|
137
112
|
export { GetModlogResponse } from "./types/GetModlogResponse";
|
|
@@ -217,37 +192,13 @@ export { LoginToken } from "./types/LoginToken";
|
|
|
217
192
|
export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
|
218
193
|
export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
|
219
194
|
export { MarkPostAsRead } from "./types/MarkPostAsRead";
|
|
220
|
-
export { ModAddToCommunity } from "./types/ModAddToCommunity";
|
|
221
|
-
export { ModAddToCommunityId } from "./types/ModAddToCommunityId";
|
|
222
|
-
export { ModAddToCommunityView } from "./types/ModAddToCommunityView";
|
|
223
|
-
export { ModBanFromCommunity } from "./types/ModBanFromCommunity";
|
|
224
|
-
export { ModBanFromCommunityId } from "./types/ModBanFromCommunityId";
|
|
225
|
-
export { ModBanFromCommunityView } from "./types/ModBanFromCommunityView";
|
|
226
|
-
export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
|
|
227
|
-
export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
|
|
228
|
-
export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
|
|
229
195
|
export { ModEditPost } from "./types/ModEditPost";
|
|
230
|
-
export {
|
|
231
|
-
export {
|
|
232
|
-
export {
|
|
233
|
-
export {
|
|
234
|
-
export { ModLockCommentId } from "./types/ModLockCommentId";
|
|
235
|
-
export { ModLockCommentView } from "./types/ModLockCommentView";
|
|
236
|
-
export { ModLockPost } from "./types/ModLockPost";
|
|
237
|
-
export { ModLockPostId } from "./types/ModLockPostId";
|
|
238
|
-
export { ModLockPostView } from "./types/ModLockPostView";
|
|
239
|
-
export { ModRemoveComment } from "./types/ModRemoveComment";
|
|
240
|
-
export { ModRemoveCommentId } from "./types/ModRemoveCommentId";
|
|
241
|
-
export { ModRemoveCommentView } from "./types/ModRemoveCommentView";
|
|
242
|
-
export { ModRemovePost } from "./types/ModRemovePost";
|
|
243
|
-
export { ModRemovePostId } from "./types/ModRemovePostId";
|
|
244
|
-
export { ModRemovePostView } from "./types/ModRemovePostView";
|
|
245
|
-
export { ModTransferCommunity } from "./types/ModTransferCommunity";
|
|
246
|
-
export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
|
|
247
|
-
export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
|
|
248
|
-
export { ModlogActionType } from "./types/ModlogActionType";
|
|
249
|
-
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";
|
|
250
200
|
export { MultiCommunity } from "./types/MultiCommunity";
|
|
201
|
+
export { MultiCommunityEntry } from "./types/MultiCommunityEntry";
|
|
251
202
|
export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
|
|
252
203
|
export { MultiCommunityId } from "./types/MultiCommunityId";
|
|
253
204
|
export { MultiCommunityResponse } from "./types/MultiCommunityResponse";
|
|
@@ -268,6 +219,7 @@ export { PaginationCursor } from "./types/PaginationCursor";
|
|
|
268
219
|
export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
|
269
220
|
export { PasswordReset } from "./types/PasswordReset";
|
|
270
221
|
export { PendingFollow } from "./types/PendingFollow";
|
|
222
|
+
export { PendingFollowerView } from "./types/PendingFollowerView";
|
|
271
223
|
export { Person } from "./types/Person";
|
|
272
224
|
export { PersonActions } from "./types/PersonActions";
|
|
273
225
|
export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
|
package/dist/other_types.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { DeleteImageParams } from "./types/DeleteImageParams";
|
|
|
4
4
|
import { GetComment } from "./types/GetComment";
|
|
5
5
|
import { GetComments } from "./types/GetComments";
|
|
6
6
|
import { GetCommunity } from "./types/GetCommunity";
|
|
7
|
-
import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
|
|
8
7
|
import { GetModlog } from "./types/GetModlog";
|
|
9
8
|
import { GetMultiCommunity } from "./types/GetMultiCommunity";
|
|
10
9
|
import { GetPersonDetails } from "./types/GetPersonDetails";
|
|
@@ -32,6 +31,7 @@ import { ListReports } from "./types/ListReports";
|
|
|
32
31
|
import { ListTaglines } from "./types/ListTaglines";
|
|
33
32
|
import { ResolveObject } from "./types/ResolveObject";
|
|
34
33
|
import { Search } from "./types/Search";
|
|
34
|
+
import { GetFederatedInstances } from "./types/GetFederatedInstances";
|
|
35
35
|
export declare const VERSION = "v4";
|
|
36
36
|
export interface UploadImage {
|
|
37
37
|
image: File | Buffer;
|
|
@@ -48,8 +48,6 @@ export interface GetCommunityI extends GetCommunity {
|
|
|
48
48
|
}
|
|
49
49
|
export interface ListCommunitiesI extends ListCommunities {
|
|
50
50
|
}
|
|
51
|
-
export interface GetCommunityPendingFollowsCountI extends GetCommunityPendingFollowsCount {
|
|
52
|
-
}
|
|
53
51
|
export interface ListCommunityPendingFollowsI extends ListCommunityPendingFollows {
|
|
54
52
|
}
|
|
55
53
|
export interface GetRandomCommunityI extends GetRandomCommunity {
|
|
@@ -104,3 +102,5 @@ export interface ListMultiCommunitiesI extends ListMultiCommunities {
|
|
|
104
102
|
}
|
|
105
103
|
export interface GetMultiCommunityI extends GetMultiCommunity {
|
|
106
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
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The comment sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
|
|
3
3
|
*/
|
|
4
|
-
export type CommentSortType = "
|
|
4
|
+
export type CommentSortType = "hot" | "top" | "new" | "old" | "controversial";
|
|
@@ -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
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type CommunityFollowerState = "
|
|
1
|
+
export type CommunityFollowerState = "accepted" | "pending" | "approval_required" | "denied";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Available settings for community notifications
|
|
3
3
|
*/
|
|
4
|
-
export type CommunityNotificationsMode = "
|
|
4
|
+
export type CommunityNotificationsMode = "all_posts_and_comments" | "all_posts" | "replies_and_mentions" | "mute";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The community sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
|
|
3
3
|
*/
|
|
4
|
-
export type CommunitySortType = "
|
|
4
|
+
export type CommunitySortType = "active_six_months" | "active_monthly" | "active_weekly" | "active_daily" | "hot" | "new" | "old" | "name_asc" | "name_desc" | "comments" | "posts" | "subscribers" | "subscribers_local";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Defines who can browse and interact with content in a community.
|
|
3
3
|
*/
|
|
4
|
-
export type CommunityVisibility = "
|
|
4
|
+
export type CommunityVisibility = "public" | "unlisted" | "local_only_public" | "local_only_private" | "private";
|
|
@@ -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
|
};
|