lemmy-js-client 0.17.0-rc.45 → 0.17.0-rc.47

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.
@@ -61,28 +61,31 @@ export declare enum UserOperation {
61
61
  EditPrivateMessage = 54,
62
62
  DeletePrivateMessage = 55,
63
63
  MarkPrivateMessageAsRead = 56,
64
- GetPrivateMessages = 57,
65
- UserJoin = 58,
66
- GetComments = 59,
67
- PostJoin = 60,
68
- CommunityJoin = 61,
69
- ChangePassword = 62,
70
- GetSiteMetadata = 63,
71
- BlockCommunity = 64,
72
- BlockPerson = 65,
73
- PurgePerson = 66,
74
- PurgeCommunity = 67,
75
- PurgePost = 68,
76
- PurgeComment = 69,
77
- CreateCommentReport = 70,
78
- ResolveCommentReport = 71,
79
- ListCommentReports = 72,
80
- CreatePostReport = 73,
81
- ResolvePostReport = 74,
82
- ListPostReports = 75,
83
- GetReportCount = 76,
84
- GetUnreadCount = 77,
85
- VerifyEmail = 78
64
+ CreatePrivateMessageReport = 57,
65
+ ResolvePrivateMessageReport = 58,
66
+ ListPrivateMessageReports = 59,
67
+ GetPrivateMessages = 60,
68
+ UserJoin = 61,
69
+ GetComments = 62,
70
+ PostJoin = 63,
71
+ CommunityJoin = 64,
72
+ ChangePassword = 65,
73
+ GetSiteMetadata = 66,
74
+ BlockCommunity = 67,
75
+ BlockPerson = 68,
76
+ PurgePerson = 69,
77
+ PurgeCommunity = 70,
78
+ PurgePost = 71,
79
+ PurgeComment = 72,
80
+ CreateCommentReport = 73,
81
+ ResolveCommentReport = 74,
82
+ ListCommentReports = 75,
83
+ CreatePostReport = 76,
84
+ ResolvePostReport = 77,
85
+ ListPostReports = 78,
86
+ GetReportCount = 79,
87
+ GetUnreadCount = 80,
88
+ VerifyEmail = 81
86
89
  }
