lemmy-js-client 0.17.0-rc.31 → 0.17.0-rc.35

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,5 @@
1
1
  import { Option } from "@sniptt/monads";
2
+ import { CommentReplyView, CommentView, PersonMentionView } from "./views";
2
3
  export declare const VERSION = "v3";
3
4
  /**
4
5
  * All of the websocket operations available.
@@ -16,26 +17,26 @@ export declare enum UserOperation {
16
17
  EditComment = 9,
17
18
  DeleteComment = 10,
18
19
  RemoveComment = 11,
19
- MarkCommentAsRead = 12,
20
- SaveComment = 13,
21
- CreateCommentLike = 14,
22
- GetPosts = 15,
23
- CreatePostLike = 16,
24
- EditPost = 17,
25
- DeletePost = 18,
26
- RemovePost = 19,
27
- LockPost = 20,
28
- StickyPost = 21,
29
- MarkPostAsRead = 22,
30
- SavePost = 23,
31
- EditCommunity = 24,
32
- DeleteCommunity = 25,
33
- RemoveCommunity = 26,
34
- FollowCommunity = 27,
35
- GetPersonDetails = 28,
36
- GetReplies = 29,
37
- GetPersonMentions = 30,
38
- MarkPersonMentionAsRead = 31,
20
+ SaveComment = 12,
21
+ CreateCommentLike = 13,
22
+ GetPosts = 14,
23
+ CreatePostLike = 15,
24
+ EditPost = 16,
25
+ DeletePost = 17,
26
+ RemovePost = 18,
27
+ LockPost = 19,
28
+ StickyPost = 20,
29
+ MarkPostAsRead = 21,
30
+ SavePost = 22,
31
+ EditCommunity = 23,
32
+ DeleteCommunity = 24,
33
+ RemoveCommunity = 25,
34
+ FollowCommunity = 26,
35
+ GetPersonDetails = 27,
36
+ GetReplies = 28,
37
+ GetPersonMentions = 29,
38
+ MarkPersonMentionAsRead = 30,
39
+ MarkCommentReplyAsRead = 31,
39
40
  GetModlog = 32,
40
41
  BanFromCommunity = 33,
41
42
  AddModToCommunity = 34,
@@ -64,37 +65,46 @@ export declare enum UserOperation {
64
65
  GetPrivateMessages = 57,
65
66
  UserJoin = 58,
66
67
  GetComments = 59,
67
- GetSiteConfig = 60,
68
- SaveSiteConfig = 61,
69
- PostJoin = 62,
70
- CommunityJoin = 63,
71
- ChangePassword = 64,
72
- GetSiteMetadata = 65,
73
- BlockCommunity = 66,
74
- BlockPerson = 67,
75
- CreateCommentReport = 68,
76
- ResolveCommentReport = 69,
77
- ListCommentReports = 70,
78
- CreatePostReport = 71,
79
- ResolvePostReport = 72,
80
- ListPostReports = 73,
81
- GetReportCount = 74,
82
- GetUnreadCount = 75,
83
- VerifyEmail = 76
68
+ PostJoin = 60,
69
+ CommunityJoin = 61,
70
+ ChangePassword = 62,
71
+ GetSiteMetadata = 63,
72
+ BlockCommunity = 64,
73
+ BlockPerson = 65,
74
+ PurgePerson = 66,
75
+ PurgeCommunity = 67,
76
+ PurgePost = 68,
77
+ PurgeComment = 69,
78
+ CreateCommentReport = 70,
79
+ ResolveCommentReport = 71,
80
+ ListCommentReports = 72,
81
+ CreatePostReport = 73,
82
+ ResolvePostReport = 74,
83
+ ListPostReports = 75,
84
+ GetReportCount = 76,
85
+ GetUnreadCount = 77,
86
+ VerifyEmail = 78
84
87
  }
85
88
  /**
86
- * Different sort types used in lemmy.
89
+ * Different post sort types used in lemmy.
87
90
  */
