lemmy-js-client 1.0.0-instance-user-blocking.5 → 1.0.0-instance-user-blocking.7
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 +15 -20
- package/dist/http.js +40 -45
- package/dist/index.d.ts +17 -16
- package/dist/other_types.d.ts +2 -2
- package/dist/types/CommentReportView.d.ts +3 -0
- package/dist/types/CommentResponse.d.ts +0 -2
- package/dist/types/CommunityActions.d.ts +2 -0
- package/dist/types/CommunityNotificationsMode.d.ts +4 -0
- package/dist/types/CommunityReportView.d.ts +4 -0
- package/dist/types/CreateCommunityTag.d.ts +3 -1
- package/dist/types/ExportDataResponse.d.ts +13 -0
- package/dist/types/FederationError.d.ts +3 -1
- package/dist/types/LemmyErrorType.d.ts +4 -18
- package/dist/types/{ListInbox.d.ts → ListNotifications.d.ts} +3 -3
- package/dist/types/{ListInboxResponse.d.ts → ListNotificationsResponse.d.ts} +3 -3
- package/dist/types/LocalUser.d.ts +1 -0
- package/dist/types/MarkNotificationAsRead.d.ts +8 -0
- package/dist/types/ModEditPost.d.ts +10 -0
- package/dist/types/Notification.d.ts +16 -0
- package/dist/types/NotificationData.d.ts +10 -0
- package/dist/types/NotificationDataType.d.ts +4 -0
- package/dist/types/NotificationId.d.ts +1 -0
- package/dist/types/NotificationTypes.d.ts +4 -0
- package/dist/types/NotificationView.d.ts +6 -0
- package/dist/types/PersonActions.d.ts +12 -0
- package/dist/types/PostActions.d.ts +2 -0
- package/dist/types/PostActions.js +0 -1
- package/dist/types/PostNotificationsMode.d.ts +4 -0
- package/dist/types/PostNotificationsMode.js +3 -0
- package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
- package/dist/types/PostReportView.d.ts +3 -0
- package/dist/types/PrivateMessage.d.ts +0 -1
- package/dist/types/PrivateMessageReportView.d.ts +2 -0
- package/dist/types/SaveUserSettings.d.ts +4 -0
- package/dist/types/Tag.d.ts +6 -14
- package/dist/types/TagsView.d.ts +1 -1
- package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
- package/dist/types/UpdateCommunityTag.d.ts +3 -2
- package/dist/types/UpdatePostNotifications.d.ts +9 -0
- package/dist/types/UserSettingsBackup.d.ts +31 -0
- package/dist/types/VoteView.d.ts +1 -0
- package/package.json +2 -2
- package/dist/types/CommentReply.d.ts +0 -13
- package/dist/types/CommentReplyId.d.ts +0 -4
- package/dist/types/CommentReplyView.d.ts +0 -31
- package/dist/types/InboxCombinedView.d.ts +0 -13
- package/dist/types/InboxDataType.d.ts +0 -4
- 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/PersonCommentMention.d.ts +0 -13
- package/dist/types/PersonCommentMentionId.d.ts +0 -4
- package/dist/types/PersonCommentMentionView.d.ts +0 -29
- package/dist/types/PersonPostMention.d.ts +0 -13
- package/dist/types/PersonPostMentionId.d.ts +0 -4
- package/dist/types/PersonPostMentionView.d.ts +0 -31
- /package/dist/types/{CommentReplyId.js → CommunityNotificationsMode.js} +0 -0
- /package/dist/types/{CommentReply.js → ExportDataResponse.js} +0 -0
- /package/dist/types/{CommentReplyView.js → ListNotifications.js} +0 -0
- /package/dist/types/{InboxCombinedView.js → ListNotificationsResponse.js} +0 -0
- /package/dist/types/{ListInbox.js → MarkNotificationAsRead.js} +0 -0
- /package/dist/types/{ListInboxResponse.js → ModEditPost.js} +0 -0
- /package/dist/types/{MarkCommentReplyAsRead.js → Notification.js} +0 -0
- /package/dist/types/{MarkPersonCommentMentionAsRead.js → NotificationData.js} +0 -0
- /package/dist/types/{InboxDataType.js → NotificationDataType.js} +0 -0
- /package/dist/types/{PersonCommentMentionId.js → NotificationId.js} +0 -0
- /package/dist/types/{PersonPostMentionId.js → NotificationTypes.js} +0 -0
- /package/dist/types/{MarkPersonPostMentionAsRead.js → NotificationView.js} +0 -0
- /package/dist/types/{PersonCommentMention.js → PostOrCommentOrPrivateMessage.js} +0 -0
- /package/dist/types/{PersonCommentMentionView.js → UpdateCommunityNotifications.js} +0 -0
- /package/dist/types/{PersonPostMention.js → UpdatePostNotifications.js} +0 -0
- /package/dist/types/{PersonPostMentionView.js → UserSettingsBackup.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, GetMultiCommunityI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI,
|
2
|
+
import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, 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";
|
3
3
|
import { AddAdmin } from "./types/AddAdmin";
|
4
4
|
import { AddAdminResponse } from "./types/AddAdminResponse";
|
5
5
|
import { AddModToCommunity } from "./types/AddModToCommunity";
|
@@ -25,6 +25,7 @@ import { CreateCommentReport } from "./types/CreateCommentReport";
|
|
25
25
|
import { CreateCommunity } from "./types/CreateCommunity";
|
26
26
|
import { CreateCommunityReport } from "./types/CreateCommunityReport";
|
27
27
|
import { CreateCommunityTag } from "./types/CreateCommunityTag";
|
28
|
+
import { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
28
29
|
import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
|
29
30
|
import { CreateOAuthProvider } from "./types/CreateOAuthProvider";
|
30
31
|
import { CreatePost } from "./types/CreatePost";
|
@@ -71,7 +72,6 @@ import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationAp
|
|
71
72
|
import { LockPost } from "./types/LockPost";
|
72
73
|
import { Login } from "./types/Login";
|
73
74
|
import { LoginResponse } from "./types/LoginResponse";
|
74
|
-
import { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
75
75
|
import { MarkPostAsRead } from "./types/MarkPostAsRead";
|
76
76
|
import { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
|
77
77
|
import { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
@@ -99,7 +99,6 @@ import { SaveUserSettings } from "./types/SaveUserSettings";
|
|
99
99
|
import { SearchResponse } from "./types/SearchResponse";
|
100
100
|
import { SiteResponse } from "./types/SiteResponse";
|
101
101
|
import { TransferCommunity } from "./types/TransferCommunity";
|
102
|
-
import { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
103
102
|
import { VerifyEmail } from "./types/VerifyEmail";
|
104
103
|
import { HideCommunity } from "./types/HideCommunity";
|
105
104
|
import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
@@ -127,9 +126,6 @@ import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
|
|
127
126
|
import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
128
127
|
import { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
|
129
128
|
import { UploadImageResponse } from "./types/UploadImageResponse";
|
130
|
-
import { ListInboxResponse } from "./types/ListInboxResponse";
|
131
|
-
import { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
|
132
|
-
import { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
|
133
129
|
import { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
|
134
130
|
import { Tag } from "./types/Tag";
|
135
131
|
import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
@@ -148,6 +144,9 @@ import { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
|
|
148
144
|
import { NotePerson } from "./types/NotePerson";
|
149
145
|
import { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
|
150
146
|
import { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
|
147
|
+
import { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
148
|
+
import { ListNotificationsResponse } from "./types/ListNotificationsResponse";
|
149
|
+
import { ModEditPost } from "./types/ModEditPost";
|
151
150
|
type RequestOptions = Pick<RequestInit, "signal">;
|
152
151
|
/**
|
153
152
|
* Helps build lemmy HTTP requests.
|
@@ -331,6 +330,10 @@ export declare class LemmyHttp extends Controller {
|
|
331
330
|
* @summary Edit a post.
|
332
331
|
*/
|
333
332
|
editPost(form: EditPost, options?: RequestOptions): Promise<PostResponse>;
|
333
|
+
/**
|
334
|
+
* @summary Mods can change nsfw flag and tags for a post
|
335
|
+
*/
|
336
|
+
modEditPost(form: ModEditPost, options?: RequestOptions): Promise<PostResponse>;
|
334
337
|
/**
|
335
338
|
* @summary Delete a post.
|
336
339
|
*/
|
@@ -403,10 +406,6 @@ export declare class LemmyHttp extends Controller {
|
|
403
406
|
* @summary A moderator remove for a comment.
|
404
407
|
*/
|
405
408
|
removeComment(form: RemoveComment, options?: RequestOptions): Promise<CommentResponse>;
|
406
|
-
/**
|
407
|
-
* @summary Mark a comment as read.
|
408
|
-
*/
|
409
|
-
markCommentReplyAsRead(form: MarkCommentReplyAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
410
409
|
/**
|
411
410
|
* @summary Like / vote on a comment.
|
412
411
|
*/
|
@@ -491,14 +490,6 @@ export declare class LemmyHttp extends Controller {
|
|
491
490
|
* @summary Make a note for a person.
|
492
491
|
*/
|
493
492
|
notePerson(form: NotePerson, options?: RequestOptions): Promise<SuccessResponse>;
|
494
|
-
/**
|
495
|
-
* @summary Mark a person mention as read.
|
496
|
-
*/
|
497
|
-
markCommentMentionAsRead(form: MarkPersonCommentMentionAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
498
|
-
/**
|
499
|
-
* @summary Mark a person post body mention as read.
|
500
|
-
*/
|
501
|
-
markPostMentionAsRead(form: MarkPersonPostMentionAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
502
493
|
/**
|
503
494
|
* @summary Ban a person from your site.
|
504
495
|
*/
|
@@ -531,6 +522,10 @@ export declare class LemmyHttp extends Controller {
|
|
531
522
|
* @summary Mark all replies as read.
|
532
523
|
*/
|
533
524
|
markAllNotificationsAsRead(options?: RequestOptions): Promise<SuccessResponse>;
|
525
|
+
/**
|
526
|
+
* @summary Mark a comment as read.
|
527
|
+
*/
|
528
|
+
markNotificationAsRead(form: MarkNotificationAsRead, options?: RequestOptions): Promise<SuccessResponse>;
|
534
529
|
/**
|
535
530
|
* @summary Save your user settings.
|
536
531
|
*/
|
@@ -550,7 +545,7 @@ export declare class LemmyHttp extends Controller {
|
|
550
545
|
/**
|
551
546
|
* @summary Get your inbox (replies, comment mentions, post mentions, and messages)
|
552
547
|
*/
|
553
|
-
|
548
|
+
listNotifications(form: ListNotificationsI, options?: RequestOptions): Promise<ListNotificationsResponse>;
|
554
549
|
/**
|
555
550
|
* @summary Verify your email
|
556
551
|
*/
|
@@ -648,7 +643,7 @@ export declare class LemmyHttp extends Controller {
|
|
648
643
|
*/
|
649
644
|
createCommunityTag(form: CreateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
650
645
|
/**
|
651
|
-
* @summary
|
646
|
+
* @summary Edit a community post tag.
|
652
647
|
*/
|
653
648
|
updateCommunityTag(form: UpdateCommunityTag, options?: RequestOptions): Promise<Tag>;
|
654
649
|
/**
|
package/dist/http.js
CHANGED
@@ -298,6 +298,12 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
298
298
|
async editPost(form, options) {
|
299
299
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post", form, options);
|
300
300
|
}
|
301
|
+
/**
|
302
|
+
* @summary Mods can change nsfw flag and tags for a post
|
303
|
+
*/
|
304
|
+
async modEditPost(form, options) {
|
305
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/mod_update", form, options);
|
306
|
+
}
|
301
307
|
/**
|
302
308
|
* @summary Delete a post.
|
303
309
|
*/
|
@@ -406,12 +412,6 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
406
412
|
async removeComment(form, options) {
|
407
413
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/remove", form, options);
|
408
414
|
}
|
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
415
|
/**
|
416
416
|
* @summary Like / vote on a comment.
|
417
417
|
*/
|
@@ -538,18 +538,6 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
538
538
|
async notePerson(form, options) {
|
539
539
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/person/note", form, options);
|
540
540
|
}
|
541
|
-
/**
|
542
|
-
* @summary Mark a person mention as read.
|
543
|
-
*/
|
544
|
-
async markCommentMentionAsRead(form, options) {
|
545
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/comment/mark_as_read", form, options);
|
546
|
-
}
|
547
|
-
/**
|
548
|
-
* @summary Mark a person post body mention as read.
|
549
|
-
*/
|
550
|
-
async markPostMentionAsRead(form, options) {
|
551
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/post/mark_as_read", form, options);
|
552
|
-
}
|
553
541
|
/**
|
554
542
|
* @summary Ban a person from your site.
|
555
543
|
*/
|
@@ -598,6 +586,12 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
598
586
|
async markAllNotificationsAsRead(options) {
|
599
587
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read/all", {}, options);
|
600
588
|
}
|
589
|
+
/**
|
590
|
+
* @summary Mark a comment as read.
|
591
|
+
*/
|
592
|
+
async markNotificationAsRead(form, options) {
|
593
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read", form, options);
|
594
|
+
}
|
601
595
|
/**
|
602
596
|
* @summary Save your user settings.
|
603
597
|
*/
|
@@ -625,8 +619,8 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
625
619
|
/**
|
626
620
|
* @summary Get your inbox (replies, comment mentions, post mentions, and messages)
|
627
621
|
*/
|
628
|
-
async
|
629
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/
|
622
|
+
async listNotifications(form, options) {
|
623
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/notifications", form, options);
|
630
624
|
}
|
631
625
|
/**
|
632
626
|
* @summary Verify your email
|
@@ -773,10 +767,10 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
773
767
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/tag", form, options);
|
774
768
|
}
|
775
769
|
/**
|
776
|
-
* @summary
|
770
|
+
* @summary Edit a community post tag.
|
777
771
|
*/
|
778
772
|
updateCommunityTag(form, options) {
|
779
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.
|
773
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/tag", form, options);
|
780
774
|
}
|
781
775
|
/**
|
782
776
|
* @summary Delete a post tag in a community.
|
@@ -1294,6 +1288,13 @@ __decorate([
|
|
1294
1288
|
__param(0, (0, runtime_1.Body)()),
|
1295
1289
|
__param(1, (0, runtime_1.Inject)())
|
1296
1290
|
], LemmyHttp.prototype, "editPost", null);
|
1291
|
+
__decorate([
|
1292
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1293
|
+
(0, runtime_1.Put)("/post/mod_update"),
|
1294
|
+
(0, runtime_1.Tags)("Post"),
|
1295
|
+
__param(0, (0, runtime_1.Body)()),
|
1296
|
+
__param(1, (0, runtime_1.Inject)())
|
1297
|
+
], LemmyHttp.prototype, "modEditPost", null);
|
1297
1298
|
__decorate([
|
1298
1299
|
(0, runtime_1.Security)("bearerAuth"),
|
1299
1300
|
(0, runtime_1.Post)("/post/delete"),
|
@@ -1421,13 +1422,6 @@ __decorate([
|
|
1421
1422
|
__param(0, (0, runtime_1.Body)()),
|
1422
1423
|
__param(1, (0, runtime_1.Inject)())
|
1423
1424
|
], LemmyHttp.prototype, "removeComment", null);
|
1424
|
-
__decorate([
|
1425
|
-
(0, runtime_1.Security)("bearerAuth"),
|
1426
|
-
(0, runtime_1.Post)("/comment/mark_as_read"),
|
1427
|
-
(0, runtime_1.Tags)("Comment"),
|
1428
|
-
__param(0, (0, runtime_1.Body)()),
|
1429
|
-
__param(1, (0, runtime_1.Inject)())
|
1430
|
-
], LemmyHttp.prototype, "markCommentReplyAsRead", null);
|
1431
1425
|
__decorate([
|
1432
1426
|
(0, runtime_1.Security)("bearerAuth"),
|
1433
1427
|
(0, runtime_1.Post)("/comment/like"),
|
@@ -1577,20 +1571,6 @@ __decorate([
|
|
1577
1571
|
__param(0, (0, runtime_1.Body)()),
|
1578
1572
|
__param(1, (0, runtime_1.Inject)())
|
1579
1573
|
], LemmyHttp.prototype, "notePerson", null);
|
1580
|
-
__decorate([
|
1581
|
-
(0, runtime_1.Security)("bearerAuth"),
|
1582
|
-
(0, runtime_1.Post)("/account/mention/comment/mark_as_read"),
|
1583
|
-
(0, runtime_1.Tags)("Account", "Person"),
|
1584
|
-
__param(0, (0, runtime_1.Body)()),
|
1585
|
-
__param(1, (0, runtime_1.Inject)())
|
1586
|
-
], LemmyHttp.prototype, "markCommentMentionAsRead", null);
|
1587
|
-
__decorate([
|
1588
|
-
(0, runtime_1.Security)("bearerAuth"),
|
1589
|
-
(0, runtime_1.Post)("/account/mention/post/mark_as_read"),
|
1590
|
-
(0, runtime_1.Tags)("Account", "Post"),
|
1591
|
-
__param(0, (0, runtime_1.Body)()),
|
1592
|
-
__param(1, (0, runtime_1.Inject)())
|
1593
|
-
], LemmyHttp.prototype, "markPostMentionAsRead", null);
|
1594
1574
|
__decorate([
|
1595
1575
|
(0, runtime_1.Security)("bearerAuth"),
|
1596
1576
|
(0, runtime_1.Post)("/admin/ban"),
|
@@ -1644,6 +1624,13 @@ __decorate([
|
|
1644
1624
|
(0, runtime_1.Tags)("Account"),
|
1645
1625
|
__param(0, (0, runtime_1.Inject)())
|
1646
1626
|
], LemmyHttp.prototype, "markAllNotificationsAsRead", null);
|
1627
|
+
__decorate([
|
1628
|
+
(0, runtime_1.Security)("bearerAuth"),
|
1629
|
+
(0, runtime_1.Post)("/account/mark_as_read"),
|
1630
|
+
(0, runtime_1.Tags)("Account"),
|
1631
|
+
__param(0, (0, runtime_1.Body)()),
|
1632
|
+
__param(1, (0, runtime_1.Inject)())
|
1633
|
+
], LemmyHttp.prototype, "markNotificationAsRead", null);
|
1647
1634
|
__decorate([
|
1648
1635
|
(0, runtime_1.Security)("bearerAuth"),
|
1649
1636
|
(0, runtime_1.Put)("/account/settings/save"),
|
@@ -1673,11 +1660,11 @@ __decorate([
|
|
1673
1660
|
], LemmyHttp.prototype, "getUnreadCount", null);
|
1674
1661
|
__decorate([
|
1675
1662
|
(0, runtime_1.Security)("bearerAuth"),
|
1676
|
-
(0, runtime_1.Get)("/account/
|
1663
|
+
(0, runtime_1.Get)("/account/notifications"),
|
1677
1664
|
(0, runtime_1.Tags)("Account"),
|
1678
1665
|
__param(0, (0, runtime_1.Queries)()),
|
1679
1666
|
__param(1, (0, runtime_1.Inject)())
|
1680
|
-
], LemmyHttp.prototype, "
|
1667
|
+
], LemmyHttp.prototype, "listNotifications", null);
|
1681
1668
|
__decorate([
|
1682
1669
|
(0, runtime_1.Post)("/account/auth/verify_email"),
|
1683
1670
|
(0, runtime_1.Tags)("Account"),
|
@@ -2024,44 +2011,52 @@ __decorate([
|
|
2024
2011
|
__decorate([
|
2025
2012
|
(0, runtime_1.Security)("bearerAuth"),
|
2026
2013
|
(0, runtime_1.Post)("/user/donation_dialog_shown"),
|
2014
|
+
(0, runtime_1.Tags)("Miscellaneous"),
|
2027
2015
|
__param(0, (0, runtime_1.Inject)())
|
2028
2016
|
], LemmyHttp.prototype, "donationDialogShown", null);
|
2029
2017
|
__decorate([
|
2030
2018
|
(0, runtime_1.Security)("bearerAuth"),
|
2031
2019
|
(0, runtime_1.Post)("/multi_community"),
|
2020
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
2032
2021
|
__param(0, (0, runtime_1.Body)()),
|
2033
2022
|
__param(1, (0, runtime_1.Inject)())
|
2034
2023
|
], LemmyHttp.prototype, "createMultiCommunity", null);
|
2035
2024
|
__decorate([
|
2036
2025
|
(0, runtime_1.Security)("bearerAuth"),
|
2037
2026
|
(0, runtime_1.Put)("/multi_community"),
|
2027
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
2038
2028
|
__param(0, (0, runtime_1.Body)()),
|
2039
2029
|
__param(1, (0, runtime_1.Inject)())
|
2040
2030
|
], LemmyHttp.prototype, "updateMultiCommunity", null);
|
2041
2031
|
__decorate([
|
2042
2032
|
(0, runtime_1.Get)("/multi_community"),
|
2033
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
2043
2034
|
__param(0, (0, runtime_1.Queries)()),
|
2044
2035
|
__param(1, (0, runtime_1.Inject)())
|
2045
2036
|
], LemmyHttp.prototype, "getMultiCommunity", null);
|
2046
2037
|
__decorate([
|
2047
2038
|
(0, runtime_1.Security)("bearerAuth"),
|
2048
2039
|
(0, runtime_1.Post)("/multi_community/entry"),
|
2040
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
2049
2041
|
__param(0, (0, runtime_1.Body)()),
|
2050
2042
|
__param(1, (0, runtime_1.Inject)())
|
2051
2043
|
], LemmyHttp.prototype, "createMultiCommunityEntry", null);
|
2052
2044
|
__decorate([
|
2053
2045
|
(0, runtime_1.Security)("bearerAuth"),
|
2054
2046
|
(0, runtime_1.Delete)("/multi_community/entry"),
|
2047
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
2055
2048
|
__param(0, (0, runtime_1.Body)()),
|
2056
2049
|
__param(1, (0, runtime_1.Inject)())
|
2057
2050
|
], LemmyHttp.prototype, "deleteMultiCommunityEntry", null);
|
2058
2051
|
__decorate([
|
2059
2052
|
(0, runtime_1.Get)("/multi_community/list"),
|
2053
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
2060
2054
|
__param(0, (0, runtime_1.Queries)()),
|
2061
2055
|
__param(1, (0, runtime_1.Inject)())
|
2062
2056
|
], LemmyHttp.prototype, "listMultiCommunities", null);
|
2063
2057
|
__decorate([
|
2064
2058
|
(0, runtime_1.Post)("/multi_community/follow"),
|
2059
|
+
(0, runtime_1.Tags)("Multicommunity"),
|
2065
2060
|
__param(0, (0, runtime_1.Body)()),
|
2066
2061
|
__param(1, (0, runtime_1.Inject)())
|
2067
2062
|
], LemmyHttp.prototype, "followMultiCommunity", null);
|
package/dist/index.d.ts
CHANGED
@@ -43,9 +43,6 @@ export { ChangePassword } from "./types/ChangePassword";
|
|
43
43
|
export { Comment } from "./types/Comment";
|
44
44
|
export { CommentActions } from "./types/CommentActions";
|
45
45
|
export { CommentId } from "./types/CommentId";
|
46
|
-
export { CommentReply } from "./types/CommentReply";
|
47
|
-
export { CommentReplyId } from "./types/CommentReplyId";
|
48
|
-
export { CommentReplyView } from "./types/CommentReplyView";
|
49
46
|
export { CommentReport } from "./types/CommentReport";
|
50
47
|
export { CommentReportId } from "./types/CommentReportId";
|
51
48
|
export { CommentReportResponse } from "./types/CommentReportResponse";
|
@@ -61,6 +58,7 @@ export { CommunityFollowerView } from "./types/CommunityFollowerView";
|
|
61
58
|
export { CommunityId } from "./types/CommunityId";
|
62
59
|
export { CommunityIdQuery } from "./types/CommunityIdQuery";
|
63
60
|
export { CommunityModeratorView } from "./types/CommunityModeratorView";
|
61
|
+
export { CommunityNotificationsMode } from "./types/CommunityNotificationsMode";
|
64
62
|
export { CommunityReport } from "./types/CommunityReport";
|
65
63
|
export { CommunityReportId } from "./types/CommunityReportId";
|
66
64
|
export { CommunityReportResponse } from "./types/CommunityReportResponse";
|
@@ -110,6 +108,7 @@ export { EditOAuthProvider } from "./types/EditOAuthProvider";
|
|
110
108
|
export { EditPost } from "./types/EditPost";
|
111
109
|
export { EditPrivateMessage } from "./types/EditPrivateMessage";
|
112
110
|
export { EditSite } from "./types/EditSite";
|
111
|
+
export { ExportDataResponse } from "./types/ExportDataResponse";
|
113
112
|
export { FeaturePost } from "./types/FeaturePost";
|
114
113
|
export { FederatedInstances } from "./types/FederatedInstances";
|
115
114
|
export { FederationBlockList } from "./types/FederationBlockList";
|
@@ -152,8 +151,6 @@ export { HidePost } from "./types/HidePost";
|
|
152
151
|
export { ImageDetails } from "./types/ImageDetails";
|
153
152
|
export { ImageGetParams } from "./types/ImageGetParams";
|
154
153
|
export { ImageProxyParams } from "./types/ImageProxyParams";
|
155
|
-
export { InboxCombinedView } from "./types/InboxCombinedView";
|
156
|
-
export { InboxDataType } from "./types/InboxDataType";
|
157
154
|
export { Instance } from "./types/Instance";
|
158
155
|
export { InstanceActions } from "./types/InstanceActions";
|
159
156
|
export { InstanceId } from "./types/InstanceId";
|
@@ -171,13 +168,13 @@ export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
|
|
171
168
|
export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
|
172
169
|
export { ListCustomEmojis } from "./types/ListCustomEmojis";
|
173
170
|
export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
|
174
|
-
export { ListInbox } from "./types/ListInbox";
|
175
|
-
export { ListInboxResponse } from "./types/ListInboxResponse";
|
176
171
|
export { ListLoginsResponse } from "./types/ListLoginsResponse";
|
177
172
|
export { ListMedia } from "./types/ListMedia";
|
178
173
|
export { ListMediaResponse } from "./types/ListMediaResponse";
|
179
174
|
export { ListMultiCommunities } from "./types/ListMultiCommunities";
|
180
175
|
export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
|
176
|
+
export { ListNotifications } from "./types/ListNotifications";
|
177
|
+
export { ListNotificationsResponse } from "./types/ListNotificationsResponse";
|
181
178
|
export { ListPersonContent } from "./types/ListPersonContent";
|
182
179
|
export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
183
180
|
export { ListPersonHidden } from "./types/ListPersonHidden";
|
@@ -210,10 +207,8 @@ export { LockPost } from "./types/LockPost";
|
|
210
207
|
export { Login } from "./types/Login";
|
211
208
|
export { LoginResponse } from "./types/LoginResponse";
|
212
209
|
export { LoginToken } from "./types/LoginToken";
|
213
|
-
export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
214
210
|
export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
215
|
-
export {
|
216
|
-
export { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
|
211
|
+
export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
217
212
|
export { MarkPostAsRead } from "./types/MarkPostAsRead";
|
218
213
|
export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
|
219
214
|
export { ModAdd } from "./types/ModAdd";
|
@@ -231,6 +226,7 @@ export { ModBanView } from "./types/ModBanView";
|
|
231
226
|
export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
|
232
227
|
export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
|
233
228
|
export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
|
229
|
+
export { ModEditPost } from "./types/ModEditPost";
|
234
230
|
export { ModFeaturePost } from "./types/ModFeaturePost";
|
235
231
|
export { ModFeaturePostId } from "./types/ModFeaturePostId";
|
236
232
|
export { ModFeaturePostView } from "./types/ModFeaturePostView";
|
@@ -257,6 +253,12 @@ export { MultiCommunityId } from "./types/MultiCommunityId";
|
|
257
253
|
export { MultiCommunityView } from "./types/MultiCommunityView";
|
258
254
|
export { MyUserInfo } from "./types/MyUserInfo";
|
259
255
|
export { NotePerson } from "./types/NotePerson";
|
256
|
+
export { Notification } from "./types/Notification";
|
257
|
+
export { NotificationData } from "./types/NotificationData";
|
258
|
+
export { NotificationDataType } from "./types/NotificationDataType";
|
259
|
+
export { NotificationId } from "./types/NotificationId";
|
260
|
+
export { NotificationTypes } from "./types/NotificationTypes";
|
261
|
+
export { NotificationView } from "./types/NotificationView";
|
260
262
|
export { OAuthAccount } from "./types/OAuthAccount";
|
261
263
|
export { OAuthProvider } from "./types/OAuthProvider";
|
262
264
|
export { OAuthProviderId } from "./types/OAuthProviderId";
|
@@ -267,16 +269,10 @@ export { PasswordReset } from "./types/PasswordReset";
|
|
267
269
|
export { PendingFollow } from "./types/PendingFollow";
|
268
270
|
export { Person } from "./types/Person";
|
269
271
|
export { PersonActions } from "./types/PersonActions";
|
270
|
-
export { PersonCommentMention } from "./types/PersonCommentMention";
|
271
|
-
export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
|
272
|
-
export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
|
273
272
|
export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
|
274
273
|
export { PersonContentType } from "./types/PersonContentType";
|
275
274
|
export { PersonId } from "./types/PersonId";
|
276
275
|
export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
|
277
|
-
export { PersonPostMention } from "./types/PersonPostMention";
|
278
|
-
export { PersonPostMentionId } from "./types/PersonPostMentionId";
|
279
|
-
export { PersonPostMentionView } from "./types/PersonPostMentionView";
|
280
276
|
export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
|
281
277
|
export { PersonView } from "./types/PersonView";
|
282
278
|
export { PluginMetadata } from "./types/PluginMetadata";
|
@@ -285,6 +281,8 @@ export { PostActions } from "./types/PostActions";
|
|
285
281
|
export { PostFeatureType } from "./types/PostFeatureType";
|
286
282
|
export { PostId } from "./types/PostId";
|
287
283
|
export { PostListingMode } from "./types/PostListingMode";
|
284
|
+
export { PostNotificationsMode } from "./types/PostNotificationsMode";
|
285
|
+
export { PostOrCommentOrPrivateMessage } from "./types/PostOrCommentOrPrivateMessage";
|
288
286
|
export { PostReport } from "./types/PostReport";
|
289
287
|
export { PostReportId } from "./types/PostReportId";
|
290
288
|
export { PostReportResponse } from "./types/PostReportResponse";
|
@@ -344,14 +342,17 @@ export { TaglineId } from "./types/TaglineId";
|
|
344
342
|
export { TaglineResponse } from "./types/TaglineResponse";
|
345
343
|
export { TagsView } from "./types/TagsView";
|
346
344
|
export { TransferCommunity } from "./types/TransferCommunity";
|
345
|
+
export { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
|
347
346
|
export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
348
347
|
export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
348
|
+
export { UpdatePostNotifications } from "./types/UpdatePostNotifications";
|
349
349
|
export { UpdateTagline } from "./types/UpdateTagline";
|
350
350
|
export { UpdateTotp } from "./types/UpdateTotp";
|
351
351
|
export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
352
352
|
export { UploadImageResponse } from "./types/UploadImageResponse";
|
353
353
|
export { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
|
354
354
|
export { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
|
355
|
+
export { UserSettingsBackup } from "./types/UserSettingsBackup";
|
355
356
|
export { VerifyEmail } from "./types/VerifyEmail";
|
356
357
|
export { VoteShow } from "./types/VoteShow";
|
357
358
|
export { VoteView } from "./types/VoteView";
|
package/dist/other_types.d.ts
CHANGED
@@ -18,7 +18,7 @@ import { ListCommentLikes } from "./types/ListCommentLikes";
|
|
18
18
|
import { ListCommunities } from "./types/ListCommunities";
|
19
19
|
import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
|
20
20
|
import { ListCustomEmojis } from "./types/ListCustomEmojis";
|
21
|
-
import {
|
21
|
+
import { ListNotifications } from "./types/ListNotifications";
|
22
22
|
import { ListMedia } from "./types/ListMedia";
|
23
23
|
import { ListMultiCommunities } from "./types/ListMultiCommunities";
|
24
24
|
import { ListPersonContent } from "./types/ListPersonContent";
|
@@ -74,7 +74,7 @@ export interface ListPersonContentI extends ListPersonContent {
|
|
74
74
|
}
|
75
75
|
export interface GetReportCountI extends GetReportCount {
|
76
76
|
}
|
77
|
-
export interface
|
77
|
+
export interface ListNotificationsI extends ListNotifications {
|
78
78
|
}
|
79
79
|
export interface ListPersonSavedI extends ListPersonSaved {
|
80
80
|
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { CommunityFollowerState } from "./CommunityFollowerState";
|
2
|
+
import type { CommunityNotificationsMode } from "./CommunityNotificationsMode";
|
2
3
|
export type CommunityActions = {
|
3
4
|
/**
|
4
5
|
* When the community was followed.
|
@@ -24,4 +25,5 @@ export type CommunityActions = {
|
|
24
25
|
* When their ban expires.
|
25
26
|
*/
|
26
27
|
ban_expires_at?: string;
|
28
|
+
notifications?: CommunityNotificationsMode;
|
27
29
|
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { PostOrCommentOrPrivateMessage } from "./PostOrCommentOrPrivateMessage";
|
2
|
+
import type { UserSettingsBackup } from "./UserSettingsBackup";
|
3
|
+
/**
|
4
|
+
* Your exported data.
|
5
|
+
*/
|
6
|
+
export type ExportDataResponse = {
|
7
|
+
notifications: Array<PostOrCommentOrPrivateMessage>;
|
8
|
+
content: Array<PostOrCommentOrPrivateMessage>;
|
9
|
+
read_posts: Array<string>;
|
10
|
+
liked: Array<string>;
|
11
|
+
moderates: Array<string>;
|
12
|
+
settings: UserSettingsBackup;
|
13
|
+
};
|
@@ -7,4 +7,6 @@ export type FederationError = "InvalidCommunity" | "CannotCreatePostOrCommentInD
|
|
7
7
|
DomainBlocked: string;
|
8
8
|
} | {
|
9
9
|
DomainNotInAllowList: string;
|
10
|
-
} | "FederationDisabledByStrictAllowList" | "ContradictingFilters" | "UrlWithoutDomain" | "InboxTimeout" | "CantDeleteSite" | "ObjectIsNotPublic" | "ObjectIsNotPrivate" |
|
10
|
+
} | "FederationDisabledByStrictAllowList" | "ContradictingFilters" | "UrlWithoutDomain" | "InboxTimeout" | "CantDeleteSite" | "ObjectIsNotPublic" | "ObjectIsNotPrivate" | {
|
11
|
+
InvalidFollow: string;
|
12
|
+
} | "Unreachable";
|
@@ -193,13 +193,9 @@ export type LemmyErrorType = {
|
|
193
193
|
} | {
|
194
194
|
error: "couldnt_update_community";
|
195
195
|
} | {
|
196
|
-
error: "
|
196
|
+
error: "couldnt_create_notification";
|
197
197
|
} | {
|
198
|
-
error: "
|
199
|
-
} | {
|
200
|
-
error: "couldnt_create_person_post_mention";
|
201
|
-
} | {
|
202
|
-
error: "couldnt_update_person_post_mention";
|
198
|
+
error: "couldnt_update_notification";
|
203
199
|
} | {
|
204
200
|
error: "couldnt_create_post";
|
205
201
|
} | {
|
@@ -240,9 +236,9 @@ export type LemmyErrorType = {
|
|
240
236
|
} | {
|
241
237
|
error: "contradicting_filters";
|
242
238
|
} | {
|
243
|
-
error: "
|
239
|
+
error: "instance_block_communities_already_exists";
|
244
240
|
} | {
|
245
|
-
error: "
|
241
|
+
error: "instance_block_persons_already_exists";
|
246
242
|
} | {
|
247
243
|
error: "too_many_items";
|
248
244
|
} | {
|
@@ -251,8 +247,6 @@ export type LemmyErrorType = {
|
|
251
247
|
error: "invalid_unix_time";
|
252
248
|
} | {
|
253
249
|
error: "invalid_bot_action";
|
254
|
-
} | {
|
255
|
-
error: "invalid_tag_name";
|
256
250
|
} | {
|
257
251
|
error: "tag_not_in_community";
|
258
252
|
} | {
|
@@ -294,12 +288,6 @@ export type LemmyErrorType = {
|
|
294
288
|
message: string;
|
295
289
|
} | {
|
296
290
|
error: "invalid_fetch_limit";
|
297
|
-
} | {
|
298
|
-
error: "couldnt_create_comment_reply";
|
299
|
-
} | {
|
300
|
-
error: "couldnt_update_comment_reply";
|
301
|
-
} | {
|
302
|
-
error: "couldnt_mark_comment_reply_as_read";
|
303
291
|
} | {
|
304
292
|
error: "couldnt_create_emoji";
|
305
293
|
} | {
|
@@ -326,8 +314,6 @@ export type LemmyErrorType = {
|
|
326
314
|
error: "couldnt_update_tag";
|
327
315
|
} | {
|
328
316
|
error: "couldnt_create_post_tag";
|
329
|
-
} | {
|
330
|
-
error: "couldnt_update_post_tag";
|
331
317
|
} | {
|
332
318
|
error: "couldnt_create_tagline";
|
333
319
|
} | {
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import type {
|
1
|
+
import type { NotificationDataType } from "./NotificationDataType";
|
2
2
|
import type { PaginationCursor } from "./PaginationCursor";
|
3
3
|
/**
|
4
4
|
* Get your inbox (replies, comment mentions, post mentions, and messages)
|
5
5
|
*/
|
6
|
-
export type
|
7
|
-
type_?:
|
6
|
+
export type ListNotifications = {
|
7
|
+
type_?: NotificationDataType;
|
8
8
|
unread_only?: boolean;
|
9
9
|
page_cursor?: PaginationCursor;
|
10
10
|
page_back?: boolean;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import type {
|
1
|
+
import type { NotificationView } from "./NotificationView";
|
2
2
|
import type { PaginationCursor } from "./PaginationCursor";
|
3
3
|
/**
|
4
4
|
* Get your inbox (replies, comment mentions, post mentions, and messages)
|
5
5
|
*/
|
6
|
-
export type
|
7
|
-
|
6
|
+
export type ListNotificationsResponse = {
|
7
|
+
notifications: Array<NotificationView>;
|
8
8
|
/**
|
9
9
|
* the pagination cursor to use to fetch the next page
|
10
10
|
*/
|