87
90
  /**
88
91
  * Different post sort types used in lemmy.
@@ -72,28 +72,31 @@ var UserOperation;
72
72
  UserOperation[UserOperation["EditPrivateMessage"] = 54] = "EditPrivateMessage";
73
73
  UserOperation[UserOperation["DeletePrivateMessage"] = 55] = "DeletePrivateMessage";
74
74
  UserOperation[UserOperation["MarkPrivateMessageAsRead"] = 56] = "MarkPrivateMessageAsRead";
75
- UserOperation[UserOperation["GetPrivateMessages"] = 57] = "GetPrivateMessages";
76
- UserOperation[UserOperation["UserJoin"] = 58] = "UserJoin";
77
- UserOperation[UserOperation["GetComments"] = 59] = "GetComments";
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";
75
+ UserOperation[UserOperation["CreatePrivateMessageReport"] = 57] = "CreatePrivateMessageReport";
76
+ UserOperation[UserOperation["ResolvePrivateMessageReport"] = 58] = "ResolvePrivateMessageReport";
77
+ UserOperation[UserOperation["ListPrivateMessageReports"] = 59] = "ListPrivateMessageReports";
78
+ UserOperation[UserOperation["GetPrivateMessages"] = 60] = "GetPrivateMessages";
79
+ UserOperation[UserOperation["UserJoin"] = 61] = "UserJoin";
80
+ UserOperation[UserOperation["GetComments"] = 62] = "GetComments";
81
+ UserOperation[UserOperation["PostJoin"] = 63] = "PostJoin";
82
+ UserOperation[UserOperation["CommunityJoin"] = 64] = "CommunityJoin";
83
+ UserOperation[UserOperation["ChangePassword"] = 65] = "ChangePassword";
84
+ UserOperation[UserOperation["GetSiteMetadata"] = 66] = "GetSiteMetadata";
85
+ UserOperation[UserOperation["BlockCommunity"] = 67] = "BlockCommunity";
86
+ UserOperation[UserOperation["BlockPerson"] = 68] = "BlockPerson";
87
+ UserOperation[UserOperation["PurgePerson"] = 69] = "PurgePerson";
88
+ UserOperation[UserOperation["PurgeCommunity"] = 70] = "PurgeCommunity";
89
+ UserOperation[UserOperation["PurgePost"] = 71] = "PurgePost";
90
+ UserOperation[UserOperation["PurgeComment"] = 72] = "PurgeComment";
91
+ UserOperation[UserOperation["CreateCommentReport"] = 73] = "CreateCommentReport";
92
+ UserOperation[UserOperation["ResolveCommentReport"] = 74] = "ResolveCommentReport";
93
+ UserOperation[UserOperation["ListCommentReports"] = 75] = "ListCommentReports";
94
+ UserOperation[UserOperation["CreatePostReport"] = 76] = "CreatePostReport";
95
+ UserOperation[UserOperation["ResolvePostReport"] = 77] = "ResolvePostReport";
96
+ UserOperation[UserOperation["ListPostReports"] = 78] = "ListPostReports";
97
+ UserOperation[UserOperation["GetReportCount"] = 79] = "GetReportCount";
98
+ UserOperation[UserOperation["GetUnreadCount"] = 80] = "GetUnreadCount";
99
+ UserOperation[UserOperation["VerifyEmail"] = 81] = "VerifyEmail";
97
100
  })(UserOperation = exports.UserOperation || (exports.UserOperation = {}));
98
101
  /**
99
102
  * Different post sort types used in lemmy.
@@ -36,6 +36,7 @@ export declare class PersonSafe {
36
36
  admin: boolean;
37
37
  bot_account: boolean;
38
38
  ban_expires: Option<string>;
39
+ instance_id: number;
39
40
  }
40
41
  export declare class Site {
41
42
  id: number;
@@ -43,12 +44,22 @@ export declare class Site {
43
44
  sidebar: Option<string>;
44
45
  published: string;
45
46
  updated: Option<string>;
46
- enable_downvotes: boolean;
47
- open_registration: boolean;
48
- enable_nsfw: boolean;
49
47
  icon: Option<string>;
50
48
  banner: Option<string>;
51
49
  description: Option<string>;
50
+ actor_id: string;
51
+ last_refreshed_at: string;
52
+ inbox_url: string;
53
+ public_key: string;
54
+ instance_id: number;
55
+ }
56
+ export declare class LocalSite {
57
+ id: number;
58
+ site_id: number;
59
+ site_setup: boolean;
60
+ enable_downvotes: boolean;
61
+ open_registration: boolean;
62
+ enable_nsfw: boolean;
52
63
  community_creation_admin_only: boolean;
53
64
  require_email_verification: boolean;
54
65
  require_application: boolean;
@@ -56,13 +67,38 @@ export declare class Site {
56
67
  private_instance: boolean;
57
68
  default_theme: string;
58
69
  default_post_listing_type: string;
59
- actor_id: string;
60
- last_refreshed_at: string;
61
- inbox_url: string;
62
- public_key: string;
63
70
  legal_information: Option<string>;
71
+ hide_modlog_mod_names: boolean;
64
72
  application_email_admins: boolean;
65
- hide_modlog_mod_names: Option<boolean>;
73
+ slur_filter_regex: Option<string>;
74
+ actor_name_max_length: string;
75
+ federation_enabled: boolean;
76
+ federation_debug: boolean;
77
+ federation_strict_allowlist: boolean;
78
+ federation_http_fetch_retry_limit: string;
79
+ federation_worker_count: string;
80
+ captcha_enabled: boolean;
81
+ captcha_difficulty: string;
82
+ published: string;
83
+ updated: Option<string>;
84
+ }
85
+ export declare class LocalSiteRateLimit {
86
+ id: number;
87
+ local_site_id: number;
88
+ message: number;
89
+ message_per_second: number;
90
+ post: number;
91
+ post_per_second: number;
92
+ register: number;
93
+ register_per_second: number;
94
+ image: number;
95
+ image_per_second: number;
96
+ comment: number;
97
+ comment_per_second: number;
98
+ search: number;
99
+ search_per_second: number;
100
+ published: string;
101
+ updated: Option<string>;
66
102
  }
67
103
  export declare class PrivateMessage {
68
104
  id: number;
@@ -239,6 +275,7 @@ export declare class CommunitySafe {
239
275
  icon: Option<string>;
240
276
  banner: Option<string>;
241
277
  posting_restricted_to_mods: boolean;
278
+ instance_id: number;
242
279
  }
243
280
  export declare class CommentReport {
244
281
  id: number;
@@ -293,3 +330,14 @@ export declare class Language {
293
330
  code: string;
294
331
  name: string;
295
332
  }
333
+ export declare class PrivateMessageReport {
334
+ id: number;
335
+ creator_id: number;
336
+ private_message_id: number;
337
+ original_pm_text: string;
338
+ reason: string;
339
+ resolved: boolean;
340
+ resolver_id: Option<number>;
341
+ published: string;
342
+ updated: Option<string>;
343
+ }
@@ -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.Language = 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;
9
+ exports.PrivateMessageReport = exports.Language = 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.LocalSiteRateLimit = exports.LocalSite = 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 () {
@@ -167,6 +167,12 @@ var Site = /** @class */ (function () {
167
167
  }, { toPlainOnly: true }),