88
91
  export declare enum SortType {
89
92
  /**
90
- * Posts sorted by the most recent comment.
93
+ * Posts sorted by hot, but bumped by new comments up to 2 days
91
94
  */
92
95
  Active = "Active",
93
96
  /**
94
- * Posts sorted by the published time.
97
+ * Posts sorted by a decaying rank.
95
98
  */
96
99
  Hot = "Hot",
100
+ /**
101
+ * Posts sorted by the published time.
102
+ */
97
103
  New = "New",
104
+ /**
105
+ * Posts sorted by the published time ascending
106
+ */
107
+ Old = "Old",
98
108
  /**
99
109
  * The top posts for this last day.
100
110
  */
@@ -124,6 +134,27 @@ export declare enum SortType {
124
134
  */
125
135
  NewComments = "NewComments"
126
136
  }
137
+ /**
138
+ * Different comment sort types used in lemmy.
139
+ */
140
+ export declare enum CommentSortType {
141
+ /**
142
+ * Comments sorted by a decaying rank.
143
+ */
144
+ Hot = "Hot",
145
+ /**
146
+ * Comments sorted by top score.
147
+ */
148
+ Top = "Top",
149
+ /**
150
+ * Comments sorted by new.
151
+ */
152
+ New = "New",
153
+ /**
154
+ * Comments sorted by old.
155
+ */
156
+ Old = "Old"
157
+ }
127
158
  /**
128
159
  * The different listing types for post and comment fetches.
129
160
  */
@@ -162,3 +193,8 @@ export declare class SiteMetadata {
162
193
  html: Option<string>;
163
194
  constructor(init: SiteMetadata);
164
195
  }
196
+ export interface CommentNode {
197
+ comment_view: CommentView | PersonMentionView | CommentReplyView;
198
+ children: CommentNode[];
199
+ depth: number;
200
+ }
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.SiteMetadata = exports.SubscribedType = exports.SearchType = exports.ListingType = exports.SortType = exports.UserOperation = exports.VERSION = void 0;
9
+ exports.SiteMetadata = exports.SubscribedType = exports.SearchType = exports.ListingType = exports.CommentSortType = exports.SortType = exports.UserOperation = exports.VERSION = void 0;
10
10
  var class_transformer_1 = require("class-transformer");
11
11
  var utils_1 = require("../utils");
12
12
  exports.VERSION = "v3";
@@ -27,26 +27,26 @@ var UserOperation;
27
27
  UserOperation[UserOperation["EditComment"] = 9] = "EditComment";
28
28
  UserOperation[UserOperation["DeleteComment"] = 10] = "DeleteComment";
29
29
  UserOperation[UserOperation["RemoveComment"] = 11] = "RemoveComment";
30
- UserOperation[UserOperation["MarkCommentAsRead"] = 12] = "MarkCommentAsRead";
31
- UserOperation[UserOperation["SaveComment"] = 13] = "SaveComment";
32
- UserOperation[UserOperation["CreateCommentLike"] = 14] = "CreateCommentLike";
33
- UserOperation[UserOperation["GetPosts"] = 15] = "GetPosts";
34
- UserOperation[UserOperation["CreatePostLike"] = 16] = "CreatePostLike";
35
- UserOperation[UserOperation["EditPost"] = 17] = "EditPost";
36
- UserOperation[UserOperation["DeletePost"] = 18] = "DeletePost";
37
- UserOperation[UserOperation["RemovePost"] = 19] = "RemovePost";
38
- UserOperation[UserOperation["LockPost"] = 20] = "LockPost";
39
- UserOperation[UserOperation["StickyPost"] = 21] = "StickyPost";
40
- UserOperation[UserOperation["MarkPostAsRead"] = 22] = "MarkPostAsRead";
41
- UserOperation[UserOperation["SavePost"] = 23] = "SavePost";
42
- UserOperation[UserOperation["EditCommunity"] = 24] = "EditCommunity";
43
- UserOperation[UserOperation["DeleteCommunity"] = 25] = "DeleteCommunity";
44
- UserOperation[UserOperation["RemoveCommunity"] = 26] = "RemoveCommunity";
45
- UserOperation[UserOperation["FollowCommunity"] = 27] = "FollowCommunity";
46
- UserOperation[UserOperation["GetPersonDetails"] = 28] = "GetPersonDetails";
47
- UserOperation[UserOperation["GetReplies"] = 29] = "GetReplies";
48
- UserOperation[UserOperation["GetPersonMentions"] = 30] = "GetPersonMentions";
49
- UserOperation[UserOperation["MarkPersonMentionAsRead"] = 31] = "MarkPersonMentionAsRead";
30
+ UserOperation[UserOperation["SaveComment"] = 12] = "SaveComment";
31
+ UserOperation[UserOperation["CreateCommentLike"] = 13] = "CreateCommentLike";
32
+ UserOperation[UserOperation["GetPosts"] = 14] = "GetPosts";
33
+ UserOperation[UserOperation["CreatePostLike"] = 15] = "CreatePostLike";
34
+ UserOperation[UserOperation["EditPost"] = 16] = "EditPost";
35
+ UserOperation[UserOperation["DeletePost"] = 17] = "DeletePost";
36
+ UserOperation[UserOperation["RemovePost"] = 18] = "RemovePost";
37
+ UserOperation[UserOperation["LockPost"] = 19] = "LockPost";
38
+ UserOperation[UserOperation["StickyPost"] = 20] = "StickyPost";
39
+ UserOperation[UserOperation["MarkPostAsRead"] = 21] = "MarkPostAsRead";
40
+ UserOperation[UserOperation["SavePost"] = 22] = "SavePost";
41
+ UserOperation[UserOperation["EditCommunity"] = 23] = "EditCommunity";
42
+ UserOperation[UserOperation["DeleteCommunity"] = 24] = "DeleteCommunity";
43
+ UserOperation[UserOperation["RemoveCommunity"] = 25] = "RemoveCommunity";
44
+ UserOperation[UserOperation["FollowCommunity"] = 26] = "FollowCommunity";
45
+ UserOperation[UserOperation["GetPersonDetails"] = 27] = "GetPersonDetails";
46
+ UserOperation[UserOperation["GetReplies"] = 28] = "GetReplies";
47
+ UserOperation[UserOperation["GetPersonMentions"] = 29] = "GetPersonMentions";
48
+ UserOperation[UserOperation["MarkPersonMentionAsRead"] = 30] = "MarkPersonMentionAsRead";
49
+ UserOperation[UserOperation["MarkCommentReplyAsRead"] = 31] = "MarkCommentReplyAsRead";
50
50
  UserOperation[UserOperation["GetModlog"] = 32] = "GetModlog";
51
51
  UserOperation[UserOperation["BanFromCommunity"] = 33] = "BanFromCommunity";
52
52
  UserOperation[UserOperation["AddModToCommunity"] = 34] = "AddModToCommunity";
@@ -75,38 +75,47 @@ var UserOperation;
75
75
  UserOperation[UserOperation["GetPrivateMessages"] = 57] = "GetPrivateMessages";
76
76
  UserOperation[UserOperation["UserJoin"] = 58] = "UserJoin";
77
77
  UserOperation[UserOperation["GetComments"] = 59] = "GetComments";
78
- UserOperation[UserOperation["GetSiteConfig"] = 60] = "GetSiteConfig";
79
- UserOperation[UserOperation["SaveSiteConfig"] = 61] = "SaveSiteConfig";
80
- UserOperation[UserOperation["PostJoin"] = 62] = "PostJoin";
81
- UserOperation[UserOperation["CommunityJoin"] = 63] = "CommunityJoin";
82
- UserOperation[UserOperation["ChangePassword"] = 64] = "ChangePassword";
83
- UserOperation[UserOperation["GetSiteMetadata"] = 65] = "GetSiteMetadata";
84
- UserOperation[UserOperation["BlockCommunity"] = 66] = "BlockCommunity";
85
- UserOperation[UserOperation["BlockPerson"] = 67] = "BlockPerson";
86
- UserOperation[UserOperation["CreateCommentReport"] = 68] = "CreateCommentReport";
87
- UserOperation[UserOperation["ResolveCommentReport"] = 69] = "ResolveCommentReport";
88
- UserOperation[UserOperation["ListCommentReports"] = 70] = "ListCommentReports";
89
- UserOperation[UserOperation["CreatePostReport"] = 71] = "CreatePostReport";
90
- UserOperation[UserOperation["ResolvePostReport"] = 72] = "ResolvePostReport";
91
- UserOperation[UserOperation["ListPostReports"] = 73] = "ListPostReports";
92
- UserOperation[UserOperation["GetReportCount"] = 74] = "GetReportCount";
93
- UserOperation[UserOperation["GetUnreadCount"] = 75] = "GetUnreadCount";
94
- UserOperation[UserOperation["VerifyEmail"] = 76] = "VerifyEmail";
78
+ UserOperation[UserOperation["PostJoin"] = 60] = "PostJoin";
79
+ UserOperation[UserOperation["CommunityJoin"] = 61] = "CommunityJoin";
80
+ UserOperation[UserOperation["ChangePassword"] = 62] = "ChangePassword";
81
+ UserOperation[UserOperation["GetSiteMetadata"] = 63] = "GetSiteMetadata";
82
+ UserOperation[UserOperation["BlockCommunity"] = 64] = "BlockCommunity";
83
+ UserOperation[UserOperation["BlockPerson"] = 65] = "BlockPerson";
84
+ UserOperation[UserOperation["PurgePerson"] = 66] = "PurgePerson";
85
+ UserOperation[UserOperation["PurgeCommunity"] = 67] = "PurgeCommunity";
86
+ UserOperation[UserOperation["PurgePost"] = 68] = "PurgePost";
87
+ UserOperation[UserOperation["PurgeComment"] = 69] = "PurgeComment";
88
+ UserOperation[UserOperation["CreateCommentReport"] = 70] = "CreateCommentReport";
89
+ UserOperation[UserOperation["ResolveCommentReport"] = 71] = "ResolveCommentReport";
90
+ UserOperation[UserOperation["ListCommentReports"] = 72] = "ListCommentReports";
91
+ UserOperation[UserOperation["CreatePostReport"] = 73] = "CreatePostReport";
92
+ UserOperation[UserOperation["ResolvePostReport"] = 74] = "ResolvePostReport";
93
+ UserOperation[UserOperation["ListPostReports"] = 75] = "ListPostReports";
94
+ UserOperation[UserOperation["GetReportCount"] = 76] = "GetReportCount";
95
+ UserOperation[UserOperation["GetUnreadCount"] = 77] = "GetUnreadCount";
96
+ UserOperation[UserOperation["VerifyEmail"] = 78] = "VerifyEmail";
95
97
  })(UserOperation = exports.UserOperation || (exports.UserOperation = {}));
