lemmy-js-client 0.19.0-alpha.13 → 0.19.0-alpha.15
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +14 -18
- package/dist/http.js +7 -4
- package/dist/index.d.ts +1 -7
- package/dist/types/CommentView.d.ts +1 -0
- package/dist/types/LemmyErrorType.d.ts +167 -138
- package/dist/types/MarkPostAsRead.d.ts +2 -2
- package/dist/types/PersonAggregates.d.ts +0 -2
- package/dist/types/PostView.d.ts +1 -0
- package/package.json +1 -1
- 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/utils.d.ts +0 -0
- package/dist/utils.js +0 -0
- /package/dist/{types/others.d.ts → other_types.d.ts} +0 -0
- /package/dist/{types/others.js → other_types.js} +0 -0
package/dist/http.d.ts
CHANGED
@@ -31,11 +31,9 @@ import { CreatePrivateMessageReport } from "./types/CreatePrivateMessageReport";
|
|
31
31
|
import { CreateSite } from "./types/CreateSite";
|
32
32
|
import { CustomEmojiResponse } from "./types/CustomEmojiResponse";
|
33
33
|
import { DeleteAccount } from "./types/DeleteAccount";
|
34
|
-
import { DeleteAccountResponse } from "./types/DeleteAccountResponse";
|
35
34
|
import { DeleteComment } from "./types/DeleteComment";
|
36
35
|
import { DeleteCommunity } from "./types/DeleteCommunity";
|
37
36
|
import { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
|
38
|
-
import { DeleteCustomEmojiResponse } from "./types/DeleteCustomEmojiResponse";
|
39
37
|
import { DeletePost } from "./types/DeletePost";
|
40
38
|
import { DeletePrivateMessage } from "./types/DeletePrivateMessage";
|
41
39
|
import { DistinguishComment } from "./types/DistinguishComment";
|
@@ -93,7 +91,6 @@ import { MarkPostAsRead } from "./types/MarkPostAsRead";
|
|
93
91
|
import { MarkPrivateMessageAsRead } from "./types/MarkPrivateMessageAsRead";
|
94
92
|
import { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
95
93
|
import { PasswordReset } from "./types/PasswordReset";
|
96
|
-
import { PasswordResetResponse } from "./types/PasswordResetResponse";
|
97
94
|
import { PersonMentionResponse } from "./types/PersonMentionResponse";
|
98
95
|
import { PostReportResponse } from "./types/PostReportResponse";
|
99
96
|
import { PostResponse } from "./types/PostResponse";
|
@@ -102,7 +99,6 @@ import { PrivateMessageResponse } from "./types/PrivateMessageResponse";
|
|
102
99
|
import { PrivateMessagesResponse } from "./types/PrivateMessagesResponse";
|
103
100
|
import { PurgeComment } from "./types/PurgeComment";
|
104
101
|
import { PurgeCommunity } from "./types/PurgeCommunity";
|
105
|
-
import { PurgeItemResponse } from "./types/PurgeItemResponse";
|
106
102
|
import { PurgePerson } from "./types/PurgePerson";
|
107
103
|
import { PurgePost } from "./types/PurgePost";
|
108
104
|
import { Register } from "./types/Register";
|
@@ -123,8 +119,7 @@ import { SearchResponse } from "./types/SearchResponse";
|
|
123
119
|
import { SiteResponse } from "./types/SiteResponse";
|
124
120
|
import { TransferCommunity } from "./types/TransferCommunity";
|
125
121
|
import { VerifyEmail } from "./types/VerifyEmail";
|
126
|
-
import {
|
127
|
-
import { DeleteImage, UploadImage, UploadImageResponse } from "./types/others";
|
122
|
+
import { DeleteImage, UploadImage, UploadImageResponse } from "./other_types";
|
128
123
|
import { HideCommunity } from "./types/HideCommunity";
|
129
124
|
import { BlockInstance } from "./types/BlockInstance";
|
130
125
|
import { BlockInstanceResponse } from "./types/BlockInstanceResponse";
|
@@ -281,7 +276,7 @@ export declare class LemmyHttp {
|
|
281
276
|
*
|
282
277
|
* `HTTP.PUT /community/hide`
|
283
278
|
*/
|
284
|
-
hideCommunity(form: HideCommunity): Promise<
|
279
|
+
hideCommunity(form: HideCommunity): Promise<SuccessResponse>;
|
285
280
|
/**
|
286
281
|
* A moderator remove for a community.
|
287
282
|
*
|
@@ -341,7 +336,7 @@ export declare class LemmyHttp {
|
|
341
336
|
*
|
342
337
|
* `HTTP.POST /post/mark_as_read`
|
343
338
|
*/
|
344
|
-
markPostAsRead(form: MarkPostAsRead): Promise<
|
339
|
+
markPostAsRead(form: MarkPostAsRead): Promise<SuccessResponse>;
|
345
340
|
/**
|
346
341
|
* A moderator can lock a post ( IE disable new comments ).
|
347
342
|
*
|
@@ -534,6 +529,7 @@ export declare class LemmyHttp {
|
|
534
529
|
* `HTTP.POST /user/login`
|
535
530
|
*/
|
536
531
|
login(form: Login): Promise<LoginResponse>;
|
532
|
+
logout(): Promise<SuccessResponse>;
|
537
533
|
/**
|
538
534
|
* Get the details for a person.
|
539
535
|
*
|
@@ -587,19 +583,19 @@ export declare class LemmyHttp {
|
|
587
583
|
*
|
588
584
|
* `HTTP.POST /user/delete_account`
|
589
585
|
*/
|
590
|
-
deleteAccount(form: DeleteAccount): Promise<
|
586
|
+
deleteAccount(form: DeleteAccount): Promise<SuccessResponse>;
|
591
587
|
/**
|
592
588
|
* Reset your password.
|
593
589
|
*
|
594
590
|
* `HTTP.POST /user/password_reset`
|
595
591
|
*/
|
596
|
-
passwordReset(form: PasswordReset): Promise<
|
592
|
+
passwordReset(form: PasswordReset): Promise<SuccessResponse>;
|
597
593
|
/**
|
598
594
|
* Change your password from an email / token based reset.
|
599
595
|
*
|
600
596
|
* `HTTP.POST /user/password_change`
|
601
597
|
*/
|
602
|
-
passwordChangeAfterReset(form: PasswordChangeAfterReset): Promise<
|
598
|
+
passwordChangeAfterReset(form: PasswordChangeAfterReset): Promise<SuccessResponse>;
|
603
599
|
/**
|
604
600
|
* Mark all replies as read.
|
605
601
|
*
|
@@ -611,7 +607,7 @@ export declare class LemmyHttp {
|
|
611
607
|
*
|
612
608
|
* `HTTP.PUT /user/save_user_settings`
|
613
609
|
*/
|
614
|
-
saveUserSettings(form: SaveUserSettings): Promise<
|
610
|
+
saveUserSettings(form: SaveUserSettings): Promise<SuccessResponse>;
|
615
611
|
/**
|
616
612
|
* Change your user password.
|
617
613
|
*
|
@@ -635,7 +631,7 @@ export declare class LemmyHttp {
|
|
635
631
|
*
|
636
632
|
* `HTTP.POST /user/verify_email`
|
637
633
|
*/
|
638
|
-
verifyEmail(form: VerifyEmail): Promise<
|
634
|
+
verifyEmail(form: VerifyEmail): Promise<SuccessResponse>;
|
639
635
|
/**
|
640
636
|
* Add an admin to your site.
|
641
637
|
*
|
@@ -665,25 +661,25 @@ export declare class LemmyHttp {
|
|
665
661
|
*
|
666
662
|
* `HTTP.POST /admin/purge/person`
|
667
663
|
*/
|
668
|
-
purgePerson(form: PurgePerson): Promise<
|
664
|
+
purgePerson(form: PurgePerson): Promise<SuccessResponse>;
|
669
665
|
/**
|
670
666
|
* Purge / Delete a community from the database.
|
671
667
|
*
|
672
668
|
* `HTTP.POST /admin/purge/community`
|
673
669
|
*/
|
674
|
-
purgeCommunity(form: PurgeCommunity): Promise<
|
670
|
+
purgeCommunity(form: PurgeCommunity): Promise<SuccessResponse>;
|
675
671
|
/**
|
676
672
|
* Purge / Delete a post from the database.
|
677
673
|
*
|
678
674
|
* `HTTP.POST /admin/purge/post`
|
679
675
|
*/
|
680
|
-
purgePost(form: PurgePost): Promise<
|
676
|
+
purgePost(form: PurgePost): Promise<SuccessResponse>;
|
681
677
|
/**
|
682
678
|
* Purge / Delete a comment from the database.
|
683
679
|
*
|
684
680
|
* `HTTP.POST /admin/purge/comment`
|
685
681
|
*/
|
686
|
-
purgeComment(form: PurgeComment): Promise<
|
682
|
+
purgeComment(form: PurgeComment): Promise<SuccessResponse>;
|
687
683
|
/**
|
688
684
|
* Create a new custom emoji
|
689
685
|
*
|
@@ -701,7 +697,7 @@ export declare class LemmyHttp {
|
|
701
697
|
*
|
702
698
|
* `HTTP.Post /custom_emoji/delete`
|
703
699
|
*/
|
704
|
-
deleteCustomEmoji(form: DeleteCustomEmoji): Promise<
|
700
|
+
deleteCustomEmoji(form: DeleteCustomEmoji): Promise<SuccessResponse>;
|
705
701
|
/**
|
706
702
|
* Fetch federated instances.
|
707
703
|
*
|
package/dist/http.js
CHANGED
@@ -27,7 +27,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
27
|
exports.LemmyHttp = void 0;
|
28
28
|
const cross_fetch_1 = __importDefault(require("cross-fetch"));
|
29
29
|
const form_data_1 = __importDefault(require("form-data"));
|
30
|
-
const
|
30
|
+
const other_types_1 = require("./other_types");
|
31
31
|
var HttpType;
|
32
32
|
(function (HttpType) {
|
33
33
|
HttpType["Get"] = "GET";
|
@@ -49,7 +49,7 @@ class LemmyHttp {
|
|
49
49
|
_LemmyHttp_headers.set(this, {});
|
50
50
|
_LemmyHttp_pictrsUrl.set(this, void 0);
|
51
51
|
_LemmyHttp_fetchFunction.set(this, cross_fetch_1.default);
|
52
|
-
__classPrivateFieldSet(this, _LemmyHttp_apiUrl, `${baseUrl.replace(/\/+$/, "")}/api/${
|
52
|
+
__classPrivateFieldSet(this, _LemmyHttp_apiUrl, `${baseUrl.replace(/\/+$/, "")}/api/${other_types_1.VERSION}`, "f");
|
53
53
|
__classPrivateFieldSet(this, _LemmyHttp_pictrsUrl, `${baseUrl}/pictrs/image`, "f");
|
54
54
|
if (options === null || options === void 0 ? void 0 : options.headers) {
|
55
55
|
__classPrivateFieldSet(this, _LemmyHttp_headers, options.headers, "f");
|
@@ -569,6 +569,9 @@ class LemmyHttp {
|
|
569
569
|
login(form) {
|
570
570
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/login", form);
|
571
571
|
}
|
572
|
+
logout() {
|
573
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/logout", {});
|
574
|
+
}
|
572
575
|
/**
|
573
576
|
* Get the details for a person.
|
574
577
|
*
|
@@ -895,10 +898,10 @@ _LemmyHttp_apiUrl = new WeakMap(), _LemmyHttp_headers = new WeakMap(), _LemmyHtt
|
|
895
898
|
json = yield response.json();
|
896
899
|
}
|
897
900
|
catch (error) {
|
898
|
-
throw response.statusText;
|
901
|
+
throw new Error(response.statusText);
|
899
902
|
}
|
900
903
|
if (!response.ok) {
|
901
|
-
throw (_a = json["error"]) !== null && _a !== void 0 ? _a : response.statusText;
|
904
|
+
throw new Error((_a = json["error"]) !== null && _a !== void 0 ? _a : response.statusText);
|
902
905
|
}
|
903
906
|
else {
|
904
907
|
return json;
|
package/dist/index.d.ts
CHANGED
@@ -65,11 +65,9 @@ export { CustomEmojiKeyword } from "./types/CustomEmojiKeyword";
|
|
65
65
|
export { CustomEmojiResponse } from "./types/CustomEmojiResponse";
|
66
66
|
export { CustomEmojiView } from "./types/CustomEmojiView";
|
67
67
|
export { DeleteAccount } from "./types/DeleteAccount";
|
68
|
-
export { DeleteAccountResponse } from "./types/DeleteAccountResponse";
|
69
68
|
export { DeleteComment } from "./types/DeleteComment";
|
70
69
|
export { DeleteCommunity } from "./types/DeleteCommunity";
|
71
70
|
export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
|
72
|
-
export { DeleteCustomEmojiResponse } from "./types/DeleteCustomEmojiResponse";
|
73
71
|
export { DeletePost } from "./types/DeletePost";
|
74
72
|
export { DeletePrivateMessage } from "./types/DeletePrivateMessage";
|
75
73
|
export { DistinguishComment } from "./types/DistinguishComment";
|
@@ -172,7 +170,6 @@ export { MyUserInfo } from "./types/MyUserInfo";
|
|
172
170
|
export { PaginationCursor } from "./types/PaginationCursor";
|
173
171
|
export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
|
174
172
|
export { PasswordReset } from "./types/PasswordReset";
|
175
|
-
export { PasswordResetResponse } from "./types/PasswordResetResponse";
|
176
173
|
export { Person } from "./types/Person";
|
177
174
|
export { PersonAggregates } from "./types/PersonAggregates";
|
178
175
|
export { PersonBlockId } from "./types/PersonBlockId";
|
@@ -182,7 +179,6 @@ export { PersonMention } from "./types/PersonMention";
|
|
182
179
|
export { PersonMentionId } from "./types/PersonMentionId";
|
183
180
|
export { PersonMentionResponse } from "./types/PersonMentionResponse";
|
184
181
|
export { PersonMentionView } from "./types/PersonMentionView";
|
185
|
-
export { PersonSortType } from "./types/PersonSortType";
|
186
182
|
export { PersonView } from "./types/PersonView";
|
187
183
|
export { Post } from "./types/Post";
|
188
184
|
export { PostAggregates } from "./types/PostAggregates";
|
@@ -206,7 +202,6 @@ export { PrivateMessageView } from "./types/PrivateMessageView";
|
|
206
202
|
export { PrivateMessagesResponse } from "./types/PrivateMessagesResponse";
|
207
203
|
export { PurgeComment } from "./types/PurgeComment";
|
208
204
|
export { PurgeCommunity } from "./types/PurgeCommunity";
|
209
|
-
export { PurgeItemResponse } from "./types/PurgeItemResponse";
|
210
205
|
export { PurgePerson } from "./types/PurgePerson";
|
211
206
|
export { PurgePost } from "./types/PurgePost";
|
212
207
|
export { Register } from "./types/Register";
|
@@ -242,5 +237,4 @@ export { TransferCommunity } from "./types/TransferCommunity";
|
|
242
237
|
export { UpdateTotp } from "./types/UpdateTotp";
|
243
238
|
export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
|
244
239
|
export { VerifyEmail } from "./types/VerifyEmail";
|
245
|
-
export {
|
246
|
-
export { UploadImage, UploadImageResponse, ImageFile, DeleteImage, } from "./types/others";
|
240
|
+
export { UploadImage, UploadImageResponse, ImageFile, DeleteImage, } from "./other_types";
|
@@ -1,277 +1,306 @@
|
|
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";
|
142
145
|
} | {
|
143
|
-
|
146
|
+
error: "object_not_local";
|
144
147
|
} | {
|
145
|
-
|
148
|
+
error: "post_is_locked";
|
146
149
|
} | {
|
147
|
-
|
150
|
+
error: "person_is_banned_from_site";
|
151
|
+
message: string;
|
152
|
+
} | {
|
153
|
+
error: "invalid_vote_value";
|
154
|
+
} | {
|
155
|
+
error: "page_does_not_specify_creator";
|
148
156
|
} | {
|
149
|
-
|
157
|
+
error: "page_does_not_specify_group";
|
150
158
|
} | {
|
151
|
-
|
159
|
+
error: "no_community_found_in_cc";
|
152
160
|
} | {
|
153
|
-
|
161
|
+
error: "no_email_setup";
|
154
162
|
} | {
|
155
|
-
|
163
|
+
error: "email_smtp_server_needs_a_port";
|
156
164
|
} | {
|
157
|
-
|
165
|
+
error: "missing_an_email";
|
158
166
|
} | {
|
159
|
-
|
167
|
+
error: "rate_limit_error";
|
160
168
|
} | {
|
161
|
-
|
169
|
+
error: "invalid_name";
|
162
170
|
} | {
|
163
|
-
|
171
|
+
error: "invalid_display_name";
|
164
172
|
} | {
|
165
|
-
|
173
|
+
error: "invalid_matrix_id";
|
166
174
|
} | {
|
167
|
-
|
175
|
+
error: "invalid_post_title";
|
168
176
|
} | {
|
169
|
-
|
177
|
+
error: "invalid_body_field";
|
170
178
|
} | {
|
171
|
-
|
179
|
+
error: "bio_length_overflow";
|
172
180
|
} | {
|
173
|
-
|
181
|
+
error: "missing_totp_token";
|
174
182
|
} | {
|
175
|
-
|
183
|
+
error: "missing_totp_secret";
|
176
184
|
} | {
|
177
|
-
|
185
|
+
error: "incorrect_totp_token";
|
178
186
|
} | {
|
179
|
-
|
187
|
+
error: "couldnt_parse_totp_secret";
|
180
188
|
} | {
|
181
|
-
|
189
|
+
error: "couldnt_generate_totp";
|
182
190
|
} | {
|
183
|
-
|
191
|
+
error: "totp_already_enabled";
|
184
192
|
} | {
|
185
|
-
|
193
|
+
error: "couldnt_like_comment";
|
186
194
|
} | {
|
187
|
-
|
195
|
+
error: "couldnt_save_comment";
|
188
196
|
} | {
|
189
|
-
|
197
|
+
error: "couldnt_create_report";
|
190
198
|
} | {
|
191
|
-
|
199
|
+
error: "couldnt_resolve_report";
|
192
200
|
} | {
|
193
|
-
|
201
|
+
error: "community_moderator_already_exists";
|
194
202
|
} | {
|
195
|
-
|
203
|
+
error: "community_user_already_banned";
|
196
204
|
} | {
|
197
|
-
|
205
|
+
error: "community_block_already_exists";
|
198
206
|
} | {
|
199
|
-
|
207
|
+
error: "community_follower_already_exists";
|
200
208
|
} | {
|
201
|
-
|
209
|
+
error: "couldnt_update_community_hidden_status";
|
202
210
|
} | {
|
203
|
-
|
211
|
+
error: "person_block_already_exists";
|
204
212
|
} | {
|
205
|
-
|
213
|
+
error: "user_already_exists";
|
206
214
|
} | {
|
207
|
-
|
215
|
+
error: "token_not_found";
|
208
216
|
} | {
|
209
|
-
|
217
|
+
error: "couldnt_like_post";
|
210
218
|
} | {
|
211
|
-
|
219
|
+
error: "couldnt_save_post";
|
212
220
|
} | {
|
213
|
-
|
221
|
+
error: "couldnt_mark_post_as_read";
|
214
222
|
} | {
|
215
|
-
|
223
|
+
error: "couldnt_update_community";
|
216
224
|
} | {
|
217
|
-
|
225
|
+
error: "couldnt_update_replies";
|
218
226
|
} | {
|
219
|
-
|
227
|
+
error: "couldnt_update_person_mentions";
|
220
228
|
} | {
|
221
|
-
|
229
|
+
error: "post_title_too_long";
|
222
230
|
} | {
|
223
|
-
|
231
|
+
error: "couldnt_create_post";
|
224
232
|
} | {
|
225
|
-
|
233
|
+
error: "couldnt_create_private_message";
|
226
234
|
} | {
|
227
|
-
|
235
|
+
error: "couldnt_update_private";
|
228
236
|
} | {
|
229
|
-
|
237
|
+
error: "system_err_login";
|
230
238
|
} | {
|
231
|
-
|
239
|
+
error: "couldnt_set_all_registrations_accepted";
|
232
240
|
} | {
|
233
|
-
|
241
|
+
error: "couldnt_set_all_email_verified";
|
234
242
|
} | {
|
235
|
-
|
243
|
+
error: "banned";
|
236
244
|
} | {
|
237
|
-
|
245
|
+
error: "couldnt_get_comments";
|
238
246
|
} | {
|
239
|
-
|
247
|
+
error: "couldnt_get_posts";
|
240
248
|
} | {
|
241
|
-
|
249
|
+
error: "invalid_url";
|
242
250
|
} | {
|
243
|
-
|
251
|
+
error: "email_send_failed";
|
244
252
|
} | {
|
245
|
-
|
253
|
+
error: "slurs";
|
246
254
|
} | {
|
247
|
-
|
255
|
+
error: "couldnt_find_object";
|
248
256
|
} | {
|
249
|
-
|
257
|
+
error: "registration_denied";
|
258
|
+
message: string | null;
|
250
259
|
} | {
|
251
|
-
|
260
|
+
error: "federation_disabled";
|
261
|
+
} | {
|
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";
|
257
269
|
} | {
|
258
|
-
|
270
|
+
error: "site_name_required";
|
259
271
|
} | {
|
260
|
-
|
272
|
+
error: "site_name_length_overflow";
|
261
273
|
} | {
|
262
|
-
|
274
|
+
error: "permissive_regex";
|
263
275
|
} | {
|
264
|
-
|
276
|
+
error: "invalid_regex";
|
265
277
|
} | {
|
266
|
-
|
278
|
+
error: "captcha_incorrect";
|
267
279
|
} | {
|
268
|
-
|
280
|
+
error: "password_reset_limit_reached";
|
269
281
|
} | {
|
270
|
-
|
282
|
+
error: "couldnt_create_audio_captcha";
|
271
283
|
} | {
|
272
|
-
|
284
|
+
error: "invalid_url_scheme";
|
273
285
|
} | {
|
274
|
-
|
286
|
+
error: "couldnt_send_webmention";
|
275
287
|
} | {
|
276
|
-
|
288
|
+
error: "contradicting_filters";
|
289
|
+
} | {
|
290
|
+
error: "instance_block_already_exists";
|
291
|
+
} | {
|
292
|
+
error: "auth_cookie_insecure";
|
293
|
+
} | {
|
294
|
+
error: "too_many_items";
|
295
|
+
} | {
|
296
|
+
error: "community_has_no_followers";
|
297
|
+
} | {
|
298
|
+
error: "ban_expiration_in_past";
|
299
|
+
} | {
|
300
|
+
error: "invalid_unix_time";
|
301
|
+
} | {
|
302
|
+
error: "invalid_bot_action";
|
303
|
+
} | {
|
304
|
+
error: "unknown";
|
305
|
+
message: string;
|
277
306
|
};
|
package/dist/types/PostView.d.ts
CHANGED
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>;
|
package/dist/utils.d.ts
DELETED
File without changes
|
package/dist/utils.js
DELETED
File without changes
|
File without changes
|
File without changes
|