168
168
  (0, class_transformer_1.Expose)()
169
169
  ], Site.prototype, "description", void 0);
170
+ return Site;
171
+ }());
172
+ exports.Site = Site;
173
+ var LocalSite = /** @class */ (function () {
174
+ function LocalSite() {
175
+ }
170
176
  __decorate([
171
177
  (0, class_transformer_1.Transform)(function (_a) {
172
178
  var value = _a.value;
@@ -177,7 +183,7 @@ var Site = /** @class */ (function () {
177
183
  return (0, utils_1.toUndefined)(value);
178
184
  }, { toPlainOnly: true }),
179
185
  (0, class_transformer_1.Expose)()
180
- ], Site.prototype, "application_question", void 0);
186
+ ], LocalSite.prototype, "application_question", void 0);
181
187
  __decorate([
182
188
  (0, class_transformer_1.Transform)(function (_a) {
183
189
  var value = _a.value;
@@ -188,7 +194,7 @@ var Site = /** @class */ (function () {
188
194
  return (0, utils_1.toUndefined)(value);
189
195
  }, { toPlainOnly: true }),
190
196
  (0, class_transformer_1.Expose)()
191
- ], Site.prototype, "legal_information", void 0);
197
+ ], LocalSite.prototype, "legal_information", void 0);
192
198
  __decorate([
193
199
  (0, class_transformer_1.Transform)(function (_a) {
194
200
  var value = _a.value;
@@ -199,10 +205,38 @@ var Site = /** @class */ (function () {
199
205
  return (0, utils_1.toUndefined)(value);
200
206
  }, { toPlainOnly: true }),
201
207
  (0, class_transformer_1.Expose)()
202
- ], Site.prototype, "hide_modlog_mod_names", void 0);
203
- return Site;
208
+ ], LocalSite.prototype, "slur_filter_regex", void 0);
209
+ __decorate([
210
+ (0, class_transformer_1.Transform)(function (_a) {
211
+ var value = _a.value;
212
+ return (0, utils_1.toOption)(value);
213
+ }, { toClassOnly: true }),
214
+ (0, class_transformer_1.Transform)(function (_a) {
215
+ var value = _a.value;
216
+ return (0, utils_1.toUndefined)(value);
217
+ }, { toPlainOnly: true }),
218
+ (0, class_transformer_1.Expose)()
219
+ ], LocalSite.prototype, "updated", void 0);
220
+ return LocalSite;
204
221
  }());
