lemmy-js-client 0.19.0-alpha.10 → 0.19.0-alpha.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +17 -29
- package/dist/index.d.ts +0 -14
- package/dist/types/LemmyErrorType.d.ts +165 -138
- package/dist/types/LocalUser.d.ts +1 -0
- package/dist/types/ModRemoveCommunity.d.ts +0 -1
- package/dist/types/RemoveCommunity.d.ts +0 -1
- package/dist/types/SaveUserSettings.d.ts +3 -0
- package/package.json +1 -1
- package/dist/types/AddAdminResponse.d.ts +0 -4
- package/dist/types/AddAdminResponse.js +0 -2
- package/dist/types/AddModToCommunityResponse.d.ts +0 -4
- package/dist/types/AddModToCommunityResponse.js +0 -2
- package/dist/types/BanFromCommunityResponse.d.ts +0 -5
- package/dist/types/BanFromCommunityResponse.js +0 -2
- package/dist/types/BanPersonResponse.d.ts +0 -5
- package/dist/types/BanPersonResponse.js +0 -2
- package/dist/types/BlockCommunityResponse.d.ts +0 -5
- package/dist/types/BlockCommunityResponse.js +0 -2
- package/dist/types/BlockInstanceResponse.d.ts +0 -3
- package/dist/types/BlockInstanceResponse.js +0 -3
- package/dist/types/BlockPersonResponse.d.ts +0 -5
- package/dist/types/BlockPersonResponse.js +0 -2
- package/dist/types/CommentReplyResponse.d.ts +0 -4
- package/dist/types/CommentReplyResponse.js +0 -2
- package/dist/types/DeleteAccountResponse.d.ts +0 -1
- package/dist/types/DeleteAccountResponse.js +0 -3
- package/dist/types/DeleteCustomEmojiResponse.d.ts +0 -5
- package/dist/types/DeleteCustomEmojiResponse.js +0 -2
- package/dist/types/PasswordResetResponse.d.ts +0 -1
- package/dist/types/PasswordResetResponse.js +0 -3
- package/dist/types/PersonSortType.d.ts +0 -1
- package/dist/types/PersonSortType.js +0 -3
- package/dist/types/PurgeItemResponse.d.ts +0 -3
- package/dist/types/PurgeItemResponse.js +0 -3
- package/dist/types/VerifyEmailResponse.d.ts +0 -1
- package/dist/types/VerifyEmailResponse.js +0 -3
package/dist/http.d.ts
CHANGED
@@ -1,20 +1,13 @@
|
|
1
1
|
import fetch from "cross-fetch";
|
2
2
|
import { AddAdmin } from "./types/AddAdmin";
|
3
|
-
import { AddAdminResponse } from "./types/AddAdminResponse";
|
4
3
|
import { AddModToCommunity } from "./types/AddModToCommunity";
|
5
|
-
import { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
|
6
4
|
import { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
|
7
5
|
import { BanFromCommunity } from "./types/BanFromCommunity";
|
8
|
-
import { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
|
9
6
|
import { BanPerson } from "./types/BanPerson";
|
10
|
-
import { BanPersonResponse } from "./types/BanPersonResponse";
|
11
7
|
import { BannedPersonsResponse } from "./types/BannedPersonsResponse";
|
12
8
|
import { BlockCommunity } from "./types/BlockCommunity";
|
13
|
-
import { BlockCommunityResponse } from "./types/BlockCommunityResponse";
|
14
9
|
import { BlockPerson } from "./types/BlockPerson";
|
15
|
-
import { BlockPersonResponse } from "./types/BlockPersonResponse";
|
16
10
|
import { ChangePassword } from "./types/ChangePassword";
|
17
|
-
import { CommentReplyResponse } from "./types/CommentReplyResponse";
|
18
11
|
import { CommentReportResponse } from "./types/CommentReportResponse";
|
19
12
|
import { CommentResponse } from "./types/CommentResponse";
|
20
13
|
import { CommunityResponse } from "./types/CommunityResponse";
|
@@ -31,11 +24,9 @@ import { CreatePrivateMessageReport } from "./types/CreatePrivateMessageReport";
|
|
31
24
|
import { CreateSite } from "./types/CreateSite";
|
32
25
|
import { CustomEmojiResponse } from "./types/CustomEmojiResponse";
|
33
26
|
import { DeleteAccount } from "./types/DeleteAccount";
|
34
|
-
import { DeleteAccountResponse } from "./types/DeleteAccountResponse";
|
35
27
|
import { DeleteComment } from "./types/DeleteComment";
|
36
28
|
import { DeleteCommunity } from "./types/DeleteCommunity";
|
37
29
|
import { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
|
38
|
-
import { DeleteCustomEmojiResponse } from "./types/DeleteCustomEmojiResponse";
|
39
30
|
import { DeletePost } from "./types/DeletePost";
|
40
31
|
import { DeletePrivateMessage } from "./types/DeletePrivateMessage";
|
41
32
|
import { DistinguishComment } from "./types/DistinguishComment";
|
@@ -93,7 +84,6 @@ import { MarkPostAsRead } from "./types/MarkPostAsRead";
|
|
93
84
|
import { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
|
94
85
|
import { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
95
86
|
import { PasswordReset } from "./types/PasswordReset";
|
96
|
-
import { PasswordResetResponse } from "./types/PasswordResetResponse";
|
97
87
|
import { PersonMentionResponse } from "./types/PersonMentionResponse";
|
98
88
|
import { PostReportResponse } from "./types/PostReportResponse";
|
99
89
|
import { PostResponse } from "./types/PostResponse";
|
@@ -102,7 +92,6 @@ import { PrivateMessageResponse } from "./types/PrivateMessageResponse";
|
|
102
92
|
import { PrivateMessagesResponse } from "./types/PrivateMessagesResponse";
|
103
93
|
import { PurgeComment } from "./types/PurgeComment";
|
104
94
|
import { PurgeCommunity } from "./types/PurgeCommunity";
|
105
|
-
import { PurgeItemResponse } from "./types/PurgeItemResponse";
|
106
95
|
import { PurgePerson } from "./types/PurgePerson";
|
107
96
|
import { PurgePost } from "./types/PurgePost";
|
108
97
|
import { Register } from "./types/Register";
|
@@ -123,14 +112,13 @@ import { SearchResponse } from "./types/SearchResponse";
|
|
123
112
|
import { SiteResponse } from "./types/SiteResponse";
|
124
113
|
import { TransferCommunity } from "./types/TransferCommunity";
|
125
114
|
import { VerifyEmail } from "./types/VerifyEmail";
|
126
|
-
import { VerifyEmailResponse } from "./types/VerifyEmailResponse";
|
127
115
|
import { DeleteImage, UploadImage, UploadImageResponse } from "./types/others";
|
128
116
|
import { HideCommunity } from "./types/HideCommunity";
|
129
117
|
import { BlockInstance } from "./types/BlockInstance";
|
130
|
-
import { BlockInstanceResponse } from "./types/BlockInstanceResponse";
|
131
118
|
import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
132
119
|
import { UpdateTotp } from "./types/UpdateTotp";
|
133
120
|
import { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
121
|
+
import { SuccessResponse } from "./types/SuccessResponse";
|
134
122
|
/**
|
135
123
|
* Helps build lemmy HTTP requests.
|
136
124
|
*/
|
@@ -242,7 +230,7 @@ export declare class LemmyHttp {
|
|
242
230
|
*
|
243
231
|
* `HTTP.POST /community/block`
|
244
232
|
*/
|
245
|
-
blockCommunity(form: BlockCommunity): Promise<
|
233
|
+
blockCommunity(form: BlockCommunity): Promise<SuccessResponse>;
|
246
234
|
/**
|
247
235
|
* Delete a community.
|
248
236
|
*
|
@@ -272,13 +260,13 @@ export declare class LemmyHttp {
|
|
272
260
|
*
|
273
261
|
* `HTTP.POST /community/ban_user`
|
274
262
|
*/
|
275
|
-
banFromCommunity(form: BanFromCommunity): Promise<
|
263
|
+
banFromCommunity(form: BanFromCommunity): Promise<SuccessResponse>;
|
276
264
|
/**
|
277
265
|
* Add a moderator to your community.
|
278
266
|
*
|
279
267
|
* `HTTP.POST /community/mod`
|
280
268
|
*/
|
281
|
-
addModToCommunity(form: AddModToCommunity): Promise<
|
269
|
+
addModToCommunity(form: AddModToCommunity): Promise<SuccessResponse>;
|
282
270
|
/**
|
283
271
|
* Create a post.
|
284
272
|
*
|
@@ -398,7 +386,7 @@ export declare class LemmyHttp {
|
|
398
386
|
*
|
399
387
|
* `HTTP.POST /comment/mark_as_read`
|
400
388
|
*/
|
401
|
-
markCommentReplyAsRead(form: MarkCommentReplyAsRead): Promise<
|
389
|
+
markCommentReplyAsRead(form: MarkCommentReplyAsRead): Promise<SuccessResponse>;
|
402
390
|
/**
|
403
391
|
* Like / vote on a comment.
|
404
392
|
*
|
@@ -536,7 +524,7 @@ export declare class LemmyHttp {
|
|
536
524
|
*
|
537
525
|
* `HTTP.POST /user/ban`
|
538
526
|
*/
|
539
|
-
banPerson(form: BanPerson): Promise<
|
527
|
+
banPerson(form: BanPerson): Promise<SuccessResponse>;
|
540
528
|
/**
|
541
529
|
* Get a list of banned users
|
542
530
|
*
|
@@ -548,7 +536,7 @@ export declare class LemmyHttp {
|
|
548
536
|
*
|
549
537
|
* `HTTP.POST /user/block`
|
550
538
|
*/
|
551
|
-
blockPerson(form: BlockPerson): Promise<
|
539
|
+
blockPerson(form: BlockPerson): Promise<SuccessResponse>;
|
552
540
|
/**
|
553
541
|
* Fetch a Captcha.
|
554
542
|
*
|
@@ -560,13 +548,13 @@ export declare class LemmyHttp {
|
|
560
548
|
*
|
561
549
|
* `HTTP.POST /user/delete_account`
|
562
550
|
*/
|
563
|
-
deleteAccount(form: DeleteAccount): Promise<
|
551
|
+
deleteAccount(form: DeleteAccount): Promise<SuccessResponse>;
|
564
552
|
/**
|
565
553
|
* Reset your password.
|
566
554
|
*
|
567
555
|
* `HTTP.POST /user/password_reset`
|
568
556
|
*/
|
569
|
-
passwordReset(form: PasswordReset): Promise<
|
557
|
+
passwordReset(form: PasswordReset): Promise<SuccessResponse>;
|
570
558
|
/**
|
571
559
|
* Change your password from an email / token based reset.
|
572
560
|
*
|
@@ -608,13 +596,13 @@ export declare class LemmyHttp {
|
|
608
596
|
*
|
609
597
|
* `HTTP.POST /user/verify_email`
|
610
598
|
*/
|
611
|
-
verifyEmail(form: VerifyEmail): Promise<
|
599
|
+
verifyEmail(form: VerifyEmail): Promise<SuccessResponse>;
|
612
600
|
/**
|
613
601
|
* Add an admin to your site.
|
614
602
|
*
|
615
603
|
* `HTTP.POST /admin/add`
|
616
604
|
*/
|
617
|
-
addAdmin(form: AddAdmin): Promise<
|
605
|
+
addAdmin(form: AddAdmin): Promise<SuccessResponse>;
|
618
606
|
/**
|
619
607
|
* Get the unread registration applications count.
|
620
608
|
*
|
@@ -638,25 +626,25 @@ export declare class LemmyHttp {
|
|
638
626
|
*
|
639
627
|
* `HTTP.POST /admin/purge/person`
|
640
628
|
*/
|
641
|
-
purgePerson(form: PurgePerson): Promise<
|
629
|
+
purgePerson(form: PurgePerson): Promise<SuccessResponse>;
|
642
630
|
/**
|
643
631
|
* Purge / Delete a community from the database.
|
644
632
|
*
|
645
633
|
* `HTTP.POST /admin/purge/community`
|
646
634
|
*/
|
647
|
-
purgeCommunity(form: PurgeCommunity): Promise<
|
635
|
+
purgeCommunity(form: PurgeCommunity): Promise<SuccessResponse>;
|
648
636
|
/**
|
649
637
|
* Purge / Delete a post from the database.
|
650
638
|
*
|
651
639
|
* `HTTP.POST /admin/purge/post`
|
652
640
|
*/
|
653
|
-
purgePost(form: PurgePost): Promise<
|
641
|
+
purgePost(form: PurgePost): Promise<SuccessResponse>;
|
654
642
|
/**
|
655
643
|
* Purge / Delete a comment from the database.
|
656
644
|
*
|
657
645
|
* `HTTP.POST /admin/purge/comment`
|
658
646
|
*/
|
659
|
-
purgeComment(form: PurgeComment): Promise<
|
647
|
+
purgeComment(form: PurgeComment): Promise<SuccessResponse>;
|
660
648
|
/**
|
661
649
|
* Create a new custom emoji
|
662
650
|
*
|
@@ -674,7 +662,7 @@ export declare class LemmyHttp {
|
|
674
662
|
*
|
675
663
|
* `HTTP.Post /custom_emoji/delete`
|
676
664
|
*/
|
677
|
-
deleteCustomEmoji(form: DeleteCustomEmoji): Promise<
|
665
|
+
deleteCustomEmoji(form: DeleteCustomEmoji): Promise<SuccessResponse>;
|
678
666
|
/**
|
679
667
|
* Fetch federated instances.
|
680
668
|
*
|
@@ -686,7 +674,7 @@ export declare class LemmyHttp {
|
|
686
674
|
*
|
687
675
|
* `HTTP.Post /site/block`
|
688
676
|
*/
|
689
|
-
blockInstance(form: BlockInstance): Promise<
|
677
|
+
blockInstance(form: BlockInstance): Promise<SuccessResponse>;
|
690
678
|
/**
|
691
679
|
* Upload an image to the server.
|
692
680
|
*/
|
package/dist/index.d.ts
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
export * from "./http";
|
2
2
|
export { AddAdmin } from "./types/AddAdmin";
|
3
|
-
export { AddAdminResponse } from "./types/AddAdminResponse";
|
4
3
|
export { AddModToCommunity } from "./types/AddModToCommunity";
|
5
|
-
export { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
|
6
4
|
export { AdminPurgeComment } from "./types/AdminPurgeComment";
|
7
5
|
export { AdminPurgeCommentView } from "./types/AdminPurgeCommentView";
|
8
6
|
export { AdminPurgeCommunity } from "./types/AdminPurgeCommunity";
|
@@ -13,16 +11,11 @@ export { AdminPurgePost } from "./types/AdminPurgePost";
|
|
13
11
|
export { AdminPurgePostView } from "./types/AdminPurgePostView";
|
14
12
|
export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
|
15
13
|
export { BanFromCommunity } from "./types/BanFromCommunity";
|
16
|
-
export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
|
17
14
|
export { BanPerson } from "./types/BanPerson";
|
18
|
-
export { BanPersonResponse } from "./types/BanPersonResponse";
|
19
15
|
export { BannedPersonsResponse } from "./types/BannedPersonsResponse";
|
20
16
|
export { BlockCommunity } from "./types/BlockCommunity";
|
21
|
-
export { BlockCommunityResponse } from "./types/BlockCommunityResponse";
|
22
17
|
export { BlockInstance } from "./types/BlockInstance";
|
23
|
-
export { BlockInstanceResponse } from "./types/BlockInstanceResponse";
|
24
18
|
export { BlockPerson } from "./types/BlockPerson";
|
25
|
-
export { BlockPersonResponse } from "./types/BlockPersonResponse";
|
26
19
|
export { CaptchaResponse } from "./types/CaptchaResponse";
|
27
20
|
export { ChangePassword } from "./types/ChangePassword";
|
28
21
|
export { Comment } from "./types/Comment";
|
@@ -30,7 +23,6 @@ export { CommentAggregates } from "./types/CommentAggregates";
|
|
30
23
|
export { CommentId } from "./types/CommentId";
|
31
24
|
export { CommentReply } from "./types/CommentReply";
|
32
25
|
export { CommentReplyId } from "./types/CommentReplyId";
|
33
|
-
export { CommentReplyResponse } from "./types/CommentReplyResponse";
|
34
26
|
export { CommentReplyView } from "./types/CommentReplyView";
|
35
27
|
export { CommentReport } from "./types/CommentReport";
|
36
28
|
export { CommentReportId } from "./types/CommentReportId";
|
@@ -65,11 +57,9 @@ export { CustomEmojiKeyword } from "./types/CustomEmojiKeyword";
|
|
65
57
|
export { CustomEmojiResponse } from "./types/CustomEmojiResponse";
|
66
58
|
export { CustomEmojiView } from "./types/CustomEmojiView";
|
67
59
|
export { DeleteAccount } from "./types/DeleteAccount";
|
68
|
-
export { DeleteAccountResponse } from "./types/DeleteAccountResponse";
|
69
60
|
export { DeleteComment } from "./types/DeleteComment";
|
70
61
|
export { DeleteCommunity } from "./types/DeleteCommunity";
|
71
62
|
export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
|
72
|
-
export { DeleteCustomEmojiResponse } from "./types/DeleteCustomEmojiResponse";
|
73
63
|
export { DeletePost } from "./types/DeletePost";
|
74
64
|
export { DeletePrivateMessage } from "./types/DeletePrivateMessage";
|
75
65
|
export { DistinguishComment } from "./types/DistinguishComment";
|
@@ -171,7 +161,6 @@ export { MyUserInfo } from "./types/MyUserInfo";
|
|
171
161
|
export { PaginationCursor } from "./types/PaginationCursor";
|
172
162
|
export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
173
163
|
export { PasswordReset } from "./types/PasswordReset";
|
174
|
-
export { PasswordResetResponse } from "./types/PasswordResetResponse";
|
175
164
|
export { Person } from "./types/Person";
|
176
165
|
export { PersonAggregates } from "./types/PersonAggregates";
|
177
166
|
export { PersonBlockId } from "./types/PersonBlockId";
|
@@ -181,7 +170,6 @@ export { PersonMention } from "./types/PersonMention";
|
|
181
170
|
export { PersonMentionId } from "./types/PersonMentionId";
|
182
171
|
export { PersonMentionResponse } from "./types/PersonMentionResponse";
|
183
172
|
export { PersonMentionView } from "./types/PersonMentionView";
|
184
|
-
export { PersonSortType } from "./types/PersonSortType";
|
185
173
|
export { PersonView } from "./types/PersonView";
|
186
174
|
export { Post } from "./types/Post";
|
187
175
|
export { PostAggregates } from "./types/PostAggregates";
|
@@ -205,7 +193,6 @@ export { PrivateMessageView } from "./types/PrivateMessageView";
|
|
205
193
|
export { PrivateMessagesResponse } from "./types/PrivateMessagesResponse";
|
206
194
|
export { PurgeComment } from "./types/PurgeComment";
|
207
195
|
export { PurgeCommunity } from "./types/PurgeCommunity";
|
208
|
-
export { PurgeItemResponse } from "./types/PurgeItemResponse";
|
209
196
|
export { PurgePerson } from "./types/PurgePerson";
|
210
197
|
export { PurgePost } from "./types/PurgePost";
|
211
198
|
export { Register } from "./types/Register";
|
@@ -241,5 +228,4 @@ export { TransferCommunity } from "./types/TransferCommunity";
|
|
241
228
|
export { UpdateTotp } from "./types/UpdateTotp";
|
242
229
|
export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
243
230
|
export { VerifyEmail } from "./types/VerifyEmail";
|
244
|
-
export { VerifyEmailResponse } from "./types/VerifyEmailResponse";
|
245
231
|
export { UploadImage, UploadImageResponse, ImageFile, DeleteImage, } from "./types/others";
|
@@ -1,277 +1,304 @@
|
|
1
1
|
export type LemmyErrorType = {
|
2
|
-
|
2
|
+
error: "report_reason_required";
|
3
3
|
} | {
|
4
|
-
|
4
|
+
error: "report_too_long";
|
5
5
|
} | {
|
6
|
-
|
6
|
+
error: "not_a_moderator";
|
7
7
|
} | {
|
8
|
-
|
8
|
+
error: "not_an_admin";
|
9
9
|
} | {
|
10
|
-
|
10
|
+
error: "cant_block_yourself";
|
11
11
|
} | {
|
12
|
-
|
12
|
+
error: "cant_block_admin";
|
13
13
|
} | {
|
14
|
-
|
14
|
+
error: "couldnt_update_user";
|
15
15
|
} | {
|
16
|
-
|
16
|
+
error: "passwords_do_not_match";
|
17
17
|
} | {
|
18
|
-
|
18
|
+
error: "email_not_verified";
|
19
19
|
} | {
|
20
|
-
|
20
|
+
error: "email_required";
|
21
21
|
} | {
|
22
|
-
|
22
|
+
error: "couldnt_update_comment";
|
23
23
|
} | {
|
24
|
-
|
24
|
+
error: "couldnt_update_private_message";
|
25
25
|
} | {
|
26
|
-
|
26
|
+
error: "cannot_leave_admin";
|
27
27
|
} | {
|
28
|
-
|
28
|
+
error: "no_lines_in_html";
|
29
29
|
} | {
|
30
|
-
|
30
|
+
error: "site_metadata_page_is_not_doctype_html";
|
31
31
|
} | {
|
32
|
-
|
33
|
-
} | {
|
34
|
-
error_type: "PictrsResponseError";
|
32
|
+
error: "pictrs_response_error";
|
35
33
|
message: string;
|
36
34
|
} | {
|
37
|
-
|
35
|
+
error: "pictrs_purge_response_error";
|
38
36
|
message: string;
|
39
37
|
} | {
|
40
|
-
|
38
|
+
error: "pictrs_caching_disabled";
|
41
39
|
} | {
|
42
|
-
|
40
|
+
error: "image_url_missing_path_segments";
|
43
41
|
} | {
|
44
|
-
|
42
|
+
error: "image_url_missing_last_path_segment";
|
45
43
|
} | {
|
46
|
-
|
44
|
+
error: "pictrs_api_key_not_provided";
|
47
45
|
} | {
|
48
|
-
|
46
|
+
error: "no_content_type_header";
|
49
47
|
} | {
|
50
|
-
|
48
|
+
error: "not_an_image_type";
|
51
49
|
} | {
|
52
|
-
|
50
|
+
error: "not_a_mod_or_admin";
|
53
51
|
} | {
|
54
|
-
|
52
|
+
error: "no_admins";
|
55
53
|
} | {
|
56
|
-
|
54
|
+
error: "not_top_admin";
|
57
55
|
} | {
|
58
|
-
|
56
|
+
error: "not_top_mod";
|
59
57
|
} | {
|
60
|
-
|
58
|
+
error: "not_logged_in";
|
61
59
|
} | {
|
62
|
-
|
60
|
+
error: "site_ban";
|
63
61
|
} | {
|
64
|
-
|
62
|
+
error: "deleted";
|
65
63
|
} | {
|
66
|
-
|
64
|
+
error: "banned_from_community";
|
67
65
|
} | {
|
68
|
-
|
66
|
+
error: "couldnt_find_community";
|
69
67
|
} | {
|
70
|
-
|
68
|
+
error: "couldnt_find_person";
|
71
69
|
} | {
|
72
|
-
|
70
|
+
error: "person_is_blocked";
|
73
71
|
} | {
|
74
|
-
|
72
|
+
error: "downvotes_are_disabled";
|
75
73
|
} | {
|
76
|
-
|
74
|
+
error: "instance_is_private";
|
77
75
|
} | {
|
78
|
-
|
76
|
+
error: "invalid_password";
|
79
77
|
} | {
|
80
|
-
|
78
|
+
error: "site_description_length_overflow";
|
81
79
|
} | {
|
82
|
-
|
80
|
+
error: "honeypot_failed";
|
83
81
|
} | {
|
84
|
-
|
82
|
+
error: "registration_application_is_pending";
|
85
83
|
} | {
|
86
|
-
|
84
|
+
error: "cant_enable_private_instance_and_federation_together";
|
87
85
|
} | {
|
88
|
-
|
86
|
+
error: "locked";
|
89
87
|
} | {
|
90
|
-
|
88
|
+
error: "couldnt_create_comment";
|
91
89
|
} | {
|
92
|
-
|
90
|
+
error: "max_comment_depth_reached";
|
93
91
|
} | {
|
94
|
-
|
92
|
+
error: "no_comment_edit_allowed";
|
95
93
|
} | {
|
96
|
-
|
94
|
+
error: "only_admins_can_create_communities";
|
97
95
|
} | {
|
98
|
-
|
96
|
+
error: "community_already_exists";
|
99
97
|
} | {
|
100
|
-
|
98
|
+
error: "language_not_allowed";
|
101
99
|
} | {
|
102
|
-
|
100
|
+
error: "only_mods_can_post_in_community";
|
103
101
|
} | {
|
104
|
-
|
102
|
+
error: "couldnt_update_post";
|
105
103
|
} | {
|
106
|
-
|
104
|
+
error: "no_post_edit_allowed";
|
107
105
|
} | {
|
108
|
-
|
106
|
+
error: "couldnt_find_post";
|
109
107
|
} | {
|
110
|
-
|
108
|
+
error: "edit_private_message_not_allowed";
|
111
109
|
} | {
|
112
|
-
|
110
|
+
error: "site_already_exists";
|
113
111
|
} | {
|
114
|
-
|
112
|
+
error: "application_question_required";
|
115
113
|
} | {
|
116
|
-
|
114
|
+
error: "invalid_default_post_listing_type";
|
117
115
|
} | {
|
118
|
-
|
116
|
+
error: "registration_closed";
|
119
117
|
} | {
|
120
|
-
|
121
|
-
|
118
|
+
error: "registration_application_answer_required";
|
119
|
+
} | {
|
120
|
+
error: "email_already_exists";
|
121
|
+
} | {
|
122
|
+
error: "federation_forbidden_by_strict_allow_list";
|
123
|
+
} | {
|
124
|
+
error: "person_is_banned_from_community";
|
122
125
|
} | {
|
123
|
-
|
126
|
+
error: "object_is_not_public";
|
124
127
|
} | {
|
125
|
-
|
128
|
+
error: "invalid_community";
|
126
129
|
} | {
|
127
|
-
|
130
|
+
error: "cannot_create_post_or_comment_in_deleted_or_removed_community";
|
128
131
|
} | {
|
129
|
-
|
132
|
+
error: "cannot_receive_page";
|
130
133
|
} | {
|
131
|
-
|
134
|
+
error: "new_post_cannot_be_locked";
|
132
135
|
} | {
|
133
|
-
|
136
|
+
error: "only_local_admin_can_remove_community";
|
134
137
|
} | {
|
135
|
-
|
138
|
+
error: "only_local_admin_can_restore_community";
|
136
139
|
} | {
|
137
|
-
|
140
|
+
error: "no_id_given";
|
138
141
|
} | {
|
139
|
-
|
142
|
+
error: "incorrect_login";
|
140
143
|
} | {
|
141
|
-
|
144
|
+
error: "invalid_query";
|
145
|
+
} | {
|
146
|
+
error: "object_not_local";
|
147
|
+
} | {
|
148
|
+
error: "post_is_locked";
|
149
|
+
} | {
|
150
|
+
error: "person_is_banned_from_site";
|
151
|
+
message: string;
|
142
152
|
} | {
|
143
|
-
|
153
|
+
error: "invalid_vote_value";
|
144
154
|
} | {
|
145
|
-
|
155
|
+
error: "page_does_not_specify_creator";
|
146
156
|
} | {
|
147
|
-
|
157
|
+
error: "page_does_not_specify_group";
|
148
158
|
} | {
|
149
|
-
|
159
|
+
error: "no_community_found_in_cc";
|
150
160
|
} | {
|
151
|
-
|
161
|
+
error: "no_email_setup";
|
152
162
|
} | {
|
153
|
-
|
163
|
+
error: "email_smtp_server_needs_a_port";
|
154
164
|
} | {
|
155
|
-
|
165
|
+
error: "missing_an_email";
|
156
166
|
} | {
|
157
|
-
|
167
|
+
error: "rate_limit_error";
|
158
168
|
} | {
|
159
|
-
|
169
|
+
error: "invalid_name";
|
160
170
|
} | {
|
161
|
-
|
171
|
+
error: "invalid_display_name";
|
162
172
|
} | {
|
163
|
-
|
173
|
+
error: "invalid_matrix_id";
|
164
174
|
} | {
|
165
|
-
|
175
|
+
error: "invalid_post_title";
|
166
176
|
} | {
|
167
|
-
|
177
|
+
error: "invalid_body_field";
|
168
178
|
} | {
|
169
|
-
|
179
|
+
error: "bio_length_overflow";
|
170
180
|
} | {
|
171
|
-
|
181
|
+
error: "missing_totp_token";
|
172
182
|
} | {
|
173
|
-
|
183
|
+
error: "missing_totp_secret";
|
174
184
|
} | {
|
175
|
-
|
185
|
+
error: "incorrect_totp_token";
|
176
186
|
} | {
|
177
|
-
|
187
|
+
error: "couldnt_parse_totp_secret";
|
178
188
|
} | {
|
179
|
-
|
189
|
+
error: "couldnt_generate_totp";
|
180
190
|
} | {
|
181
|
-
|
191
|
+
error: "totp_already_enabled";
|
182
192
|
} | {
|
183
|
-
|
193
|
+
error: "couldnt_like_comment";
|
184
194
|
} | {
|
185
|
-
|
195
|
+
error: "couldnt_save_comment";
|
186
196
|
} | {
|
187
|
-
|
197
|
+
error: "couldnt_create_report";
|
188
198
|
} | {
|
189
|
-
|
199
|
+
error: "couldnt_resolve_report";
|
190
200
|
} | {
|
191
|
-
|
201
|
+
error: "community_moderator_already_exists";
|
192
202
|
} | {
|
193
|
-
|
203
|
+
error: "community_user_already_banned";
|
194
204
|
} | {
|
195
|
-
|
205
|
+
error: "community_block_already_exists";
|
196
206
|
} | {
|
197
|
-
|
207
|
+
error: "community_follower_already_exists";
|
198
208
|
} | {
|
199
|
-
|
209
|
+
error: "couldnt_update_community_hidden_status";
|
200
210
|
} | {
|
201
|
-
|
211
|
+
error: "person_block_already_exists";
|
202
212
|
} | {
|
203
|
-
|
213
|
+
error: "user_already_exists";
|
204
214
|
} | {
|
205
|
-
|
215
|
+
error: "token_not_found";
|
206
216
|
} | {
|
207
|
-
|
217
|
+
error: "couldnt_like_post";
|
208
218
|
} | {
|
209
|
-
|
219
|
+
error: "couldnt_save_post";
|
210
220
|
} | {
|
211
|
-
|
221
|
+
error: "couldnt_mark_post_as_read";
|
212
222
|
} | {
|
213
|
-
|
223
|
+
error: "couldnt_update_community";
|
214
224
|
} | {
|
215
|
-
|
225
|
+
error: "couldnt_update_replies";
|
216
226
|
} | {
|
217
|
-
|
227
|
+
error: "couldnt_update_person_mentions";
|
218
228
|
} | {
|
219
|
-
|
229
|
+
error: "post_title_too_long";
|
220
230
|
} | {
|
221
|
-
|
231
|
+
error: "couldnt_create_post";
|
222
232
|
} | {
|
223
|
-
|
233
|
+
error: "couldnt_create_private_message";
|
224
234
|
} | {
|
225
|
-
|
235
|
+
error: "couldnt_update_private";
|
226
236
|
} | {
|
227
|
-
|
237
|
+
error: "system_err_login";
|
228
238
|
} | {
|
229
|
-
|
239
|
+
error: "couldnt_set_all_registrations_accepted";
|
230
240
|
} | {
|
231
|
-
|
241
|
+
error: "couldnt_set_all_email_verified";
|
232
242
|
} | {
|
233
|
-
|
243
|
+
error: "banned";
|
234
244
|
} | {
|
235
|
-
|
245
|
+
error: "couldnt_get_comments";
|
236
246
|
} | {
|
237
|
-
|
247
|
+
error: "couldnt_get_posts";
|
238
248
|
} | {
|
239
|
-
|
249
|
+
error: "invalid_url";
|
240
250
|
} | {
|
241
|
-
|
251
|
+
error: "email_send_failed";
|
242
252
|
} | {
|
243
|
-
|
253
|
+
error: "slurs";
|
244
254
|
} | {
|
245
|
-
|
255
|
+
error: "couldnt_find_object";
|
246
256
|
} | {
|
247
|
-
|
257
|
+
error: "registration_denied";
|
258
|
+
message: string | null;
|
248
259
|
} | {
|
249
|
-
|
260
|
+
error: "federation_disabled";
|
250
261
|
} | {
|
251
|
-
|
262
|
+
error: "domain_blocked";
|
263
|
+
message: string;
|
252
264
|
} | {
|
253
|
-
|
265
|
+
error: "domain_not_in_allow_list";
|
254
266
|
message: string;
|
255
267
|
} | {
|
256
|
-
|
268
|
+
error: "federation_disabled_by_strict_allow_list";
|
269
|
+
} | {
|
270
|
+
error: "site_name_required";
|
271
|
+
} | {
|
272
|
+
error: "site_name_length_overflow";
|
273
|
+
} | {
|
274
|
+
error: "permissive_regex";
|
275
|
+
} | {
|
276
|
+
error: "invalid_regex";
|
257
277
|
} | {
|
258
|
-
|
278
|
+
error: "captcha_incorrect";
|
259
279
|
} | {
|
260
|
-
|
280
|
+
error: "password_reset_limit_reached";
|
261
281
|
} | {
|
262
|
-
|
282
|
+
error: "couldnt_create_audio_captcha";
|
263
283
|
} | {
|
264
|
-
|
284
|
+
error: "invalid_url_scheme";
|
265
285
|
} | {
|
266
|
-
|
286
|
+
error: "couldnt_send_webmention";
|
267
287
|
} | {
|
268
|
-
|
288
|
+
error: "contradicting_filters";
|
269
289
|
} | {
|
270
|
-
|
290
|
+
error: "instance_block_already_exists";
|
271
291
|
} | {
|
272
|
-
|
292
|
+
error: "auth_cookie_insecure";
|
273
293
|
} | {
|
274
|
-
|
294
|
+
error: "too_many_items";
|
275
295
|
} | {
|
276
|
-
|
296
|
+
error: "community_has_no_followers";
|
297
|
+
} | {
|
298
|
+
error: "ban_expiration_in_past";
|
299
|
+
} | {
|
300
|
+
error: "invalid_unix_time";
|
301
|
+
} | {
|
302
|
+
error: "unknown";
|
303
|
+
message: string;
|
277
304
|
};
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { LanguageId } from "./LanguageId";
|
2
2
|
import type { ListingType } from "./ListingType";
|
3
|
+
import type { PostListingMode } from "./PostListingMode";
|
3
4
|
import type { SortType } from "./SortType";
|
4
5
|
export interface SaveUserSettings {
|
5
6
|
show_nsfw?: boolean;
|
@@ -25,5 +26,7 @@ export interface SaveUserSettings {
|
|
25
26
|
discussion_languages?: Array<LanguageId>;
|
26
27
|
open_links_in_new_tab?: boolean;
|
27
28
|
infinite_scroll_enabled?: boolean;
|
29
|
+
post_listing_mode?: PostListingMode;
|
28
30
|
enable_keyboard_navigation?: boolean;
|
31
|
+
enable_animated_images?: boolean;
|
29
32
|
}
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
export type DeleteAccountResponse = Record<string, never>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export type PasswordResetResponse = Record<string, never>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export type PersonSortType = "New" | "Old" | "MostComments" | "CommentScore" | "PostScore" | "PostCount";
|
@@ -1 +0,0 @@
|
|
1
|
-
export type VerifyEmailResponse = Record<string, never>;
|