lemmy-js-client 0.17.0-rc.17 → 0.17.0-rc.18
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.js +0 -2
- package/dist/interfaces/api/comment.d.ts +11 -11
- package/dist/interfaces/api/comment.js +22 -55
- package/dist/interfaces/api/community.d.ts +11 -11
- package/dist/interfaces/api/community.js +22 -63
- package/dist/interfaces/api/person.d.ts +23 -22
- package/dist/interfaces/api/person.js +46 -113
- package/dist/interfaces/api/post.d.ts +15 -15
- package/dist/interfaces/api/post.js +30 -72
- package/dist/interfaces/api/site.d.ts +15 -13
- package/dist/interfaces/api/site.js +37 -78
- package/dist/interfaces/others.d.ts +1 -0
- package/dist/interfaces/others.js +2 -1
- package/package.json +1 -1
@@ -4,7 +4,7 @@ import { CommentView, CommunityModeratorView, PersonMentionView, PersonViewSafe,
|
|
4
4
|
export declare class Login {
|
5
5
|
username_or_email: string;
|
6
6
|
password: string;
|
7
|
-
constructor(
|
7
|
+
constructor(init: Login);
|
8
8
|
}
|
9
9
|
/**
|
10
10
|
* Register a new user.
|
@@ -30,7 +30,7 @@ export declare class Register {
|
|
30
30
|
* An answer is mandatory if require application is enabled on the server
|
31
31
|
*/
|
32
32
|
answer: Option<string>;
|
33
|
-
constructor(
|
33
|
+
constructor(init: Register);
|
34
34
|
}
|
35
35
|
export declare class GetCaptcha {
|
36
36
|
}
|
@@ -87,14 +87,14 @@ export declare class SaveUserSettings {
|
|
87
87
|
show_read_posts: Option<boolean>;
|
88
88
|
show_new_post_notifs: Option<boolean>;
|
89
89
|
auth: string;
|
90
|
-
constructor(
|
90
|
+
constructor(init: SaveUserSettings);
|
91
91
|
}
|
92
92
|
export declare class ChangePassword {
|
93
93
|
new_password: string;
|
94
94
|
new_password_verify: string;
|
95
95
|
old_password: string;
|
96
96
|
auth: string;
|
97
|
-
constructor(
|
97
|
+
constructor(init: ChangePassword);
|
98
98
|
}
|
99
99
|
/**
|
100
100
|
* The `jwt` string should be stored and used anywhere `auth` is called for.
|
@@ -119,7 +119,7 @@ export declare class GetPersonDetails {
|
|
119
119
|
community_id: Option<number>;
|
120
120
|
saved_only: Option<boolean>;
|
121
121
|
auth: Option<string>;
|
122
|
-
constructor(
|
122
|
+
constructor(init: GetPersonDetails);
|
123
123
|
}
|
124
124
|
export declare class GetPersonDetailsResponse {
|
125
125
|
person_view: PersonViewSafe;
|
@@ -141,7 +141,7 @@ export declare class AddAdmin {
|
|
141
141
|
person_id: number;
|
142
142
|
added: boolean;
|
143
143
|
auth: string;
|
144
|
-
constructor(
|
144
|
+
constructor(init: AddAdmin);
|
145
145
|
}
|
146
146
|
export declare class AddAdminResponse {
|
147
147
|
admins: PersonViewSafe[];
|
@@ -159,7 +159,7 @@ export declare class BanPerson {
|
|
159
159
|
*/
|
160
160
|
expires: Option<number>;
|
161
161
|
auth: string;
|
162
|
-
constructor(
|
162
|
+
constructor(init: BanPerson);
|
163
163
|
}
|
164
164
|
export declare class BanPersonResponse {
|
165
165
|
person_view: PersonViewSafe;
|
@@ -171,7 +171,7 @@ export declare class GetReplies {
|
|
171
171
|
limit: Option<number>;
|
172
172
|
unread_only: Option<boolean>;
|
173
173
|
auth: string;
|
174
|
-
constructor(
|
174
|
+
constructor(init: GetReplies);
|
175
175
|
}
|
176
176
|
export declare class GetPersonMentions {
|
177
177
|
sort: Option<SortType>;
|
@@ -179,13 +179,13 @@ export declare class GetPersonMentions {
|
|
179
179
|
limit: Option<number>;
|
180
180
|
unread_only: Option<boolean>;
|
181
181
|
auth: string;
|
182
|
-
constructor(
|
182
|
+
constructor(init: GetPersonMentions);
|
183
183
|
}
|
184
184
|
export declare class MarkPersonMentionAsRead {
|
185
185
|
person_mention_id: number;
|
186
186
|
read: boolean;
|
187
187
|
auth: string;
|
188
|
-
constructor(
|
188
|
+
constructor(init: MarkPersonMentionAsRead);
|
189
189
|
}
|
190
190
|
export declare class PersonMentionResponse {
|
191
191
|
person_mention_view: PersonMentionView;
|
@@ -196,13 +196,13 @@ export declare class PersonMentionResponse {
|
|
196
196
|
export declare class DeleteAccount {
|
197
197
|
password: string;
|
198
198
|
auth: string;
|
199
|
-
constructor(
|
199
|
+
constructor(init: DeleteAccount);
|
200
200
|
}
|
201
201
|
export declare class DeleteAccountResponse {
|
202
202
|
}
|
203
203
|
export declare class PasswordReset {
|
204
204
|
email: string;
|
205
|
-
constructor(
|
205
|
+
constructor(init: PasswordReset);
|
206
206
|
}
|
207
207
|
export declare class PasswordResetResponse {
|
208
208
|
}
|
@@ -210,37 +210,38 @@ export declare class PasswordChange {
|
|
210
210
|
token: string;
|
211
211
|
password: string;
|
212
212
|
password_verify: string;
|
213
|
-
constructor(
|
213
|
+
constructor(init: PasswordChange);
|
214
214
|
}
|
215
215
|
export declare class CreatePrivateMessage {
|
216
216
|
content: string;
|
217
217
|
recipient_id: number;
|
218
218
|
auth: string;
|
219
|
-
constructor(
|
219
|
+
constructor(init: CreatePrivateMessage);
|
220
220
|
}
|
221
221
|
export declare class EditPrivateMessage {
|
222
222
|
private_message_id: number;
|
223
223
|
content: string;
|
224
224
|
auth: string;
|
225
|
-
constructor(
|
225
|
+
constructor(init: EditPrivateMessage);
|
226
226
|
}
|
227
227
|
export declare class DeletePrivateMessage {
|
228
228
|
private_message_id: number;
|
229
229
|
deleted: boolean;
|
230
230
|
auth: string;
|
231
|
-
constructor(
|
231
|
+
constructor(init: DeletePrivateMessage);
|
232
232
|
}
|
233
233
|
export declare class MarkPrivateMessageAsRead {
|
234
234
|
private_message_id: number;
|
235
235
|
read: boolean;
|
236
236
|
auth: string;
|
237
|
-
constructor(
|
237
|
+
constructor(init: MarkPrivateMessageAsRead);
|
238
238
|
}
|
239
239
|
export declare class GetPrivateMessages {
|
240
240
|
unread_only: Option<boolean>;
|
241
241
|
page: Option<number>;
|
242
242
|
limit: Option<number>;
|
243
243
|
auth: string;
|
244
|
+
constructor(init: GetPrivateMessages);
|
244
245
|
}
|
245
246
|
export declare class PrivateMessagesResponse {
|
246
247
|
private_messages: PrivateMessageView[];
|
@@ -254,7 +255,7 @@ export declare class GetReportCount {
|
|
254
255
|
*/
|
255
256
|
community_id: Option<number>;
|
256
257
|
auth: string;
|
257
|
-
constructor(
|
258
|
+
constructor(init: GetReportCount);
|
258
259
|
}
|
259
260
|
export declare class GetReportCountResponse {
|
260
261
|
community_id: Option<number>;
|
@@ -263,7 +264,7 @@ export declare class GetReportCountResponse {
|
|
263
264
|
}
|
264
265
|
export declare class GetUnreadCount {
|
265
266
|
auth: string;
|
266
|
-
constructor(
|
267
|
+
constructor(init: GetUnreadCount);
|
267
268
|
}
|
268
269
|
export declare class GetUnreadCountResponse {
|
269
270
|
replies: number;
|
@@ -272,7 +273,7 @@ export declare class GetUnreadCountResponse {
|
|
272
273
|
}
|
273
274
|
export declare class VerifyEmail {
|
274
275
|
token: string;
|
275
|
-
constructor(
|
276
|
+
constructor(init: VerifyEmail);
|
276
277
|
}
|
277
278
|
export declare class VerifyEmailResponse {
|
278
279
|
}
|
@@ -280,7 +281,7 @@ export declare class BlockPerson {
|
|
280
281
|
person_id: number;
|
281
282
|
block: boolean;
|
282
283
|
auth: string;
|
283
|
-
constructor(
|
284
|
+
constructor(init: BlockPerson);
|
284
285
|
}
|
285
286
|
export declare class BlockPersonResponse {
|
286
287
|
person_view: PersonViewSafe;
|
@@ -288,7 +289,7 @@ export declare class BlockPersonResponse {
|
|
288
289
|
}
|
289
290
|
export declare class GetBannedPersons {
|
290
291
|
auth: string;
|
291
|
-
constructor(
|
292
|
+
constructor(init: GetBannedPersons);
|
292
293
|
}
|
293
294
|
export declare class BannedPersonsResponse {
|
294
295
|
banned: PersonViewSafe[];
|
@@ -11,9 +11,8 @@ var monads_1 = require("@sniptt/monads");
|
|
11
11
|
var class_transformer_1 = require("class-transformer");
|
12
12
|
var utils_1 = require("../../utils");
|
13
13
|
var Login = /** @class */ (function () {
|
14
|
-
function Login(
|
15
|
-
this
|
16
|
-
this.password = password;
|
14
|
+
function Login(init) {
|
15
|
+
Object.assign(this, init);
|
17
16
|
}
|
18
17
|
return Login;
|
19
18
|
}());
|
@@ -24,16 +23,8 @@ exports.Login = Login;
|
|
24
23
|
* Only the first user to register will be able to be the admin.
|
25
24
|
*/
|
26
25
|
var Register = /** @class */ (function () {
|
27
|
-
function Register(
|
28
|
-
this
|
29
|
-
this.email = email;
|
30
|
-
this.password = password;
|
31
|
-
this.password_verify = password_verify;
|
32
|
-
this.show_nsfw = show_nsfw;
|
33
|
-
this.captcha_uuid = captcha_uuid;
|
34
|
-
this.captcha_answer = captcha_answer;
|
35
|
-
this.honeypot = honeypot;
|
36
|
-
this.answer = answer;
|
26
|
+
function Register(init) {
|
27
|
+
Object.assign(this, init);
|
37
28
|
}
|
38
29
|
__decorate([
|
39
30
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -134,26 +125,8 @@ var CaptchaResponse = /** @class */ (function () {
|
|
134
125
|
}());
|
135
126
|
exports.CaptchaResponse = CaptchaResponse;
|
136
127
|
var SaveUserSettings = /** @class */ (function () {
|
137
|
-
function SaveUserSettings(
|
138
|
-
this
|
139
|
-
this.theme = theme;
|
140
|
-
this.default_sort_type = default_sort_type;
|
141
|
-
this.default_listing_type = default_listing_type;
|
142
|
-
this.lang = lang;
|
143
|
-
this.avatar = avatar;
|
144
|
-
this.banner = banner;
|
145
|
-
this.display_name = display_name;
|
146
|
-
this.email = email;
|
147
|
-
this.bio = bio;
|
148
|
-
this.matrix_user_id = matrix_user_id;
|
149
|
-
this.show_avatars = show_avatars;
|
150
|
-
this.show_scores = show_scores;
|
151
|
-
this.send_notifications_to_email = send_notifications_to_email;
|
152
|
-
this.bot_account = bot_account;
|
153
|
-
this.show_bot_accounts = show_bot_accounts;
|
154
|
-
this.show_read_posts = show_read_posts;
|
155
|
-
this.show_new_post_notifs = show_new_post_notifs;
|
156
|
-
this.auth = auth;
|
128
|
+
function SaveUserSettings(init) {
|
129
|
+
Object.assign(this, init);
|
157
130
|
}
|
158
131
|
__decorate([
|
159
132
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -357,11 +330,8 @@ var SaveUserSettings = /** @class */ (function () {
|
|
357
330
|
}());
|
358
331
|
exports.SaveUserSettings = SaveUserSettings;
|
359
332
|
var ChangePassword = /** @class */ (function () {
|
360
|
-
function ChangePassword(
|
361
|
-
this
|
362
|
-
this.new_password_verify = new_password_verify;
|
363
|
-
this.old_password = old_password;
|
364
|
-
this.auth = auth;
|
333
|
+
function ChangePassword(init) {
|
334
|
+
Object.assign(this, init);
|
365
335
|
}
|
366
336
|
return ChangePassword;
|
367
337
|
}());
|
@@ -387,15 +357,8 @@ var LoginResponse = /** @class */ (function () {
|
|
387
357
|
}());
|
388
358
|
exports.LoginResponse = LoginResponse;
|
389
359
|
var GetPersonDetails = /** @class */ (function () {
|
390
|
-
function GetPersonDetails(
|
391
|
-
this
|
392
|
-
this.username = username;
|
393
|
-
this.sort = sort;
|
394
|
-
this.page = page;
|
395
|
-
this.limit = limit;
|
396
|
-
this.community_id = community_id;
|
397
|
-
this.saved_only = saved_only;
|
398
|
-
this.auth = auth;
|
360
|
+
function GetPersonDetails(init) {
|
361
|
+
Object.assign(this, init);
|
399
362
|
}
|
400
363
|
__decorate([
|
401
364
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -514,10 +477,8 @@ var MarkAllAsRead = /** @class */ (function () {
|
|
514
477
|
}());
|
515
478
|
exports.MarkAllAsRead = MarkAllAsRead;
|
516
479
|
var AddAdmin = /** @class */ (function () {
|
517
|
-
function AddAdmin(
|
518
|
-
this
|
519
|
-
this.added = added;
|
520
|
-
this.auth = auth;
|
480
|
+
function AddAdmin(init) {
|
481
|
+
Object.assign(this, init);
|
521
482
|
}
|
522
483
|
return AddAdmin;
|
523
484
|
}());
|
@@ -529,13 +490,8 @@ var AddAdminResponse = /** @class */ (function () {
|
|
529
490
|
}());
|
530
491
|
exports.AddAdminResponse = AddAdminResponse;
|
531
492
|
var BanPerson = /** @class */ (function () {
|
532
|
-
function BanPerson(
|
533
|
-
this
|
534
|
-
this.ban = ban;
|
535
|
-
this.remove_data = remove_data;
|
536
|
-
this.reason = reason;
|
537
|
-
this.expires = expires;
|
538
|
-
this.auth = auth;
|
493
|
+
function BanPerson(init) {
|
494
|
+
Object.assign(this, init);
|
539
495
|
}
|
540
496
|
__decorate([
|
541
497
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -580,12 +536,8 @@ var BanPersonResponse = /** @class */ (function () {
|
|
580
536
|
}());
|
581
537
|
exports.BanPersonResponse = BanPersonResponse;
|
582
538
|
var GetReplies = /** @class */ (function () {
|
583
|
-
function GetReplies(
|
584
|
-
this
|
585
|
-
this.page = page;
|
586
|
-
this.limit = limit;
|
587
|
-
this.unread_only = unread_only;
|
588
|
-
this.auth = auth;
|
539
|
+
function GetReplies(init) {
|
540
|
+
Object.assign(this, init);
|
589
541
|
}
|
590
542
|
__decorate([
|
591
543
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -635,12 +587,8 @@ var GetReplies = /** @class */ (function () {
|
|
635
587
|
}());
|
636
588
|
exports.GetReplies = GetReplies;
|
637
589
|
var GetPersonMentions = /** @class */ (function () {
|
638
|
-
function GetPersonMentions(
|
639
|
-
this
|
640
|
-
this.page = page;
|
641
|
-
this.limit = limit;
|
642
|
-
this.unread_only = unread_only;
|
643
|
-
this.auth = auth;
|
590
|
+
function GetPersonMentions(init) {
|
591
|
+
Object.assign(this, init);
|
644
592
|
}
|
645
593
|
__decorate([
|
646
594
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -690,10 +638,8 @@ var GetPersonMentions = /** @class */ (function () {
|
|
690
638
|
}());
|
691
639
|
exports.GetPersonMentions = GetPersonMentions;
|
692
640
|
var MarkPersonMentionAsRead = /** @class */ (function () {
|
693
|
-
function MarkPersonMentionAsRead(
|
694
|
-
this
|
695
|
-
this.read = read;
|
696
|
-
this.auth = auth;
|
641
|
+
function MarkPersonMentionAsRead(init) {
|
642
|
+
Object.assign(this, init);
|
697
643
|
}
|
698
644
|
return MarkPersonMentionAsRead;
|
699
645
|
}());
|
@@ -708,9 +654,8 @@ exports.PersonMentionResponse = PersonMentionResponse;
|
|
708
654
|
* Permanently deletes your posts and comments
|
709
655
|
*/
|
710
656
|
var DeleteAccount = /** @class */ (function () {
|
711
|
-
function DeleteAccount(
|
712
|
-
this
|
713
|
-
this.auth = auth;
|
657
|
+
function DeleteAccount(init) {
|
658
|
+
Object.assign(this, init);
|
714
659
|
}
|
715
660
|
return DeleteAccount;
|
716
661
|
}());
|
@@ -722,8 +667,8 @@ var DeleteAccountResponse = /** @class */ (function () {
|
|
722
667
|
}());
|
723
668
|
exports.DeleteAccountResponse = DeleteAccountResponse;
|
724
669
|
var PasswordReset = /** @class */ (function () {
|
725
|
-
function PasswordReset(
|
726
|
-
this
|
670
|
+
function PasswordReset(init) {
|
671
|
+
Object.assign(this, init);
|
727
672
|
}
|
728
673
|
return PasswordReset;
|
729
674
|
}());
|
@@ -735,52 +680,43 @@ var PasswordResetResponse = /** @class */ (function () {
|
|
735
680
|
}());
|
736
681
|
exports.PasswordResetResponse = PasswordResetResponse;
|
737
682
|
var PasswordChange = /** @class */ (function () {
|
738
|
-
function PasswordChange(
|
739
|
-
this
|
740
|
-
this.password = password;
|
741
|
-
this.password_verify = password_verify;
|
683
|
+
function PasswordChange(init) {
|
684
|
+
Object.assign(this, init);
|
742
685
|
}
|
743
686
|
return PasswordChange;
|
744
687
|
}());
|
745
688
|
exports.PasswordChange = PasswordChange;
|
746
689
|
var CreatePrivateMessage = /** @class */ (function () {
|
747
|
-
function CreatePrivateMessage(
|
748
|
-
this
|
749
|
-
this.recipient_id = recipient_id;
|
750
|
-
this.auth = auth;
|
690
|
+
function CreatePrivateMessage(init) {
|
691
|
+
Object.assign(this, init);
|
751
692
|
}
|
752
693
|
return CreatePrivateMessage;
|
753
694
|
}());
|
754
695
|
exports.CreatePrivateMessage = CreatePrivateMessage;
|
755
696
|
var EditPrivateMessage = /** @class */ (function () {
|
756
|
-
function EditPrivateMessage(
|
757
|
-
this
|
758
|
-
this.content = content;
|
759
|
-
this.auth = auth;
|
697
|
+
function EditPrivateMessage(init) {
|
698
|
+
Object.assign(this, init);
|
760
699
|
}
|
761
700
|
return EditPrivateMessage;
|
762
701
|
}());
|
763
702
|
exports.EditPrivateMessage = EditPrivateMessage;
|
764
703
|
var DeletePrivateMessage = /** @class */ (function () {
|
765
|
-
function DeletePrivateMessage(
|
766
|
-
this
|
767
|
-
this.deleted = deleted;
|
768
|
-
this.auth = auth;
|
704
|
+
function DeletePrivateMessage(init) {
|
705
|
+
Object.assign(this, init);
|
769
706
|
}
|
770
707
|
return DeletePrivateMessage;
|
771
708
|
}());
|
772
709
|
exports.DeletePrivateMessage = DeletePrivateMessage;
|
773
710
|
var MarkPrivateMessageAsRead = /** @class */ (function () {
|
774
|
-
function MarkPrivateMessageAsRead(
|
775
|
-
this
|
776
|
-
this.read = read;
|
777
|
-
this.auth = auth;
|
711
|
+
function MarkPrivateMessageAsRead(init) {
|
712
|
+
Object.assign(this, init);
|
778
713
|
}
|
779
714
|
return MarkPrivateMessageAsRead;
|
780
715
|
}());
|
781
716
|
exports.MarkPrivateMessageAsRead = MarkPrivateMessageAsRead;
|
782
717
|
var GetPrivateMessages = /** @class */ (function () {
|
783
|
-
function GetPrivateMessages() {
|
718
|
+
function GetPrivateMessages(init) {
|
719
|
+
Object.assign(this, init);
|
784
720
|
}
|
785
721
|
__decorate([
|
786
722
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -831,9 +767,8 @@ var PrivateMessageResponse = /** @class */ (function () {
|
|
831
767
|
}());
|
832
768
|
exports.PrivateMessageResponse = PrivateMessageResponse;
|
833
769
|
var GetReportCount = /** @class */ (function () {
|
834
|
-
function GetReportCount(
|
835
|
-
this
|
836
|
-
this.auth = auth;
|
770
|
+
function GetReportCount(init) {
|
771
|
+
Object.assign(this, init);
|
837
772
|
}
|
838
773
|
__decorate([
|
839
774
|
(0, class_transformer_1.Transform)(function (_a) {
|
@@ -867,8 +802,8 @@ var GetReportCountResponse = /** @class */ (function () {
|
|
867
802
|
}());
|
868
803
|
exports.GetReportCountResponse = GetReportCountResponse;
|
869
804
|
var GetUnreadCount = /** @class */ (function () {
|
870
|
-
function GetUnreadCount(
|
871
|
-
this
|
805
|
+
function GetUnreadCount(init) {
|
806
|
+
Object.assign(this, init);
|
872
807
|
}
|
873
808
|
return GetUnreadCount;
|
874
809
|
}());
|
@@ -880,8 +815,8 @@ var GetUnreadCountResponse = /** @class */ (function () {
|
|
880
815
|
}());
|
881
816
|
exports.GetUnreadCountResponse = GetUnreadCountResponse;
|
882
817
|
var VerifyEmail = /** @class */ (function () {
|
883
|
-
function VerifyEmail(
|
884
|
-
this
|
818
|
+
function VerifyEmail(init) {
|
819
|
+
Object.assign(this, init);
|
885
820
|
}
|
886
821
|
return VerifyEmail;
|
887
822
|
}());
|
@@ -893,10 +828,8 @@ var VerifyEmailResponse = /** @class */ (function () {
|
|
893
828
|
}());
|
894
829
|
exports.VerifyEmailResponse = VerifyEmailResponse;
|
895
830
|
var BlockPerson = /** @class */ (function () {
|
896
|
-
function BlockPerson(
|
897
|
-
this
|
898
|
-
this.block = block;
|
899
|
-
this.auth = auth;
|
831
|
+
function BlockPerson(init) {
|
832
|
+
Object.assign(this, init);
|
900
833
|
}
|
901
834
|
return BlockPerson;
|
902
835
|
}());
|
@@ -908,8 +841,8 @@ var BlockPersonResponse = /** @class */ (function () {
|
|
908
841
|
}());
|
909
842
|
exports.BlockPersonResponse = BlockPersonResponse;
|
910
843
|
var GetBannedPersons = /** @class */ (function () {
|
911
|
-
function GetBannedPersons(
|
912
|
-
this
|
844
|
+
function GetBannedPersons(init) {
|
845
|
+
Object.assign(this, init);
|
913
846
|
}
|
914
847
|
return GetBannedPersons;
|
915
848
|
}());
|
@@ -9,7 +9,7 @@ export declare class CreatePost {
|
|
9
9
|
community_id: number;
|
10
10
|
honeypot: Option<string>;
|
11
11
|
auth: string;
|
12
|
-
constructor(
|
12
|
+
constructor(init: CreatePost);
|
13
13
|
}
|
14
14
|
export declare class PostResponse {
|
15
15
|
post_view: PostView;
|
@@ -17,7 +17,7 @@ export declare class PostResponse {
|
|
17
17
|
export declare class GetPost {
|
18
18
|
id: number;
|
19
19
|
auth: Option<string>;
|
20
|
-
constructor(
|
20
|
+
constructor(init: GetPost);
|
21
21
|
}
|
22
22
|
export declare class GetPostResponse {
|
23
23
|
post_view: PostView;
|
@@ -38,7 +38,7 @@ export declare class GetPosts {
|
|
38
38
|
community_name: Option<string>;
|
39
39
|
saved_only: Option<boolean>;
|
40
40
|
auth: Option<string>;
|
41
|
-
constructor(
|
41
|
+
constructor(init: GetPosts);
|
42
42
|
}
|
43
43
|
export declare class GetPostsResponse {
|
44
44
|
posts: PostView[];
|
@@ -50,7 +50,7 @@ export declare class CreatePostLike {
|
|
50
50
|
*/
|
51
51
|
score: number;
|
52
52
|
auth: string;
|
53
|
-
constructor(
|
53
|
+
constructor(init: CreatePostLike);
|
54
54
|
}
|
55
55
|
export declare class EditPost {
|
56
56
|
post_id: number;
|
@@ -59,13 +59,13 @@ export declare class EditPost {
|
|
59
59
|
body: Option<string>;
|
60
60
|
nsfw: Option<boolean>;
|
61
61
|
auth: string;
|
62
|
-
constructor(
|
62
|
+
constructor(init: EditPost);
|
63
63
|
}
|
64
64
|
export declare class DeletePost {
|
65
65
|
post_id: number;
|
66
66
|
deleted: boolean;
|
67
67
|
auth: string;
|
68
|
-
constructor(
|
68
|
+
constructor(init: DeletePost);
|
69
69
|
}
|
70
70
|
/**
|
71
71
|
* Only admins and mods can remove a post.
|
@@ -75,7 +75,7 @@ export declare class RemovePost {
|
|
75
75
|
removed: boolean;
|
76
76
|
reason: Option<string>;
|
77
77
|
auth: string;
|
78
|
-
constructor(
|
78
|
+
constructor(init: RemovePost);
|
79
79
|
}
|
80
80
|
/**
|
81
81
|
* Marks a post as read.
|
@@ -84,7 +84,7 @@ export declare class MarkPostAsRead {
|
|
84
84
|
post_id: number;
|
85
85
|
read: boolean;
|
86
86
|
auth: string;
|
87
|
-
constructor(
|
87
|
+
constructor(init: MarkPostAsRead);
|
88
88
|
}
|
89
89
|
/**
|
90
90
|
* Only admins and mods can lock a post.
|
@@ -93,7 +93,7 @@ export declare class LockPost {
|
|
93
93
|
post_id: number;
|
94
94
|
locked: boolean;
|
95
95
|
auth: string;
|
96
|
-
constructor(
|
96
|
+
constructor(init: LockPost);
|
97
97
|
}
|
98
98
|
/**
|
99
99
|
* Only admins and mods can sticky a post.
|
@@ -102,19 +102,19 @@ export declare class StickyPost {
|
|
102
102
|
post_id: number;
|
103
103
|
stickied: boolean;
|
104
104
|
auth: string;
|
105
|
-
constructor(
|
105
|
+
constructor(init: StickyPost);
|
106
106
|
}
|
107
107
|
export declare class SavePost {
|
108
108
|
post_id: number;
|
109
109
|
save: boolean;
|
110
110
|
auth: string;
|
111
|
-
constructor(
|
111
|
+
constructor(init: SavePost);
|
112
112
|
}
|
113
113
|
export declare class CreatePostReport {
|
114
114
|
post_id: number;
|
115
115
|
reason: string;
|
116
116
|
auth: string;
|
117
|
-
constructor(
|
117
|
+
constructor(init: CreatePostReport);
|
118
118
|
}
|
119
119
|
export declare class PostReportResponse {
|
120
120
|
post_report_view: PostReportView;
|
@@ -126,7 +126,7 @@ export declare class ResolvePostReport {
|
|
126
126
|
*/
|
127
127
|
resolved: boolean;
|
128
128
|
auth: string;
|
129
|
-
constructor(
|
129
|
+
constructor(init: ResolvePostReport);
|
130
130
|
}
|
131
131
|
export declare class ListPostReports {
|
132
132
|
page: Option<number>;
|
@@ -140,14 +140,14 @@ export declare class ListPostReports {
|
|
140
140
|
*/
|
141
141
|
unresolved_only: Option<boolean>;
|
142
142
|
auth: string;
|
143
|
-
constructor(
|
143
|
+
constructor(init: ListPostReports);
|
144
144
|
}
|
145
145
|
export declare class ListPostReportsResponse {
|
146
146
|
post_reports: PostReportView[];
|
147
147
|
}
|
148
148
|
export declare class GetSiteMetadata {
|
149
149
|
url: string;
|
150
|
-
constructor(
|
150
|
+
constructor(init: GetSiteMetadata);
|
151
151
|
}
|
152
152
|
export declare class GetSiteMetadataResponse {
|
153
153
|
metadata: SiteMetadata;
|