96
98
  /**
97
- * Different sort types used in lemmy.
99
+ * Different post sort types used in lemmy.
98
100
  */
99
101
  var SortType;
100
102
  (function (SortType) {
101
103
  /**
102
- * Posts sorted by the most recent comment.
104
+ * Posts sorted by hot, but bumped by new comments up to 2 days
103
105
  */
104
106
  SortType["Active"] = "Active";
105
107
  /**
106
- * Posts sorted by the published time.
108
+ * Posts sorted by a decaying rank.
107
109
  */
108
110
  SortType["Hot"] = "Hot";
111
+ /**
112
+ * Posts sorted by the published time.
113
+ */
109
114
  SortType["New"] = "New";
115
+ /**
116
+ * Posts sorted by the published time ascending
117
+ */
118
+ SortType["Old"] = "Old";
110
119
  /**
111
120
  * The top posts for this last day.
112
121
  */
@@ -136,6 +145,28 @@ var SortType;
136
145
  */
137
146
  SortType["NewComments"] = "NewComments";
138
147
  })(SortType = exports.SortType || (exports.SortType = {}));
148
+ /**
149
+ * Different comment sort types used in lemmy.
150
+ */
151
+ var CommentSortType;
152
+ (function (CommentSortType) {
153
+ /**
154
+ * Comments sorted by a decaying rank.
155
+ */
156
+ CommentSortType["Hot"] = "Hot";
157
+ /**
158
+ * Comments sorted by top score.
159
+ */
160
+ CommentSortType["Top"] = "Top";
161
+ /**
162
+ * Comments sorted by new.
163
+ */
164
+ CommentSortType["New"] = "New";
165
+ /**
166
+ * Comments sorted by old.
167
+ */
168
+ CommentSortType["Old"] = "Old";
169
+ })(CommentSortType = exports.CommentSortType || (exports.CommentSortType = {}));
139
170
  /**
140
171
  * The different listing types for post and comment fetches.
141
172
  */
