lemmy-js-client 1.0.0-name-and-message.1 → 1.0.0-post-notifications.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 +36 -22
- package/dist/http.js +109 -51
- package/dist/index.d.ts +29 -8
- package/dist/other_types.d.ts +9 -0
- package/dist/types/AdminAllowInstance.d.ts +1 -1
- package/dist/types/AdminBlockInstance.d.ts +2 -2
- package/dist/types/AdminBlockInstanceParams.d.ts +1 -1
- package/dist/types/AdminPurgeComment.d.ts +1 -1
- package/dist/types/AdminPurgeCommunity.d.ts +1 -1
- package/dist/types/AdminPurgePerson.d.ts +1 -1
- package/dist/types/AdminPurgePost.d.ts +1 -1
- package/dist/types/BanFromCommunity.d.ts +1 -1
- package/dist/types/BanPerson.d.ts +1 -1
- package/dist/types/Comment.d.ts +2 -2
- package/dist/types/CommentActions.d.ts +2 -6
- package/dist/types/CommentActions.js +1 -0
- package/dist/types/CommentReply.d.ts +1 -1
- package/dist/types/CommentReport.d.ts +2 -2
- package/dist/types/CommentReportView.d.ts +0 -1
- package/dist/types/CommentResponse.d.ts +0 -2
- package/dist/types/CommentSlimView.d.ts +2 -4
- package/dist/types/CommentView.d.ts +2 -3
- package/dist/types/Community.d.ts +2 -2
- package/dist/types/CommunityActions.d.ts +5 -13
- package/dist/types/CommunityReport.d.ts +2 -2
- package/dist/types/CreateMultiCommunity.d.ts +5 -0
- package/dist/types/CreateMultiCommunity.js +3 -0
- package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
- package/dist/types/CreatePost.d.ts +1 -1
- package/dist/types/CreateSite.d.ts +16 -13
- package/dist/types/CustomEmoji.d.ts +2 -2
- package/dist/types/EditPost.d.ts +1 -1
- package/dist/types/EditSite.d.ts +22 -16
- package/dist/types/ExportDataResponse.d.ts +13 -0
- package/dist/types/FederationBlockList.d.ts +3 -3
- package/dist/types/FollowMultiCommunity.d.ts +5 -0
- package/dist/types/GetComments.d.ts +0 -2
- package/dist/types/GetMultiCommunity.d.ts +4 -0
- package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
- package/dist/types/GetPosts.d.ts +2 -2
- package/dist/types/InboxDataType.d.ts +1 -1
- package/dist/types/Instance.d.ts +2 -2
- package/dist/types/InstanceActions.d.ts +3 -7
- package/dist/types/InstanceActions.js +1 -0
- package/dist/types/InstanceWithFederationState.d.ts +2 -2
- package/dist/types/LemmyErrorType.d.ts +10 -14
- package/dist/types/LikeType.d.ts +4 -0
- package/dist/types/LikeType.js +3 -0
- package/dist/types/ListInboxResponse.d.ts +2 -2
- package/dist/types/ListMultiCommunities.d.ts +5 -0
- package/dist/types/ListMultiCommunitiesResponse.d.ts +4 -0
- package/dist/types/ListPersonLiked.d.ts +13 -0
- package/dist/types/ListPersonLikedResponse.d.ts +13 -0
- package/dist/types/ListPersonLikedResponse.js +2 -0
- package/dist/types/ListingType.d.ts +1 -1
- package/dist/types/LocalImage.d.ts +8 -3
- package/dist/types/LocalImageView.d.ts +2 -0
- package/dist/types/LocalSite.d.ts +6 -6
- package/dist/types/LocalSiteRateLimit.d.ts +16 -16
- package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
- package/dist/types/LocalUser.d.ts +2 -1
- package/dist/types/LocalUserView.d.ts +1 -2
- package/dist/types/LoginToken.d.ts +1 -1
- package/dist/types/MarkNotificationAsRead.d.ts +8 -0
- package/dist/types/MarkNotificationAsRead.js +2 -0
- package/dist/types/ModAdd.d.ts +1 -1
- package/dist/types/ModAddCommunity.d.ts +1 -1
- package/dist/types/ModBan.d.ts +2 -2
- package/dist/types/ModBanFromCommunity.d.ts +2 -2
- package/dist/types/ModChangeCommunityVisibility.d.ts +1 -2
- package/dist/types/ModFeaturePost.d.ts +1 -1
- package/dist/types/ModLockPost.d.ts +1 -1
- package/dist/types/ModRemoveComment.d.ts +1 -1
- package/dist/types/ModRemoveCommunity.d.ts +1 -1
- package/dist/types/ModRemovePost.d.ts +1 -1
- package/dist/types/ModTransferCommunity.d.ts +1 -1
- package/dist/types/MultiCommunity.d.ts +17 -0
- package/dist/types/MultiCommunity.js +2 -0
- package/dist/types/MultiCommunityFollow.d.ts +8 -0
- package/dist/types/MultiCommunityFollow.js +2 -0
- package/dist/types/MultiCommunityId.d.ts +1 -0
- package/dist/types/MultiCommunityId.js +3 -0
- package/dist/types/MultiCommunityView.d.ts +6 -0
- package/dist/types/MultiCommunityView.js +2 -0
- package/dist/types/NotePerson.d.ts +10 -0
- package/dist/types/NotePerson.js +2 -0
- package/dist/types/Notification.d.ts +14 -0
- package/dist/types/Notification.js +2 -0
- package/dist/types/NotificationId.d.ts +1 -0
- package/dist/types/NotificationId.js +3 -0
- package/dist/types/NotificationTypes.d.ts +4 -0
- package/dist/types/NotificationTypes.js +3 -0
- package/dist/types/{PersonPostMentionView.d.ts → NotificationView.d.ts} +19 -15
- package/dist/types/NotificationView.js +2 -0
- package/dist/types/NotificationsMode.d.ts +4 -0
- package/dist/types/NotificationsMode.js +3 -0
- package/dist/types/OAuthAccount.d.ts +2 -2
- package/dist/types/OAuthProvider.d.ts +2 -2
- package/dist/types/Person.d.ts +2 -2
- package/dist/types/PersonActions.d.ts +21 -4
- package/dist/types/PersonActions.js +1 -0
- package/dist/types/PersonCommentMention.d.ts +1 -1
- package/dist/types/PersonLikedCombinedView.d.ts +7 -0
- package/dist/types/PersonLikedCombinedView.js +2 -0
- package/dist/types/PersonNotification.d.ts +9 -0
- package/dist/types/PersonNotification.js +2 -0
- package/dist/types/PersonPostMention.d.ts +1 -1
- package/dist/types/PersonView.d.ts +2 -3
- package/dist/types/Post.d.ts +4 -4
- package/dist/types/PostActions.d.ts +7 -9
- package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
- package/dist/types/PostOrCommentOrPrivateMessage.js +2 -0
- package/dist/types/PostReport.d.ts +2 -2
- package/dist/types/PostReportView.d.ts +0 -1
- package/dist/types/PostView.d.ts +2 -3
- package/dist/types/PrivateMessage.d.ts +2 -2
- package/dist/types/PrivateMessageReport.d.ts +2 -2
- package/dist/types/ReadableFederationState.d.ts +2 -2
- package/dist/types/RegistrationApplication.d.ts +1 -1
- package/dist/types/SaveUserSettings.d.ts +4 -0
- package/dist/types/Search.d.ts +5 -1
- package/dist/types/SearchCombinedView.d.ts +4 -1
- package/dist/types/SearchType.d.ts +1 -1
- package/dist/types/Site.d.ts +2 -2
- package/dist/types/SiteResponse.d.ts +0 -4
- package/dist/types/Tag.d.ts +2 -2
- package/dist/types/Tagline.d.ts +2 -2
- package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
- package/dist/types/UpdateCommunityNotifications.js +2 -0
- package/dist/types/UpdateMultiCommunity.d.ts +7 -0
- package/dist/types/UpdateMultiCommunity.js +2 -0
- package/dist/types/UpdatePostNotifications.d.ts +9 -0
- package/dist/types/UpdatePostNotifications.js +2 -0
- package/dist/types/UserSettingsBackup.d.ts +26 -0
- package/dist/types/UserSettingsBackup.js +2 -0
- package/dist/types/VoteView.d.ts +0 -1
- package/package.json +2 -2
- package/dist/types/CommentReplyView.d.ts +0 -32
- package/dist/types/InboxCombinedView.d.ts +0 -13
- package/dist/types/MarkCommentReplyAsRead.d.ts +0 -8
- package/dist/types/MarkPersonCommentMentionAsRead.d.ts +0 -8
- package/dist/types/MarkPersonPostMentionAsRead.d.ts +0 -8
- package/dist/types/PersonCommentMentionView.d.ts +0 -30
- package/dist/types/ResolveObjectResponse.d.ts +0 -13
- /package/dist/types/{CommentReplyView.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
- /package/dist/types/{InboxCombinedView.js → ExportDataResponse.js} +0 -0
- /package/dist/types/{MarkCommentReplyAsRead.js → FollowMultiCommunity.js} +0 -0
- /package/dist/types/{MarkPersonCommentMentionAsRead.js → GetMultiCommunity.js} +0 -0
- /package/dist/types/{MarkPersonPostMentionAsRead.js → GetMultiCommunityResponse.js} +0 -0
- /package/dist/types/{PersonCommentMentionView.js → ListMultiCommunities.js} +0 -0
- /package/dist/types/{PersonPostMentionView.js → ListMultiCommunitiesResponse.js} +0 -0
- /package/dist/types/{ResolveObjectResponse.js → ListPersonLiked.js} +0 -0
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, GetCommunityPendingFollowsCountI, GetModlogI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListInboxI, ListMediaI, ListPersonContentI, ListPersonHiddenI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
|
2
|
+
import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetMultiCommunityI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListInboxI, ListMediaI, ListMultiCommunitiesI, ListPersonContentI, ListPersonHiddenI, ListPersonLikedI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
|
3
3
|
import { AddAdmin } from "./types/AddAdmin";
|
4
4
|
import { AddAdminResponse } from "./types/AddAdminResponse";
|
5
5
|
import { AddModToCommunity } from "./types/AddModToCommunity";
|
@@ -71,7 +71,6 @@ import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationAp
|
|
71
71
|
import { LockPost } from "./types/LockPost";
|
72
72
|
import { Login } from "./types/Login";
|
73
73
|
import { LoginResponse } from "./types/LoginResponse";
|
74
|
-
import { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
75
74
|
import { MarkPostAsRead } from "./types/MarkPostAsRead";
|
76
75
|
import { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
|
77
76
|
import { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
@@ -91,7 +90,6 @@ import { RemoveCommunity } from "./types/RemoveCommunity";
|
|
91
90
|
import { RemovePost } from "./types/RemovePost";
|
92
91
|
import { ResolveCommentReport } from "./types/ResolveCommentReport";
|
93
92
|
import { ResolveCommunityReport } from "./types/ResolveCommunityReport";
|
94
|
-
import { ResolveObjectResponse } from "./types/ResolveObjectResponse";
|
95
93
|
import { ResolvePostReport } from "./types/ResolvePostReport";
|
96
94
|
import { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
|
97
95
|
import { SaveComment } from "./types/SaveComment";
|
@@ -130,16 +128,22 @@ import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
|
130
128
|
import { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
|
131
129
|
import { UploadImageResponse } from "./types/UploadImageResponse";
|
132
130
|
import { ListInboxResponse } from "./types/ListInboxResponse";
|
133
|
-
import { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
|
134
|
-
import { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
|
135
131
|
import { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
|
136
132
|
import { Tag } from "./types/Tag";
|
137
133
|
import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
138
134
|
import { ListPersonReadResponse } from "./types/ListPersonReadResponse";
|
139
135
|
import { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
|
140
136
|
import { CommunityIdQuery } from "./types/CommunityIdQuery";
|
137
|
+
import { CreateMultiCommunity } from "./types/CreateMultiCommunity";
|
138
|
+
import { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
139
|
+
import { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
|
141
140
|
import { AdminListUsersResponse } from "./types/AdminListUsersResponse";
|
141
|
+
import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
|
142
|
+
import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
|
143
|
+
import { FollowMultiCommunity } from "./types/FollowMultiCommunity";
|
142
144
|
import { ListLoginsResponse } from "./types/ListLoginsResponse";
|
145
|
+
import { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
|
146
|
+
import { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
143
147
|
type RequestOptions = Pick<RequestInit, "signal">;
|
144
148
|
/**
|
145
149
|
* Helps build lemmy HTTP requests.
|
@@ -232,13 +236,13 @@ export declare class LemmyHttp extends Controller {
|
|
232
236
|
*/
|
233
237
|
getModlog(form?: GetModlogI, options?: RequestOptions): Promise<GetModlogResponse>;
|
234
238
|
/**
|
235
|
-
* @summary Search lemmy.
|
239
|
+
* @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
|
236
240
|
*/
|
237
241
|
search(form: SearchI, options?: RequestOptions): Promise<SearchResponse>;
|
238
242
|
/**
|
239
243
|
* @summary Fetch a non-local / federated object.
|
240
244
|
*/
|
241
|
-
resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<
|
245
|
+
resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<SearchResponse>;
|
242
246
|
/**
|
243
247
|
* @summary Create a new community.
|
244
248
|
*/
|
@@ -395,10 +399,6 @@ export declare class LemmyHttp extends Controller {
|
|
395
399
|
* @summary A moderator remove for a comment.
|
396
400
|
*/
|
397
401
|
removeComment(form: RemoveComment, options?: RequestOptions): Promise<CommentResponse>;
|
398
|
-
/**
|
399
|
-
* @summary Mark a comment as read.
|
400
|
-
*/
|
401
|
-
markCommentReplyAsRead(form: MarkCommentReplyAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
402
402
|
/**
|
403
403
|
* @summary Like / vote on a comment.
|
404
404
|
*/
|
@@ -479,14 +479,6 @@ export declare class LemmyHttp extends Controller {
|
|
479
479
|
* @summary List the content for a person.
|
480
480
|
*/
|
481
481
|
listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<ListPersonContentResponse>;
|
482
|
-
/**
|
483
|
-
* @summary Mark a person mention as read.
|
484
|
-
*/
|
485
|
-
markCommentMentionAsRead(form: MarkPersonCommentMentionAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
486
|
-
/**
|
487
|
-
* @summary Mark a person post body mention as read.
|
488
|
-
*/
|
489
|
-
markPostMentionAsRead(form: MarkPersonPostMentionAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
490
482
|
/**
|
491
483
|
* @summary Ban a person from your site.
|
492
484
|
*/
|
@@ -519,6 +511,10 @@ export declare class LemmyHttp extends Controller {
|
|
519
511
|
* @summary Mark all replies as read.
|
520
512
|
*/
|
521
513
|
markAllNotificationsAsRead(options?: RequestOptions): Promise<SuccessResponse>;
|
514
|
+
/**
|
515
|
+
* @summary Mark a comment as read.
|
516
|
+
*/
|
517
|
+
markNotificationAsRead(form: MarkNotificationAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
522
518
|
/**
|
523
519
|
* @summary Save your user settings.
|
524
520
|
*/
|
@@ -559,6 +555,10 @@ export declare class LemmyHttp extends Controller {
|
|
559
555
|
* @summary List your hidden content.
|
560
556
|
*/
|
561
557
|
listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<ListPersonHiddenResponse>;
|
558
|
+
/**
|
559
|
+
* @summary List your liked content.
|
560
|
+
*/
|
561
|
+
listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise<ListPersonLikedResponse>;
|
562
562
|
/**
|
563
563
|
* @summary Add an admin to your site.
|
564
564
|
*/
|
@@ -733,10 +733,15 @@ export declare class LemmyHttp extends Controller {
|
|
733
733
|
imageHealth(options?: RequestOptions): Promise<SuccessResponse>;
|
734
734
|
/**
|
735
735
|
* Mark donation dialog as shown, so it isn't displayed anymore.
|
736
|
-
*
|
737
|
-
* `HTTP.POST /user/donation_dialog_shown`
|
738
736
|
*/
|
739
|
-
|
737
|
+
donationDialogShown(options?: RequestOptions): Promise<SuccessResponse>;
|
738
|
+
createMultiCommunity(form: CreateMultiCommunity, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
|
739
|
+
updateMultiCommunity(form: UpdateMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
|
740
|
+
getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
|
741
|
+
createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
|
742
|
+
deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
|
743
|
+
listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<ListMultiCommunitiesResponse>;
|
744
|
+
followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<SuccessResponse>;
|
740
745
|
/**
|
741
746
|
* Set the headers (can be used to set the auth header)
|
742
747
|
*/
|
@@ -744,4 +749,13 @@ export declare class LemmyHttp extends Controller {
|
|
744
749
|
[key: string]: string;
|
745
750
|
}): void;
|
746
751
|
}
|
752
|
+
/**
|
753
|
+
* A Lemmy error type.
|
754
|
+
*
|
755
|
+
* The name is the i18n translatable error code.
|
756
|
+
* The msg is either an empty string, or extra non-translatable info.
|
757
|
+
*/
|
758
|
+
export declare class LemmyError extends Error {
|
759
|
+
constructor(name: string, msg?: string);
|
760
|
+
}
|
747
761
|
export {};
|
package/dist/http.js
CHANGED
@@ -21,7 +21,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
21
21
|
};
|
22
22
|
var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers, _LemmyHttp_fetchFunction, _LemmyHttp_buildFullUrl, _LemmyHttp_upload, _LemmyHttp_uploadWithQuery, _LemmyHttp_wrapper;
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
24
|
-
exports.LemmyHttp = void 0;
|
24
|
+
exports.LemmyError = exports.LemmyHttp = void 0;
|
25
25
|
const runtime_1 = require("@tsoa/runtime");
|
26
26
|
const other_types_1 = require("./other_types");
|
27
27
|
var HttpType;
|
@@ -161,7 +161,7 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
161
161
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/modlog", form, options);
|
162
162
|
}
|
163
163
|
/**
|
164
|
-
* @summary Search lemmy.
|
164
|
+
* @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
|
165
165
|
*/
|
166
166
|
async search(form, options) {
|
167
167
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/search", form, options);
|
@@ -406,12 +406,6 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
406
406
|
async removeComment(form, options) {
|
407
407
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/remove", form, options);
|
408
408
|
}
|
409
|
-
/**
|
410
|
-
* @summary Mark a comment as read.
|
411
|
-
*/
|
412
|
-
async markCommentReplyAsRead(form, options) {
|
413
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/mark_as_read", form, options);
|
414
|
-
}
|
415
409
|
/**
|
416
410
|
* @summary Like / vote on a comment.
|
417
411
|
*/
|
@@ -532,18 +526,6 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
532
526
|
async listPersonContent(form = {}, options) {
|
533
527
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person/content", form, options);
|
534
528
|
}
|
535
|
-
/**
|
536
|
-
* @summary Mark a person mention as read.
|
537
|
-
*/
|
538
|
-
async markCommentMentionAsRead(form, options) {
|
539
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/comment/mark_as_read", form, options);
|
540
|
-
}
|
541
|
-
/**
|
542
|
-
* @summary Mark a person post body mention as read.
|
543
|
-
*/
|
544
|
-
async markPostMentionAsRead(form, options) {
|
545
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/post/mark_as_read", form, options);
|
546
|
-
}
|
547
529
|
/**
|
548
530
|
* @summary Ban a person from your site.
|
549
531
|
*/
|
@@ -592,6 +574,12 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
592
574
|
async markAllNotificationsAsRead(options) {
|
593
575
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read/all", {}, options);
|
594
576
|
}
|
577
|
+
/**
|
578
|
+
* @summary Mark a comment as read.
|
579
|
+
*/
|
580
|
+
async markNotificationAsRead(form, options) {
|
581
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read", form, options);
|
582
|
+
}
|
595
583
|
/**
|
596
584
|
* @summary Save your user settings.
|
597
585
|
*/
|
@@ -652,6 +640,12 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
652
640
|
async listPersonHidden(form, options) {
|
653
641
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/hidden", form, options);
|
654
642
|
}
|
643
|
+
/**
|
644
|
+
* @summary List your liked content.
|
645
|
+
*/
|
646
|
+
async listPersonLiked(form, options) {
|
647
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/liked", form, options);
|
648
|
+
}
|
655
649
|
/**
|
656
650
|
* @summary Add an admin to your site.
|
657
651
|
*/
|
@@ -912,12 +906,31 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
912
906
|
}
|
913
907
|
/**
|
914
908
|
* Mark donation dialog as shown, so it isn't displayed anymore.
|
915
|
-
*
|
916
|
-
* `HTTP.POST /user/donation_dialog_shown`
|
917
909
|
*/
|
918
|
-
|
910
|
+
donationDialogShown(options) {
|
919
911
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/donation_dialog_shown", {}, options);
|
920
912
|
}
|
913
|
+
createMultiCommunity(form, options) {
|
914
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community", form, options);
|
915
|
+
}
|
916
|
+
updateMultiCommunity(form, options) {
|
917
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/multi_community", form, options);
|
918
|
+
}
|
919
|
+
getMultiCommunity(form, options) {
|
920
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community", form, options);
|
921
|
+
}
|
922
|
+
createMultiCommunityEntry(form, options) {
|
923
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/entry", form, options);
|
924
|
+
}
|
925
|
+
deleteMultiCommunityEntry(form, options) {
|
926
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/multi_community/entry", form, options);
|
927
|
+
}
|
928
|
+
listMultiCommunities(form, options) {
|
929
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community/list", form, options);
|
930
|
+
}
|
931
|
+
followMultiCommunity(form, options) {
|
932
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/follow", form, options);
|
933
|
+
}
|
921
934
|
/**
|
922
935
|
* Set the headers (can be used to set the auth header)
|
923
936
|
*/
|
@@ -972,14 +985,10 @@ _LemmyHttp_wrapper = async function _LemmyHttp_wrapper(type_, endpoint, form, op
|
|
972
985
|
json = await response.json();
|
973
986
|
}
|
974
987
|
catch {
|
975
|
-
throw new
|
988
|
+
throw new LemmyError(response.statusText);
|
976
989
|
}
|
977
990
|
if (!response.ok) {
|
978
|
-
let err =
|
979
|
-
name: json.error ?? response.statusText,
|
980
|
-
// Leave an empty error message if undefined
|
981
|
-
message: json.message ?? "",
|
982
|
-
};
|
991
|
+
let err = new LemmyError(json.error ?? response.statusText, json.message);
|
983
992
|
throw err;
|
984
993
|
}
|
985
994
|
else {
|
@@ -1388,13 +1397,6 @@ __decorate([
|
|
1388
1397
|
__param(0, (0, runtime_1.Body)()),
|
1389
1398
|
__param(1, (0, runtime_1.Inject)())
|
1390
1399
|
], LemmyHttp.prototype, "removeComment", null);
|
1391
|
-
__decorate([
|
1392
|
-
(0, runtime_1.Security)("bearerAuth"),
|
1393
|
-
(0, runtime_1.Post)("/comment/mark_as_read"),
|
1394
|
-
(0, runtime_1.Tags)("Comment"),
|
1395
|
-
__param(0, (0, runtime_1.Body)()),
|
1396
|
-
__param(1, (0, runtime_1.Inject)())
|
1397
|
-
], LemmyHttp.prototype, "markCommentReplyAsRead", null);
|
1398
1400
|
__decorate([
|
1399
1401
|
(0, runtime_1.Security)("bearerAuth"),
|
1400
1402
|
(0, runtime_1.Post)("/comment/like"),
|
@@ -1537,20 +1539,6 @@ __decorate([
|
|
1537
1539
|
__param(0, (0, runtime_1.Queries)()),
|
1538
1540
|
__param(1, (0, runtime_1.Inject)())
|
1539
1541
|
], LemmyHttp.prototype, "listPersonContent", null);
|
1540
|
-
__decorate([
|
1541
|
-
(0, runtime_1.Security)("bearerAuth"),
|
1542
|
-
(0, runtime_1.Post)("/account/mention/comment/mark_as_read"),
|
1543
|
-
(0, runtime_1.Tags)("Account", "Person"),
|
1544
|
-
__param(0, (0, runtime_1.Body)()),
|
1545
|
-
__param(1, (0, runtime_1.Inject)())
|
1546
|
-
], LemmyHttp.prototype, "markCommentMentionAsRead", null);
|
1547
|
-
__decorate([
|
1548
|
-
(0, runtime_1.Security)("bearerAuth"),
|
1549
|
-
(0, runtime_1.Post)("/account/mention/post/mark_as_read"),
|
1550
|
-
(0, runtime_1.Tags)("Account", "Post"),
|
1551
|
-
__param(0, (0, runtime_1.Body)()),
|
1552
|
-
__param(1, (0, runtime_1.Inject)())
|
1553
|
-
], LemmyHttp.prototype, "markPostMentionAsRead", null);
|
1554
1542
|
__decorate([
|
1555
1543
|
(0, runtime_1.Security)("bearerAuth"),
|
1556
1544
|
(0, runtime_1.Post)("/admin/ban"),
|
@@ -1604,6 +1592,13 @@ __decorate([
|
|
1604
1592
|
(0, runtime_1.Tags)("Account"),
|
1605
1593
|
__param(0, (0, runtime_1.Inject)())
|
1606
1594
|
], LemmyHttp.prototype, "markAllNotificationsAsRead", null);
|
1595
|
+
__decorate([
|
1596
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1597
|
+
(0, runtime_1.Post)("/account/mark_as_read"),
|
1598
|
+
(0, runtime_1.Tags)("Account"),
|
1599
|
+
__param(0, (0, runtime_1.Body)()),
|
1600
|
+
__param(1, (0, runtime_1.Inject)())
|
1601
|
+
], LemmyHttp.prototype, "markNotificationAsRead", null);
|
1607
1602
|
__decorate([
|
1608
1603
|
(0, runtime_1.Security)("bearerAuth"),
|
1609
1604
|
(0, runtime_1.Put)("/account/settings/save"),
|
@@ -1671,6 +1666,13 @@ __decorate([
|
|
1671
1666
|
__param(0, (0, runtime_1.Queries)()),
|
1672
1667
|
__param(1, (0, runtime_1.Inject)())
|
1673
1668
|
], LemmyHttp.prototype, "listPersonHidden", null);
|
1669
|
+
__decorate([
|
1670
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1671
|
+
(0, runtime_1.Get)("/account/liked"),
|
1672
|
+
(0, runtime_1.Tags)("Account"),
|
1673
|
+
__param(0, (0, runtime_1.Queries)()),
|
1674
|
+
__param(1, (0, runtime_1.Inject)())
|
1675
|
+
], LemmyHttp.prototype, "listPersonLiked", null);
|
1674
1676
|
__decorate([
|
1675
1677
|
(0, runtime_1.Security)("bearerAuth"),
|
1676
1678
|
(0, runtime_1.Post)("/admin/add"),
|
@@ -1968,8 +1970,49 @@ __decorate([
|
|
1968
1970
|
__param(0, (0, runtime_1.Inject)())
|
1969
1971
|
], LemmyHttp.prototype, "imageHealth", null);
|
1970
1972
|
__decorate([
|
1973
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1974
|
+
(0, runtime_1.Post)("/user/donation_dialog_shown"),
|
1971
1975
|
__param(0, (0, runtime_1.Inject)())
|
1972
|
-
], LemmyHttp.prototype, "
|
1976
|
+
], LemmyHttp.prototype, "donationDialogShown", null);
|
1977
|
+
__decorate([
|
1978
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1979
|
+
(0, runtime_1.Post)("/multi_community"),
|
1980
|
+
__param(0, (0, runtime_1.Body)()),
|
1981
|
+
__param(1, (0, runtime_1.Inject)())
|
1982
|
+
], LemmyHttp.prototype, "createMultiCommunity", null);
|
1983
|
+
__decorate([
|
1984
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1985
|
+
(0, runtime_1.Put)("/multi_community"),
|
1986
|
+
__param(0, (0, runtime_1.Body)()),
|
1987
|
+
__param(1, (0, runtime_1.Inject)())
|
1988
|
+
], LemmyHttp.prototype, "updateMultiCommunity", null);
|
1989
|
+
__decorate([
|
1990
|
+
(0, runtime_1.Get)("/multi_community"),
|
1991
|
+
__param(0, (0, runtime_1.Queries)()),
|
1992
|
+
__param(1, (0, runtime_1.Inject)())
|
1993
|
+
], LemmyHttp.prototype, "getMultiCommunity", null);
|
1994
|
+
__decorate([
|
1995
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1996
|
+
(0, runtime_1.Post)("/multi_community/entry"),
|
1997
|
+
__param(0, (0, runtime_1.Body)()),
|
1998
|
+
__param(1, (0, runtime_1.Inject)())
|
1999
|
+
], LemmyHttp.prototype, "createMultiCommunityEntry", null);
|
2000
|
+
__decorate([
|
2001
|
+
(0, runtime_1.Security)("bearerAuth"),
|
2002
|
+
(0, runtime_1.Delete)("/multi_community/entry"),
|
2003
|
+
__param(0, (0, runtime_1.Body)()),
|
2004
|
+
__param(1, (0, runtime_1.Inject)())
|
2005
|
+
], LemmyHttp.prototype, "deleteMultiCommunityEntry", null);
|
2006
|
+
__decorate([
|
2007
|
+
(0, runtime_1.Get)("/multi_community/list"),
|
2008
|
+
__param(0, (0, runtime_1.Queries)()),
|
2009
|
+
__param(1, (0, runtime_1.Inject)())
|
2010
|
+
], LemmyHttp.prototype, "listMultiCommunities", null);
|
2011
|
+
__decorate([
|
2012
|
+
(0, runtime_1.Post)("/multi_community/follow"),
|
2013
|
+
__param(0, (0, runtime_1.Body)()),
|
2014
|
+
__param(1, (0, runtime_1.Inject)())
|
2015
|
+
], LemmyHttp.prototype, "followMultiCommunity", null);
|
1973
2016
|
exports.LemmyHttp = LemmyHttp = __decorate([
|
1974
2017
|
(0, runtime_1.Route)("api/v4")
|
1975
2018
|
], LemmyHttp);
|
@@ -1990,3 +2033,18 @@ function createFormData(image) {
|
|
1990
2033
|
}
|
1991
2034
|
return formData;
|
1992
2035
|
}
|
2036
|
+
/**
|
2037
|
+
* A Lemmy error type.
|
2038
|
+
*
|
2039
|
+
* The name is the i18n translatable error code.
|
2040
|
+
* The msg is either an empty string, or extra non-translatable info.
|
2041
|
+
*/
|
2042
|
+
class LemmyError extends Error {
|
2043
|
+
constructor(name, msg) {
|
2044
|
+
super(msg ?? "");
|
2045
|
+
this.name = name;
|
2046
|
+
// Set the prototype explicitly.
|
2047
|
+
Object.setPrototypeOf(this, LemmyError.prototype);
|
2048
|
+
}
|
2049
|
+
}
|
2050
|
+
exports.LemmyError = LemmyError;
|
package/dist/index.d.ts
CHANGED
@@ -45,7 +45,6 @@ export { CommentActions } from "./types/CommentActions";
|
|
45
45
|
export { CommentId } from "./types/CommentId";
|
46
46
|
export { CommentReply } from "./types/CommentReply";
|
47
47
|
export { CommentReplyId } from "./types/CommentReplyId";
|
48
|
-
export { CommentReplyView } from "./types/CommentReplyView";
|
49
48
|
export { CommentReport } from "./types/CommentReport";
|
50
49
|
export { CommentReportId } from "./types/CommentReportId";
|
51
50
|
export { CommentReportResponse } from "./types/CommentReportResponse";
|
@@ -76,7 +75,9 @@ export { CreateCommunity } from "./types/CreateCommunity";
|
|
76
75
|
export { CreateCommunityReport } from "./types/CreateCommunityReport";
|
77
76
|
export { CreateCommunityTag } from "./types/CreateCommunityTag";
|
78
77
|
export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
78
|
+
export { CreateMultiCommunity } from "./types/CreateMultiCommunity";
|
79
79
|
export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
80
|
+
export { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
|
80
81
|
export { CreatePost } from "./types/CreatePost";
|
81
82
|
export { CreatePostLike } from "./types/CreatePostLike";
|
82
83
|
export { CreatePostReport } from "./types/CreatePostReport";
|
@@ -108,12 +109,14 @@ export { EditOAuthProvider } from "./types/EditOAuthProvider";
|
|
108
109
|
export { EditPost } from "./types/EditPost";
|
109
110
|
export { EditPrivateMessage } from "./types/EditPrivateMessage";
|
110
111
|
export { EditSite } from "./types/EditSite";
|
112
|
+
export { ExportDataResponse } from "./types/ExportDataResponse";
|
111
113
|
export { FeaturePost } from "./types/FeaturePost";
|
112
114
|
export { FederatedInstances } from "./types/FederatedInstances";
|
113
115
|
export { FederationBlockList } from "./types/FederationBlockList";
|
114
116
|
export { FederationError } from "./types/FederationError";
|
115
117
|
export { FederationMode } from "./types/FederationMode";
|
116
118
|
export { FollowCommunity } from "./types/FollowCommunity";
|
119
|
+
export { FollowMultiCommunity } from "./types/FollowMultiCommunity";
|
117
120
|
export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
118
121
|
export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
|
119
122
|
export { GetComment } from "./types/GetComment";
|
@@ -127,6 +130,8 @@ export { GetCommunityResponse } from "./types/GetCommunityResponse";
|
|
127
130
|
export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
|
128
131
|
export { GetModlog } from "./types/GetModlog";
|
129
132
|
export { GetModlogResponse } from "./types/GetModlogResponse";
|
133
|
+
export { GetMultiCommunity } from "./types/GetMultiCommunity";
|
134
|
+
export { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
|
130
135
|
export { GetPersonDetails } from "./types/GetPersonDetails";
|
131
136
|
export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
|
132
137
|
export { GetPost } from "./types/GetPost";
|
@@ -147,7 +152,6 @@ export { HidePost } from "./types/HidePost";
|
|
147
152
|
export { ImageDetails } from "./types/ImageDetails";
|
148
153
|
export { ImageGetParams } from "./types/ImageGetParams";
|
149
154
|
export { ImageProxyParams } from "./types/ImageProxyParams";
|
150
|
-
export { InboxCombinedView } from "./types/InboxCombinedView";
|
151
155
|
export { InboxDataType } from "./types/InboxDataType";
|
152
156
|
export { Instance } from "./types/Instance";
|
153
157
|
export { InstanceActions } from "./types/InstanceActions";
|
@@ -156,6 +160,7 @@ export { InstanceWithFederationState } from "./types/InstanceWithFederationState
|
|
156
160
|
export { Language } from "./types/Language";
|
157
161
|
export { LanguageId } from "./types/LanguageId";
|
158
162
|
export { LemmyErrorType } from "./types/LemmyErrorType";
|
163
|
+
export { LikeType } from "./types/LikeType";
|
159
164
|
export { LinkMetadata } from "./types/LinkMetadata";
|
160
165
|
export { ListCommentLikes } from "./types/ListCommentLikes";
|
161
166
|
export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
@@ -170,10 +175,14 @@ export { ListInboxResponse } from "./types/ListInboxResponse";
|
|
170
175
|
export { ListLoginsResponse } from "./types/ListLoginsResponse";
|
171
176
|
export { ListMedia } from "./types/ListMedia";
|
172
177
|
export { ListMediaResponse } from "./types/ListMediaResponse";
|
178
|
+
export { ListMultiCommunities } from "./types/ListMultiCommunities";
|
179
|
+
export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
|
173
180
|
export { ListPersonContent } from "./types/ListPersonContent";
|
174
181
|
export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
175
182
|
export { ListPersonHidden } from "./types/ListPersonHidden";
|
176
183
|
export { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
|
184
|
+
export { ListPersonLiked } from "./types/ListPersonLiked";
|
185
|
+
export { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
|
177
186
|
export { ListPersonRead } from "./types/ListPersonRead";
|
178
187
|
export { ListPersonReadResponse } from "./types/ListPersonReadResponse";
|
179
188
|
export { ListPersonSaved } from "./types/ListPersonSaved";
|
@@ -200,10 +209,8 @@ export { LockPost } from "./types/LockPost";
|
|
200
209
|
export { Login } from "./types/Login";
|
201
210
|
export { LoginResponse } from "./types/LoginResponse";
|
202
211
|
export { LoginToken } from "./types/LoginToken";
|
203
|
-
export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
204
212
|
export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
205
|
-
export {
|
206
|
-
export { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
|
213
|
+
export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
207
214
|
export { MarkPostAsRead } from "./types/MarkPostAsRead";
|
208
215
|
export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
|
209
216
|
export { ModAdd } from "./types/ModAdd";
|
@@ -241,7 +248,17 @@ export { ModTransferCommunityId } from "./types/ModTransferCommunityId";
|
|
241
248
|
export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
|
242
249
|
export { ModlogActionType } from "./types/ModlogActionType";
|
243
250
|
export { ModlogCombinedView } from "./types/ModlogCombinedView";
|
251
|
+
export { MultiCommunity } from "./types/MultiCommunity";
|
252
|
+
export { MultiCommunityFollow } from "./types/MultiCommunityFollow";
|
253
|
+
export { MultiCommunityId } from "./types/MultiCommunityId";
|
254
|
+
export { MultiCommunityView } from "./types/MultiCommunityView";
|
244
255
|
export { MyUserInfo } from "./types/MyUserInfo";
|
256
|
+
export { NotePerson } from "./types/NotePerson";
|
257
|
+
export { Notification } from "./types/Notification";
|
258
|
+
export { NotificationId } from "./types/NotificationId";
|
259
|
+
export { NotificationTypes } from "./types/NotificationTypes";
|
260
|
+
export { NotificationView } from "./types/NotificationView";
|
261
|
+
export { NotificationsMode } from "./types/NotificationsMode";
|
245
262
|
export { OAuthAccount } from "./types/OAuthAccount";
|
246
263
|
export { OAuthProvider } from "./types/OAuthProvider";
|
247
264
|
export { OAuthProviderId } from "./types/OAuthProviderId";
|
@@ -254,13 +271,13 @@ export { Person } from "./types/Person";
|
|
254
271
|
export { PersonActions } from "./types/PersonActions";
|
255
272
|
export { PersonCommentMention } from "./types/PersonCommentMention";
|
256
273
|
export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
|
257
|
-
export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
|
258
274
|
export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
|
259
275
|
export { PersonContentType } from "./types/PersonContentType";
|
260
276
|
export { PersonId } from "./types/PersonId";
|
277
|
+
export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
|
278
|
+
export { PersonNotification } from "./types/PersonNotification";
|
261
279
|
export { PersonPostMention } from "./types/PersonPostMention";
|
262
280
|
export { PersonPostMentionId } from "./types/PersonPostMentionId";
|
263
|
-
export { PersonPostMentionView } from "./types/PersonPostMentionView";
|
264
281
|
export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
|
265
282
|
export { PersonView } from "./types/PersonView";
|
266
283
|
export { PluginMetadata } from "./types/PluginMetadata";
|
@@ -269,6 +286,7 @@ export { PostActions } from "./types/PostActions";
|
|
269
286
|
export { PostFeatureType } from "./types/PostFeatureType";
|
270
287
|
export { PostId } from "./types/PostId";
|
271
288
|
export { PostListingMode } from "./types/PostListingMode";
|
289
|
+
export { PostOrCommentOrPrivateMessage } from "./types/PostOrCommentOrPrivateMessage";
|
272
290
|
export { PostReport } from "./types/PostReport";
|
273
291
|
export { PostReportId } from "./types/PostReportId";
|
274
292
|
export { PostReportResponse } from "./types/PostReportResponse";
|
@@ -305,7 +323,6 @@ export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
|
305
323
|
export { ResolveCommentReport } from "./types/ResolveCommentReport";
|
306
324
|
export { ResolveCommunityReport } from "./types/ResolveCommunityReport";
|
307
325
|
export { ResolveObject } from "./types/ResolveObject";
|
308
|
-
export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
|
309
326
|
export { ResolvePostReport } from "./types/ResolvePostReport";
|
310
327
|
export { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
|
311
328
|
export { SaveComment } from "./types/SaveComment";
|
@@ -329,12 +346,16 @@ export { TaglineId } from "./types/TaglineId";
|
|
329
346
|
export { TaglineResponse } from "./types/TaglineResponse";
|
330
347
|
export { TagsView } from "./types/TagsView";
|
331
348
|
export { TransferCommunity } from "./types/TransferCommunity";
|
349
|
+
export { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
|
332
350
|
export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
351
|
+
export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
352
|
+
export { UpdatePostNotifications } from "./types/UpdatePostNotifications";
|
333
353
|
export { UpdateTagline } from "./types/UpdateTagline";
|
334
354
|
export { UpdateTotp } from "./types/UpdateTotp";
|
335
355
|
export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
336
356
|
export { UploadImageResponse } from "./types/UploadImageResponse";
|
337
357
|
export { UserBlockInstanceParams } from "./types/UserBlockInstanceParams";
|
358
|
+
export { UserSettingsBackup } from "./types/UserSettingsBackup";
|
338
359
|
export { VerifyEmail } from "./types/VerifyEmail";
|
339
360
|
export { VoteShow } from "./types/VoteShow";
|
340
361
|
export { VoteView } from "./types/VoteView";
|
package/dist/other_types.d.ts
CHANGED
@@ -6,6 +6,7 @@ import { GetComments } from "./types/GetComments";
|
|
6
6
|
import { GetCommunity } from "./types/GetCommunity";
|
7
7
|
import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
|
8
8
|
import { GetModlog } from "./types/GetModlog";
|
9
|
+
import { GetMultiCommunity } from "./types/GetMultiCommunity";
|
9
10
|
import { GetPersonDetails } from "./types/GetPersonDetails";
|
10
11
|
import { GetPost } from "./types/GetPost";
|
11
12
|
import { GetPosts } from "./types/GetPosts";
|
@@ -19,8 +20,10 @@ import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
|
|
19
20
|
import { ListCustomEmojis } from "./types/ListCustomEmojis";
|
20
21
|
import { ListInbox } from "./types/ListInbox";
|
21
22
|
import { ListMedia } from "./types/ListMedia";
|
23
|
+
import { ListMultiCommunities } from "./types/ListMultiCommunities";
|
22
24
|
import { ListPersonContent } from "./types/ListPersonContent";
|
23
25
|
import { ListPersonHidden } from "./types/ListPersonHidden";
|
26
|
+
import { ListPersonLiked } from "./types/ListPersonLiked";
|
24
27
|
import { ListPersonRead } from "./types/ListPersonRead";
|
25
28
|
import { ListPersonSaved } from "./types/ListPersonSaved";
|
26
29
|
import { ListPostLikes } from "./types/ListPostLikes";
|
@@ -79,6 +82,8 @@ export interface ListPersonReadI extends ListPersonRead {
|
|
79
82
|
}
|
80
83
|
export interface ListPersonHiddenI extends ListPersonHidden {
|
81
84
|
}
|
85
|
+
export interface ListPersonLikedI extends ListPersonLiked {
|
86
|
+
}
|
82
87
|
export interface ListRegistrationApplicationsI extends ListRegistrationApplications {
|
83
88
|
}
|
84
89
|
export interface GetRegistrationApplicationI extends GetRegistrationApplication {
|
@@ -95,3 +100,7 @@ export interface AdminListUsersI extends AdminListUsers {
|
|
95
100
|
}
|
96
101
|
export interface CommunityIdQueryI extends CommunityIdQuery {
|
97
102
|
}
|
103
|
+
export interface ListMultiCommunitiesI extends ListMultiCommunities {
|
104
|
+
}
|
105
|
+
export interface GetMultiCommunityI extends GetMultiCommunity {
|
106
|
+
}
|