205
- exports.Site = Site;
222
+ exports.LocalSite = LocalSite;
223
+ var LocalSiteRateLimit = /** @class */ (function () {
224
+ function LocalSiteRateLimit() {
225
+ }
226
+ __decorate([
227
+ (0, class_transformer_1.Transform)(function (_a) {
228
+ var value = _a.value;
229
+ return (0, utils_1.toOption)(value);
230
+ }, { toClassOnly: true }),
231
+ (0, class_transformer_1.Transform)(function (_a) {
232
+ var value = _a.value;
233
+ return (0, utils_1.toUndefined)(value);
234
+ }, { toPlainOnly: true }),
235
+ (0, class_transformer_1.Expose)()
236
+ ], LocalSiteRateLimit.prototype, "updated", void 0);
237
+ return LocalSiteRateLimit;
238
+ }());
239
+ exports.LocalSiteRateLimit = LocalSiteRateLimit;
206
240
  var PrivateMessage = /** @class */ (function () {
207
241
  function PrivateMessage() {
208
242
  }
@@ -826,3 +860,31 @@ var Language = /** @class */ (function () {
826
860
  return Language;
827
861
  }());
828
862
  exports.Language = Language;
863
+ var PrivateMessageReport = /** @class */ (function () {
864
+ function PrivateMessageReport() {
865
+ }
866
+ __decorate([
867
+ (0, class_transformer_1.Transform)(function (_a) {
868
+ var value = _a.value;
869
+ return (0, utils_1.toOption)(value);
870
+ }, { toClassOnly: true }),
871
+ (0, class_transformer_1.Transform)(function (_a) {
872
+ var value = _a.value;
873
+ return (0, utils_1.toUndefined)(value);
874
+ }, { toPlainOnly: true }),
875
+ (0, class_transformer_1.Expose)()
876
+ ], PrivateMessageReport.prototype, "resolver_id", void 0);
877
+ __decorate([
878
+ (0, class_transformer_1.Transform)(function (_a) {
879
+ var value = _a.value;
880
+ return (0, utils_1.toOption)(value);
881
+ }, { toClassOnly: true }),
882
+ (0, class_transformer_1.Transform)(function (_a) {
883
+ var value = _a.value;
884
+ return (0, utils_1.toUndefined)(value);
885
+ }, { toPlainOnly: true }),
886
+ (0, class_transformer_1.Expose)()
887
+ ], PrivateMessageReport.prototype, "updated", void 0);
888
+ return PrivateMessageReport;
889
+ }());
890
+ exports.PrivateMessageReport = PrivateMessageReport;
@@ -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 { 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";
5
+ import { AdminPurgeComment, AdminPurgeCommunity, AdminPurgePerson, AdminPurgePost, Comment, CommentReply, CommentReport, CommunitySafe, LocalSite, LocalSiteRateLimit, LocalUserSettings, ModAdd, ModAddCommunity, ModBan, ModBanFromCommunity, ModLockPost, ModRemoveComment, ModRemoveCommunity, ModRemovePost, ModStickyPost, ModTransferCommunity, PersonMention, PersonSafe, Post, PostReport, PrivateMessage, PrivateMessageReport, RegistrationApplication, Site } from "./source";
6
6
  export declare class PersonViewSafe {
7
7
  person: PersonSafe;
8
8
  counts: PersonAggregates;
@@ -28,6 +28,8 @@ export declare class LocalUserSettingsView {
28
28
  }
29
29
  export declare class SiteView {
30
30
  site: Site;
31
+ local_site: LocalSite;
32
+ local_site_rate_limit: LocalSiteRateLimit;
31
33
  counts: SiteAggregates;
32
34
  }
33
35
  export declare class PrivateMessageView {
@@ -211,3 +213,10 @@ export interface CommentNode {
211
213
  children: CommentNode[];
212
214
  depth: number;
213
215
  }
216
+ export declare class PrivateMessageReportView {
217
+ private_message_report: PrivateMessageReport;
218
+ private_message: PrivateMessage;
219
+ private_message_creator: PersonSafe;
220
+ creator: PersonSafe;
221
+ resolver: Option<PersonSafe>;
222
+ }
@@ -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.RegistrationApplicationView = exports.CommunityView = exports.PersonBlockView = exports.CommunityPersonBanView = exports.CommunityModeratorView = exports.CommunityBlockView = exports.CommunityFollowerView = exports.AdminPurgeCommentView = exports.AdminPurgePostView = exports.AdminPurgePersonView = exports.AdminPurgeCommunityView = exports.ModStickyPostView = exports.ModRemovePostView = exports.ModRemoveCommunityView = exports.ModRemoveCommentView = exports.ModLockPostView = exports.ModBanView = exports.ModBanFromCommunityView = exports.ModAddView = exports.ModTransferCommunityView = exports.ModAddCommunityView = exports.CommentReportView = exports.CommentReplyView = exports.CommentView = exports.PostReportView = exports.PostView = exports.PrivateMessageView = exports.SiteView = exports.LocalUserSettingsView = exports.PersonMentionView = exports.PersonViewSafe = void 0;
9
+ exports.PrivateMessageReportView = exports.RegistrationApplicationView = exports.CommunityView = exports.PersonBlockView = exports.CommunityPersonBanView = exports.CommunityModeratorView = exports.CommunityBlockView = exports.CommunityFollowerView = exports.AdminPurgeCommentView = exports.AdminPurgePostView = exports.AdminPurgePersonView = exports.AdminPurgeCommunityView = exports.ModStickyPostView = exports.ModRemovePostView = exports.ModRemoveCommunityView = exports.ModRemoveCommentView = exports.ModLockPostView = exports.ModBanView = exports.ModBanFromCommunityView = exports.ModAddView = exports.ModTransferCommunityView = exports.ModAddCommunityView = exports.CommentReportView = exports.CommentReplyView = exports.CommentView = exports.PostReportView = exports.PostView = exports.PrivateMessageView = exports.SiteView = exports.LocalUserSettingsView = exports.PersonMentionView = exports.PersonViewSafe = void 0;
10
10
  var class_transformer_1 = require("class-transformer");
11
11
  require("reflect-metadata");
12
12
  var utils_1 = require("../utils");
@@ -73,6 +73,12 @@ var SiteView = /** @class */ (function () {
73
73
  __decorate([
74
74
  (0, class_transformer_1.Type)(function () { return source_1.Site; })
75
75
  ], SiteView.prototype, "site", void 0);
76
+ __decorate([
77
+ (0, class_transformer_1.Type)(function () { return source_1.LocalSite; })
78
+ ], SiteView.prototype, "local_site", void 0);
79
+ __decorate([
80
+ (0, class_transformer_1.Type)(function () { return source_1.LocalSiteRateLimit; })
81
+ ], SiteView.prototype, "local_site_rate_limit", void 0);
76
82
  return SiteView;
77
83
  }());
78
84
  exports.SiteView = SiteView;
@@ -725,3 +731,33 @@ var RegistrationApplicationView = /** @class */ (function () {
725
731
  return RegistrationApplicationView;
726
732
  }());
727
733
  exports.RegistrationApplicationView = RegistrationApplicationView;
734
+ var PrivateMessageReportView = /** @class */ (function () {
735
+ function PrivateMessageReportView() {
736
+ }
737
+ __decorate([
738
+ (0, class_transformer_1.Type)(function () { return source_1.PrivateMessageReport; })
739
+ ], PrivateMessageReportView.prototype, "private_message_report", void 0);
740
+ __decorate([
741
+ (0, class_transformer_1.Type)(function () { return source_1.PrivateMessage; })
742
+ ], PrivateMessageReportView.prototype, "private_message", void 0);
743
+ __decorate([
744
+ (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
745
+ ], PrivateMessageReportView.prototype, "private_message_creator", void 0);
746
+ __decorate([
747
+ (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
748
+ ], PrivateMessageReportView.prototype, "creator", void 0);
749
+ __decorate([
750
+ (0, class_transformer_1.Transform)(function (_a) {
751
+ var value = _a.value;
752
+ return (0, utils_1.toOption)(value);
753
+ }, { toClassOnly: true }),
754
+ (0, class_transformer_1.Transform)(function (_a) {
755
+ var value = _a.value;
756
+ return (0, utils_1.toUndefined)(value);
757
+ }, { toPlainOnly: true }),
758
+ (0, class_transformer_1.Expose)(),
759
+ (0, class_transformer_1.Type)(function () { return source_1.PersonSafe; })
760
+ ], PrivateMessageReportView.prototype, "resolver", void 0);
761
+ return PrivateMessageReportView;
762
+ }());
763
+ exports.PrivateMessageReportView = PrivateMessageReportView;
@@ -1,7 +1,7 @@
1
1
  import { ClassConstructor } from "class-transformer";
2
2
  import { CreateComment, CreateCommentLike, CreateCommentReport, DeleteComment, EditComment, GetComments, ListCommentReports, RemoveComment, ResolveCommentReport, SaveComment } from "./interfaces/api/comment";
3
3
  import { AddModToCommunity, BanFromCommunity, BlockCommunity, CreateCommunity, DeleteCommunity, EditCommunity, FollowCommunity, GetCommunity, ListCommunities, RemoveCommunity, TransferCommunity } from "./interfaces/api/community";
4
- import { AddAdmin, BanPerson, BlockPerson, ChangePassword, CreatePrivateMessage, DeleteAccount, DeletePrivateMessage, EditPrivateMessage, GetBannedPersons, GetPersonDetails, GetPersonMentions, GetPrivateMessages, GetReplies, GetReportCount, GetUnreadCount, Login, MarkAllAsRead, MarkCommentReplyAsRead, MarkPersonMentionAsRead, MarkPrivateMessageAsRead, PasswordChange, PasswordReset, Register, SaveUserSettings, VerifyEmail } from "./interfaces/api/person";
4
+ import { AddAdmin, BanPerson, BlockPerson, ChangePassword, CreatePrivateMessage, CreatePrivateMessageReport, DeleteAccount, DeletePrivateMessage, EditPrivateMessage, GetBannedPersons, GetPersonDetails, GetPersonMentions, GetPrivateMessages, GetReplies, GetReportCount, GetUnreadCount, ListPrivateMessageReports, Login, MarkAllAsRead, MarkCommentReplyAsRead, MarkPersonMentionAsRead, MarkPrivateMessageAsRead, PasswordChange, PasswordReset, Register, ResolvePrivateMessageReport, SaveUserSettings, VerifyEmail } from "./interfaces/api/person";
5
5
  import { CreatePost, CreatePostLike, CreatePostReport, DeletePost, EditPost, GetPost, GetPosts, GetSiteMetadata, ListPostReports, LockPost, MarkPostAsRead, RemovePost, ResolvePostReport, SavePost, StickyPost } from "./interfaces/api/post";
6
6
  import { ApproveRegistrationApplication, CreateSite, EditSite, GetModlog, GetSite, GetUnreadRegistrationApplicationCount, LeaveAdmin, ListRegistrationApplications, PurgeComment, PurgeCommunity, PurgePerson, PurgePost, ResolveObject, Search } from "./interfaces/api/site";
7
7
  import { CommunityJoin, PostJoin, UserJoin } from "./interfaces/api/websocket";
@@ -315,6 +315,18 @@ export declare class LemmyWebsocket {
315
315
  * Get / fetch private messages.
316
316
  */
317
317
  getPrivateMessages(form: GetPrivateMessages): string;
318
+ /**
319
+ * Create a report for a private message.
320
+ */
321
+ createPrivateMessageReport(form: CreatePrivateMessageReport): string;
322
+ /**
323
+ * Resolve a report for a private message.
324
+ */
325
+ resolvePrivateMessageReport(form: ResolvePrivateMessageReport): string;
326
+ /**
327
+ * List private message reports.
328
+ */
329
+ listPrivateMessageReports(form: ListPrivateMessageReports): string;
318
330
  /**
319
331
  * Block a person.
320
332
  */
package/dist/websocket.js CHANGED
@@ -459,6 +459,24 @@ var LemmyWebsocket = /** @class */ (function () {
459
459
  LemmyWebsocket.prototype.getPrivateMessages = function (form) {
460
460
  return wrapper(others_1.UserOperation.GetPrivateMessages, form);
461
461
  };
462
+ /**
463
+ * Create a report for a private message.
464
+ */
465
+ LemmyWebsocket.prototype.createPrivateMessageReport = function (form) {
466
+ return wrapper(others_1.UserOperation.CreatePrivateMessageReport, form);
467
+ };
468
+ /**
469
+ * Resolve a report for a private message.
470
+ */
471
+ LemmyWebsocket.prototype.resolvePrivateMessageReport = function (form) {
472
+ return wrapper(others_1.UserOperation.ResolvePrivateMessageReport, form);
473
+ };
474
+ /**
475
+ * List private message reports.
476
+ */
477
+ LemmyWebsocket.prototype.listPrivateMessageReports = function (form) {
478
+ return wrapper(others_1.UserOperation.ListPrivateMessageReports, form);
479
+ };
462
480
  /**
463
481
  * Block a person.
464
482
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "0.17.0-rc.45",
4
+ "version": "0.17.0-rc.47",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",