@@ -195,6 +195,32 @@ export declare class ModAdd {
195
195
  removed: Option<boolean>;
196
196
  when_: string;
197
197
  }
198
+ export declare class AdminPurgePerson {
199
+ id: number;
200
+ admin_person_id: number;
201
+ reason: Option<string>;
202
+ when_: string;
203
+ }
204
+ export declare class AdminPurgeCommunity {
205
+ id: number;
206
+ admin_person_id: number;
207
+ reason: Option<string>;
208
+ when_: string;
209
+ }
210
+ export declare class AdminPurgePost {
211
+ id: number;
212
+ admin_person_id: number;
213
+ community_id: number;
214
+ reason: Option<string>;
215
+ when_: string;
216
+ }
217
+ export declare class AdminPurgeComment {
218
+ id: number;
219
+ admin_person_id: number;
220
+ post_id: number;
221
+ reason: Option<string>;
222
+ when_: string;
223
+ }
198
224
  export declare class CommunitySafe {
199
225
  id: number;
200
226
  name: string;
@@ -226,15 +252,14 @@ export declare class Comment {
226
252
  id: number;
227
253
  creator_id: number;
228
254
  post_id: number;
229
- parent_id: Option<number>;
230
255
  content: string;
231
256
  removed: boolean;
232
- read: boolean;
233
257
  published: string;
234
258
  updated: Option<string>;
235
259
  deleted: boolean;
236
260
  ap_id: string;
237
261
  local: boolean;
262
+ path: string;
238
263
  }
239
264
  export declare class PersonMention {
240
265
  id: number;
@@ -243,6 +268,13 @@ export declare class PersonMention {
243
268
  read: boolean;
244
269
  published: string;
245
270
  }
271
+ export declare class CommentReply {
272
+ id: number;
273
+ recipient_id: number;
274
+ comment_id: number;
275
+ read: boolean;
276
+ published: string;
277
+ }
246
278
  export declare class RegistrationApplication {
247
279
  id: number;
248
280
  local_user_id: number;
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.RegistrationApplication = exports.PersonMention = exports.Comment = exports.CommentReport = exports.CommunitySafe = exports.ModAdd = exports.ModTransferCommunity = exports.ModAddCommunity = exports.ModBan = exports.ModBanFromCommunity = exports.ModRemoveCommunity = exports.ModRemoveComment = exports.ModStickyPost = exports.ModLockPost = exports.ModRemovePost = exports.PasswordResetRequest = exports.Post = exports.PostReport = exports.PrivateMessage = exports.Site = exports.PersonSafe = exports.LocalUserSettings = void 0;
9
+ exports.RegistrationApplication = exports.CommentReply = exports.PersonMention = exports.Comment = exports.CommentReport = exports.CommunitySafe = exports.AdminPurgeComment = exports.AdminPurgePost = exports.AdminPurgeCommunity = exports.AdminPurgePerson = exports.ModAdd = exports.ModTransferCommunity = exports.ModAddCommunity = exports.ModBan = exports.ModBanFromCommunity = exports.ModRemoveCommunity = exports.ModRemoveComment = exports.ModStickyPost = exports.ModLockPost = exports.ModRemovePost = exports.PasswordResetRequest = exports.Post = exports.PostReport = exports.PrivateMessage = exports.Site = exports.PersonSafe = exports.LocalUserSettings = void 0;
10
10
  var class_transformer_1 = require("class-transformer");
11
11
  var utils_1 = require("../utils");
12
12
  var LocalUserSettings = /** @class */ (function () {
@@ -606,6 +606,74 @@ var ModAdd = /** @class */ (function () {
606
606
  return ModAdd;
607
607
  }());
608
608
  exports.ModAdd = ModAdd;
609
+ var AdminPurgePerson = /** @class */ (function () {
610
+ function AdminPurgePerson() {
611
+ }
612
+ __decorate([
613
+ (0, class_transformer_1.Transform)(function (_a) {
614
+ var value = _a.value;
615
+ return (0, utils_1.toOption)(value);
616
+ }, { toClassOnly: true }),
617
+ (0, class_transformer_1.Transform)(function (_a) {
618
+ var value = _a.value;
619
+ return (0, utils_1.toUndefined)(value);
620
+ }, { toPlainOnly: true }),
621
+ (0, class_transformer_1.Expose)()
622
+ ], AdminPurgePerson.prototype, "reason", void 0);
623
+ return AdminPurgePerson;
624
+ }());
625
+ exports.AdminPurgePerson = AdminPurgePerson;
626
+ var AdminPurgeCommunity = /** @class */ (function () {
627
+ function AdminPurgeCommunity() {
628
+ }
629
+ __decorate([
630
+ (0, class_transformer_1.Transform)(function (_a) {
631
+ var value = _a.value;
632
+ return (0, utils_1.toOption)(value);
633
+ }, { toClassOnly: true }),
634
+ (0, class_transformer_1.Transform)(function (_a) {
635
+ var value = _a.value;
636
+ return (0, utils_1.toUndefined)(value);
637
+ }, { toPlainOnly: true }),
638
+ (0, class_transformer_1.Expose)()
639
+ ], AdminPurgeCommunity.prototype, "reason", void 0);
640
+ return AdminPurgeCommunity;
641
+ }());
642
+ exports.AdminPurgeCommunity = AdminPurgeCommunity;
643
+ var AdminPurgePost = /** @class */ (function () {
644
+ function AdminPurgePost() {
645
+ }
646
+ __decorate([
647
+ (0, class_transformer_1.Transform)(function (_a) {
648
+ var value = _a.value;
649
+ return (0, utils_1.toOption)(value);
650
+ }, { toClassOnly: true }),
651
+ (0, class_transformer_1.Transform)(function (_a) {
652
+ var value = _a.value;
653
+ return (0, utils_1.toUndefined)(value);
654
+ }, { toPlainOnly: true }),
655
+ (0, class_transformer_1.Expose)()
656
+ ], AdminPurgePost.prototype, "reason", void 0);
657
+ return AdminPurgePost;
658
+ }());
659
+ exports.AdminPurgePost = AdminPurgePost;
660
+ var AdminPurgeComment = /** @class */ (function () {
661
+ function AdminPurgeComment() {
662
+ }
663
+ __decorate([
664
+ (0, class_transformer_1.Transform)(function (_a) {
665
+ var value = _a.value;
666
+ return (0, utils_1.toOption)(value);
667
+ }, { toClassOnly: true }),
668
+ (0, class_transformer_1.Transform)(function (_a) {
669
+ var value = _a.value;
670
+ return (0, utils_1.toUndefined)(value);
671
+ }, { toPlainOnly: true }),
672
+ (0, class_transformer_1.Expose)()
673
+ ], AdminPurgeComment.prototype, "reason", void 0);
674
+ return AdminPurgeComment;
675
+ }());
676
+ exports.AdminPurgeComment = AdminPurgeComment;
609
677
  var CommunitySafe = /** @class */ (function () {
610
678
  function CommunitySafe() {
611
679
  }
@@ -687,17 +755,6 @@ exports.CommentReport = CommentReport;
687
755
  var Comment = /** @class */ (function () {
688
756
  function Comment() {
689
757
  }
690
- __decorate([
691
- (0, class_transformer_1.Transform)(function (_a) {
692
- var value = _a.value;
693
- return (0, utils_1.toOption)(value);
694
- }, { toClassOnly: true }),
695
- (0, class_transformer_1.Transform)(function (_a) {
696
- var value = _a.value;
697
- return (0, utils_1.toUndefined)(value);
698
- }, { toPlainOnly: true }),
699
- (0, class_transformer_1.Expose)()
700
- ], Comment.prototype, "parent_id", void 0);
701
758
  __decorate([
702
759
  (0, class_transformer_1.Transform)(function (_a) {
703
760
  var value = _a.value;
@@ -718,6 +775,12 @@ var PersonMention = /** @class */ (function () {
718
775
  return PersonMention;
719
776
  }());
720
777
  exports.PersonMention = PersonMention;
778
+ var CommentReply = /** @class */ (function () {
779
+ function CommentReply() {
780
+ }
781
+ return CommentReply;
782
+ }());
783
+ exports.CommentReply = CommentReply;
721
784
  var RegistrationApplication = /** @class */ (function () {
722
785
  function RegistrationApplication() {
723
786
  }
@@ -2,7 +2,7 @@ import { Option } from "@sniptt/monads";
2
2
  import "reflect-metadata";
3
3
  import { CommentAggregates, CommunityAggregates, PersonAggregates, PostAggregates, SiteAggregates } from "./aggregates";
4
4
  import { SubscribedType } from "./others";
5
- import { Comment, CommentReport, CommunitySafe, LocalUserSettings, ModAdd, ModAddCommunity, ModBan, ModBanFromCommunity, ModLockPost, ModRemoveComment, ModRemoveCommunity, ModRemovePost, ModStickyPost, ModTransferCommunity, PersonMention, PersonSafe, Post, PostReport, PrivateMessage, RegistrationApplication, Site } from "./source";
5
+ import { AdminPurgeComment, AdminPurgeCommunity, AdminPurgePerson, AdminPurgePost, Comment, CommentReply, CommentReport, CommunitySafe, LocalUserSettings, ModAdd, ModAddCommunity, ModBan, ModBanFromCommunity, ModLockPost, ModRemoveComment, ModRemoveCommunity, ModRemovePost, ModStickyPost, ModTransferCommunity, PersonMention, PersonSafe, Post, PostReport, PrivateMessage, RegistrationApplication, Site } from "./source";
6
6
  export declare class PersonViewSafe {
7
7
  person: PersonSafe;
8
8
  counts: PersonAggregates;
@@ -61,7 +61,6 @@ export declare class PostReportView {
61
61
  export declare class CommentView {
62
62
  comment: Comment;
63
63
  creator: PersonSafe;
64
- recipient: Option<PersonSafe>;
65
64
  post: Post;
66
65
  community: CommunitySafe;
67
66
  counts: CommentAggregates;
@@ -71,6 +70,20 @@ export declare class CommentView {
71
70
  creator_blocked: boolean;
72
71
  my_vote: Option<number>;
73
72
  }
73
+ export declare class CommentReplyView {
74
+ comment_reply: CommentReply;
75
+ comment: Comment;
76
+ creator: PersonSafe;
77
+ post: Post;
78
+ community: CommunitySafe;
79
+ recipient: PersonSafe;
80
+ counts: CommentAggregates;
81
+ creator_banned_from_community: boolean;
82
+ subscribed: SubscribedType;
83
+ saved: boolean;
84
+ creator_blocked: boolean;
85
+ my_vote: Option<number>;
86
+ }
74
87
  export declare class CommentReportView {
75
88
  comment_report: CommentReport;
76
89
  comment: Comment;
@@ -142,6 +155,24 @@ export declare class ModStickyPostView {
142
155
  post: Post;
143
156
  community: CommunitySafe;
144
157
  }
158
+ export declare class AdminPurgeCommunityView {
159
+ admin_purge_community: AdminPurgeCommunity;
160
+ admin: PersonSafe;
161
+ }
162
+ export declare class AdminPurgePersonView {
163
+ admin_purge_person: AdminPurgePerson;
164
+ admin: PersonSafe;
165
+ }
166
+ export declare class AdminPurgePostView {
167
+ admin_purge_post: AdminPurgePost;
168
+ admin: PersonSafe;
169
+ community: CommunitySafe;
170
+ }
171
+ export declare class AdminPurgeCommentView {
172
+ admin_purge_comment: AdminPurgeComment;
173
+ admin: PersonSafe;
174
+ post: Post;
175
+ }
145
176
  export declare class CommunityFollowerView {
146
177
  community: CommunitySafe;
147
178
  follower: PersonSafe;