lemmy-js-client 1.0.0-instance-user-blocking.6 → 1.0.0-instance-user-blocking.8
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 +14 -19
- 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/CommentSlimView.d.ts +0 -3
- package/dist/types/CommentView.d.ts +0 -3
- 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/CommunityView.d.ts +0 -2
- package/dist/types/CreateCommunityTag.d.ts +3 -1
- package/dist/types/ExportDataResponse.d.ts +1 -1
- package/dist/types/FederationError.d.ts +3 -1
- package/dist/types/LemmyErrorType.d.ts +2 -16
- 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/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/PostActions.d.ts +2 -0
- package/dist/types/PostActions.js +0 -1
- package/dist/types/PostNotificationsMode.d.ts +4 -0
- package/dist/types/PostReportView.d.ts +3 -0
- package/dist/types/PostView.d.ts +0 -3
- package/dist/types/PrivateMessage.d.ts +0 -1
- package/dist/types/PrivateMessageReportView.d.ts +2 -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/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/InboxCombined.d.ts +0 -16
- package/dist/types/InboxCombinedId.d.ts +0 -4
- package/dist/types/InboxCombinedView.d.ts +0 -13
- package/dist/types/InboxCombinedViewInternal.d.ts +0 -43
- 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/MarkPersonPostMentionAsRead.js +0 -2
- package/dist/types/PersonCommentMention.d.ts +0 -13
- package/dist/types/PersonCommentMention.js +0 -2
- package/dist/types/PersonCommentMentionId.d.ts +0 -4
- package/dist/types/PersonCommentMentionView.d.ts +0 -29
- package/dist/types/PersonCommentMentionView.js +0 -2
- package/dist/types/PersonPostMention.d.ts +0 -13
- package/dist/types/PersonPostMention.js +0 -2
- package/dist/types/PersonPostMentionId.d.ts +0 -4
- package/dist/types/PersonPostMentionView.d.ts +0 -31
- package/dist/types/PersonPostMentionView.js +0 -2
- /package/dist/types/{CommentReplyId.js → CommunityNotificationsMode.js} +0 -0
- /package/dist/types/{CommentReply.js → ListNotifications.js} +0 -0
- /package/dist/types/{CommentReplyView.js → ListNotificationsResponse.js} +0 -0
- /package/dist/types/{InboxCombined.js → MarkNotificationAsRead.js} +0 -0
- /package/dist/types/{InboxCombinedView.js → ModEditPost.js} +0 -0
- /package/dist/types/{InboxCombinedViewInternal.js → Notification.js} +0 -0
- /package/dist/types/{ListInbox.js → NotificationData.js} +0 -0
- /package/dist/types/{InboxCombinedId.js → NotificationDataType.js} +0 -0
- /package/dist/types/{InboxDataType.js → NotificationId.js} +0 -0
- /package/dist/types/{PersonCommentMentionId.js → NotificationTypes.js} +0 -0
- /package/dist/types/{ListInboxResponse.js → NotificationView.js} +0 -0
- /package/dist/types/{PersonPostMentionId.js → PostNotificationsMode.js} +0 -0
- /package/dist/types/{MarkCommentReplyAsRead.js → UpdateCommunityNotifications.js} +0 -0
- /package/dist/types/{MarkPersonCommentMentionAsRead.js → UpdatePostNotifications.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";
|
@@ -153,11 +151,6 @@ export { HidePost } from "./types/HidePost";
|
|
153
151
|
export { ImageDetails } from "./types/ImageDetails";
|
154
152
|
export { ImageGetParams } from "./types/ImageGetParams";
|
155
153
|
export { ImageProxyParams } from "./types/ImageProxyParams";
|
156
|
-
export { InboxCombined } from "./types/InboxCombined";
|
157
|
-
export { InboxCombinedId } from "./types/InboxCombinedId";
|
158
|
-
export { InboxCombinedView } from "./types/InboxCombinedView";
|
159
|
-
export { InboxCombinedViewInternal } from "./types/InboxCombinedViewInternal";
|
160
|
-
export { InboxDataType } from "./types/InboxDataType";
|
161
154
|
export { Instance } from "./types/Instance";
|
162
155
|
export { InstanceActions } from "./types/InstanceActions";
|
163
156
|
export { InstanceId } from "./types/InstanceId";
|
@@ -175,13 +168,13 @@ export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows
|
|
175
168
|
export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
|
176
169
|
export { ListCustomEmojis } from "./types/ListCustomEmojis";
|
177
170
|
export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
|
178
|
-
export { ListInbox } from "./types/ListInbox";
|
179
|
-
export { ListInboxResponse } from "./types/ListInboxResponse";
|
180
171
|
export { ListLoginsResponse } from "./types/ListLoginsResponse";
|
181
172
|
export { ListMedia } from "./types/ListMedia";
|
182
173
|
export { ListMediaResponse } from "./types/ListMediaResponse";
|
183
174
|
export { ListMultiCommunities } from "./types/ListMultiCommunities";
|
184
175
|
export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
|
176
|
+
export { ListNotifications } from "./types/ListNotifications";
|
177
|
+
export { ListNotificationsResponse } from "./types/ListNotificationsResponse";
|
185
178
|
export { ListPersonContent } from "./types/ListPersonContent";
|
186
179
|
export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
187
180
|
export { ListPersonHidden } from "./types/ListPersonHidden";
|
@@ -214,10 +207,8 @@ export { LockPost } from "./types/LockPost";
|
|
214
207
|
export { Login } from "./types/Login";
|
215
208
|
export { LoginResponse } from "./types/LoginResponse";
|
216
209
|
export { LoginToken } from "./types/LoginToken";
|
217
|
-
export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
|
218
210
|
export { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
219
|
-
export {
|
220
|
-
export { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
|
211
|
+
export { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
|
221
212
|
export { MarkPostAsRead } from "./types/MarkPostAsRead";
|
222
213
|
export { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
|
223
214
|
export { ModAdd } from "./types/ModAdd";
|
@@ -235,6 +226,7 @@ export { ModBanView } from "./types/ModBanView";
|
|
235
226
|
export { ModChangeCommunityVisibility } from "./types/ModChangeCommunityVisibility";
|
236
227
|
export { ModChangeCommunityVisibilityId } from "./types/ModChangeCommunityVisibilityId";
|
237
228
|
export { ModChangeCommunityVisibilityView } from "./types/ModChangeCommunityVisibilityView";
|
229
|
+
export { ModEditPost } from "./types/ModEditPost";
|
238
230
|
export { ModFeaturePost } from "./types/ModFeaturePost";
|
239
231
|
export { ModFeaturePostId } from "./types/ModFeaturePostId";
|
240
232
|
export { ModFeaturePostView } from "./types/ModFeaturePostView";
|
@@ -261,6 +253,12 @@ export { MultiCommunityId } from "./types/MultiCommunityId";
|
|
261
253
|
export { MultiCommunityView } from "./types/MultiCommunityView";
|
262
254
|
export { MyUserInfo } from "./types/MyUserInfo";
|
263
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";
|
264
262
|
export { OAuthAccount } from "./types/OAuthAccount";
|
265
263
|
export { OAuthProvider } from "./types/OAuthProvider";
|
266
264
|
export { OAuthProviderId } from "./types/OAuthProviderId";
|
@@ -271,16 +269,10 @@ export { PasswordReset } from "./types/PasswordReset";
|
|
271
269
|
export { PendingFollow } from "./types/PendingFollow";
|
272
270
|
export { Person } from "./types/Person";
|
273
271
|
export { PersonActions } from "./types/PersonActions";
|
274
|
-
export { PersonCommentMention } from "./types/PersonCommentMention";
|
275
|
-
export { PersonCommentMentionId } from "./types/PersonCommentMentionId";
|
276
|
-
export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
|
277
272
|
export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
|
278
273
|
export { PersonContentType } from "./types/PersonContentType";
|
279
274
|
export { PersonId } from "./types/PersonId";
|
280
275
|
export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
|
281
|
-
export { PersonPostMention } from "./types/PersonPostMention";
|
282
|
-
export { PersonPostMentionId } from "./types/PersonPostMentionId";
|
283
|
-
export { PersonPostMentionView } from "./types/PersonPostMentionView";
|
284
276
|
export { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
|
285
277
|
export { PersonView } from "./types/PersonView";
|
286
278
|
export { PluginMetadata } from "./types/PluginMetadata";
|
@@ -289,6 +281,7 @@ export { PostActions } from "./types/PostActions";
|
|
289
281
|
export { PostFeatureType } from "./types/PostFeatureType";
|
290
282
|
export { PostId } from "./types/PostId";
|
291
283
|
export { PostListingMode } from "./types/PostListingMode";
|
284
|
+
export { PostNotificationsMode } from "./types/PostNotificationsMode";
|
292
285
|
export { PostOrCommentOrPrivateMessage } from "./types/PostOrCommentOrPrivateMessage";
|
293
286
|
export { PostReport } from "./types/PostReport";
|
294
287
|
export { PostReportId } from "./types/PostReportId";
|
@@ -349,8 +342,10 @@ export { TaglineId } from "./types/TaglineId";
|
|
349
342
|
export { TaglineResponse } from "./types/TaglineResponse";
|
350
343
|
export { TagsView } from "./types/TagsView";
|
351
344
|
export { TransferCommunity } from "./types/TransferCommunity";
|
345
|
+
export { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
|
352
346
|
export { UpdateCommunityTag } from "./types/UpdateCommunityTag";
|
353
347
|
export { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
|
348
|
+
export { UpdatePostNotifications } from "./types/UpdatePostNotifications";
|
354
349
|
export { UpdateTagline } from "./types/UpdateTagline";
|
355
350
|
export { UpdateTotp } from "./types/UpdateTotp";
|
356
351
|
export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
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,6 +1,5 @@
|
|
1
1
|
import type { Comment } from "./Comment";
|
2
2
|
import type { CommentActions } from "./CommentActions";
|
3
|
-
import type { InstanceActions } from "./InstanceActions";
|
4
3
|
import type { Person } from "./Person";
|
5
4
|
import type { PersonActions } from "./PersonActions";
|
6
5
|
/**
|
@@ -11,8 +10,6 @@ export type CommentSlimView = {
|
|
11
10
|
creator: Person;
|
12
11
|
comment_actions?: CommentActions;
|
13
12
|
person_actions?: PersonActions;
|
14
|
-
instance_communities_actions?: InstanceActions;
|
15
|
-
instance_persons_actions?: InstanceActions;
|
16
13
|
creator_is_admin: boolean;
|
17
14
|
can_mod: boolean;
|
18
15
|
creator_banned: boolean;
|
@@ -2,7 +2,6 @@ import type { Comment } from "./Comment";
|
|
2
2
|
import type { CommentActions } from "./CommentActions";
|
3
3
|
import type { Community } from "./Community";
|
4
4
|
import type { CommunityActions } from "./CommunityActions";
|
5
|
-
import type { InstanceActions } from "./InstanceActions";
|
6
5
|
import type { Person } from "./Person";
|
7
6
|
import type { PersonActions } from "./PersonActions";
|
8
7
|
import type { Post } from "./Post";
|
@@ -18,8 +17,6 @@ export type CommentView = {
|
|
18
17
|
community_actions?: CommunityActions;
|
19
18
|
comment_actions?: CommentActions;
|
20
19
|
person_actions?: PersonActions;
|
21
|
-
instance_communities_actions?: InstanceActions;
|
22
|
-
instance_persons_actions?: InstanceActions;
|
23
20
|
creator_is_admin: boolean;
|
24
21
|
post_tags: TagsView;
|
25
22
|
can_mod: boolean;
|
@@ -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
|
};
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import type { Community } from "./Community";
|
2
2
|
import type { CommunityActions } from "./CommunityActions";
|
3
|
-
import type { InstanceActions } from "./InstanceActions";
|
4
3
|
import type { TagsView } from "./TagsView";
|
5
4
|
/**
|
6
5
|
* A community view.
|
@@ -8,7 +7,6 @@ import type { TagsView } from "./TagsView";
|
|
8
7
|
export type CommunityView = {
|
9
8
|
community: Community;
|
10
9
|
community_actions?: CommunityActions;
|
11
|
-
instance_actions?: InstanceActions;
|
12
10
|
can_mod: boolean;
|
13
11
|
post_tags: TagsView;
|
14
12
|
};
|
@@ -4,7 +4,7 @@ import type { UserSettingsBackup } from "./UserSettingsBackup";
|
|
4
4
|
* Your exported data.
|
5
5
|
*/
|
6
6
|
export type ExportDataResponse = {
|
7
|
-
|
7
|
+
notifications: Array<PostOrCommentOrPrivateMessage>;
|
8
8
|
content: Array<PostOrCommentOrPrivateMessage>;
|
9
9
|
read_posts: Array<string>;
|
10
10
|
liked: Array<string>;
|
@@ -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
|
} | {
|
@@ -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;
|