lemmy-js-client 1.0.0-site-person-ban.0 → 1.0.0-vote-view.0
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.d.ts +98 -26
- package/dist/http.js +1078 -894
- package/dist/index.d.ts +30 -4
- package/dist/other_types.d.ts +20 -2
- package/dist/types/AdminAllowInstance.d.ts +1 -1
- package/dist/types/AdminBlockInstance.d.ts +2 -2
- package/dist/types/AdminBlockInstanceParams.d.ts +1 -1
- package/dist/types/AdminListUsers.d.ts +7 -0
- package/dist/types/{BannedPersonsResponse.d.ts → AdminListUsersResponse.d.ts} +4 -6
- package/dist/types/AdminPurgeComment.d.ts +1 -1
- package/dist/types/AdminPurgeCommunity.d.ts +1 -1
- package/dist/types/AdminPurgePerson.d.ts +1 -1
- package/dist/types/AdminPurgePost.d.ts +1 -1
- package/dist/types/BanFromCommunity.d.ts +1 -1
- package/dist/types/BanPerson.d.ts +1 -1
- package/dist/types/Comment.d.ts +7 -2
- package/dist/types/CommentActions.d.ts +2 -6
- package/dist/types/CommentActions.js +1 -0
- package/dist/types/CommentReply.d.ts +1 -1
- package/dist/types/CommentReplyView.d.ts +5 -1
- package/dist/types/CommentReport.d.ts +2 -2
- package/dist/types/CommentReportView.d.ts +0 -1
- package/dist/types/CommentSlimView.d.ts +3 -2
- package/dist/types/CommentView.d.ts +5 -1
- package/dist/types/Community.d.ts +2 -2
- package/dist/types/CommunityActions.d.ts +5 -13
- package/dist/types/CommunityIdQuery.d.ts +8 -0
- package/dist/types/CommunityReport.d.ts +2 -2
- package/dist/types/CommunityView.d.ts +2 -0
- package/dist/types/CreateCommunityTag.d.ts +8 -0
- package/dist/types/CreateCommunityTag.js +2 -0
- package/dist/types/CreateMultiCommunity.d.ts +5 -0
- package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
- package/dist/types/CreateOrDeleteMultiCommunityEntry.js +2 -0
- package/dist/types/CreatePost.d.ts +1 -1
- package/dist/types/CreateSite.d.ts +17 -14
- package/dist/types/CustomEmoji.d.ts +2 -2
- package/dist/types/DeleteCommunityTag.d.ts +7 -0
- package/dist/types/DeleteCommunityTag.js +2 -0
- package/dist/types/EditPost.d.ts +2 -2
- package/dist/types/EditSite.d.ts +26 -21
- package/dist/types/ExportDataResponse.d.ts +13 -0
- package/dist/types/ExportDataResponse.js +2 -0
- package/dist/types/FederationBlockList.d.ts +3 -3
- package/dist/types/FollowMultiCommunity.d.ts +5 -0
- package/dist/types/FollowMultiCommunity.js +2 -0
- package/dist/types/GetComments.d.ts +3 -3
- package/dist/types/GetCommentsResponse.d.ts +3 -0
- package/dist/types/GetCommentsSlimResponse.d.ts +3 -0
- package/dist/types/GetModlog.d.ts +1 -0
- package/dist/types/GetModlogResponse.d.ts +1 -0
- package/dist/types/GetMultiCommunity.d.ts +4 -0
- package/dist/types/GetMultiCommunity.js +2 -0
- package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
- package/dist/types/GetMultiCommunityResponse.js +2 -0
- package/dist/types/GetPosts.d.ts +5 -11
- package/dist/types/GetPostsResponse.d.ts +3 -2
- package/dist/types/GetSiteResponse.d.ts +2 -0
- package/dist/types/InboxCombined.d.ts +16 -0
- package/dist/types/InboxCombined.js +2 -0
- package/dist/types/InboxCombinedId.d.ts +4 -0
- package/dist/types/InboxCombinedId.js +3 -0
- package/dist/types/InboxCombinedViewInternal.d.ts +43 -0
- package/dist/types/InboxCombinedViewInternal.js +2 -0
- package/dist/types/Instance.d.ts +4 -3
- package/dist/types/InstanceActions.d.ts +3 -7
- package/dist/types/InstanceActions.js +1 -0
- package/dist/types/InstanceWithFederationState.d.ts +2 -2
- package/dist/types/LemmyErrorType.d.ts +99 -24
- package/dist/types/LikeType.d.ts +4 -0
- package/dist/types/LikeType.js +3 -0
- package/dist/types/ListCommentLikes.d.ts +3 -1
- package/dist/types/ListCommentLikesResponse.d.ts +6 -0
- package/dist/types/ListCommunities.d.ts +3 -1
- package/dist/types/ListCommunitiesResponse.d.ts +6 -0
- package/dist/types/ListCommunityPendingFollows.d.ts +3 -1
- package/dist/types/ListCommunityPendingFollows.js +0 -1
- package/dist/types/ListCommunityPendingFollowsResponse.d.ts +6 -0
- package/dist/types/ListCustomEmojis.d.ts +0 -3
- package/dist/types/ListInbox.d.ts +1 -0
- package/dist/types/ListInboxResponse.d.ts +1 -0
- package/dist/types/ListMedia.d.ts +3 -1
- package/dist/types/ListMedia.js +0 -1
- package/dist/types/ListMediaResponse.d.ts +6 -0
- package/dist/types/ListMultiCommunities.d.ts +5 -0
- package/dist/types/ListMultiCommunities.js +2 -0
- package/dist/types/ListMultiCommunitiesResponse.d.ts +4 -0
- package/dist/types/ListMultiCommunitiesResponse.js +2 -0
- package/dist/types/ListPersonContent.d.ts +1 -0
- package/dist/types/ListPersonContentResponse.d.ts +1 -0
- package/dist/types/{ListBannedPersons.d.ts → ListPersonHidden.d.ts} +2 -2
- package/dist/types/ListPersonHidden.js +2 -0
- package/dist/types/ListPersonHiddenResponse.d.ts +13 -0
- package/dist/types/ListPersonHiddenResponse.js +2 -0
- package/dist/types/ListPersonLiked.d.ts +13 -0
- package/dist/types/ListPersonLiked.js +2 -0
- package/dist/types/ListPersonLikedResponse.d.ts +13 -0
- package/dist/types/ListPersonLikedResponse.js +2 -0
- package/dist/types/ListPersonRead.d.ts +9 -0
- package/dist/types/ListPersonRead.js +2 -0
- package/dist/types/ListPersonReadResponse.d.ts +13 -0
- package/dist/types/ListPersonReadResponse.js +2 -0
- package/dist/types/ListPersonSaved.d.ts +1 -0
- package/dist/types/ListPersonSavedResponse.d.ts +1 -0
- package/dist/types/ListPostLikes.d.ts +3 -1
- package/dist/types/ListPostLikesResponse.d.ts +6 -0
- package/dist/types/ListRegistrationApplications.d.ts +3 -1
- package/dist/types/ListRegistrationApplications.js +0 -1
- package/dist/types/ListRegistrationApplicationsResponse.d.ts +6 -0
- package/dist/types/ListReports.d.ts +1 -0
- package/dist/types/ListReportsResponse.d.ts +1 -0
- package/dist/types/ListTaglines.d.ts +3 -1
- package/dist/types/ListTaglines.js +0 -1
- package/dist/types/ListTaglinesResponse.d.ts +6 -0
- package/dist/types/ListingType.d.ts +1 -1
- package/dist/types/LocalImage.d.ts +8 -3
- package/dist/types/LocalImageView.d.ts +2 -0
- package/dist/types/LocalSite.d.ts +10 -11
- package/dist/types/LocalSiteRateLimit.d.ts +16 -16
- package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
- package/dist/types/LocalUser.d.ts +4 -2
- package/dist/types/LocalUserView.d.ts +1 -2
- package/dist/types/LockPost.d.ts +1 -0
- package/dist/types/Login.d.ts +3 -0
- package/dist/types/LoginToken.d.ts +1 -1
- package/dist/types/ModAdd.d.ts +1 -1
- package/dist/types/ModAddCommunity.d.ts +1 -1
- package/dist/types/ModBan.d.ts +2 -2
- package/dist/types/ModBanFromCommunity.d.ts +2 -2
- package/dist/types/ModChangeCommunityVisibility.d.ts +1 -2
- package/dist/types/ModFeaturePost.d.ts +1 -1
- package/dist/types/ModLockPost.d.ts +2 -1
- package/dist/types/ModRemoveComment.d.ts +1 -1
- package/dist/types/ModRemoveCommunity.d.ts +1 -1
- package/dist/types/ModRemovePost.d.ts +1 -1
- package/dist/types/ModTransferCommunity.d.ts +1 -1
- package/dist/types/MultiCommunity.d.ts +17 -0
- package/dist/types/MultiCommunity.js +2 -0
- package/dist/types/MultiCommunityFollow.d.ts +8 -0
- package/dist/types/MultiCommunityFollow.js +2 -0
- package/dist/types/MultiCommunityId.d.ts +1 -0
- package/dist/types/MultiCommunityId.js +3 -0
- package/dist/types/MultiCommunityView.d.ts +6 -0
- package/dist/types/MultiCommunityView.js +2 -0
- package/dist/types/MyUserInfo.d.ts +1 -0
- package/dist/types/NotePerson.d.ts +10 -0
- package/dist/types/NotePerson.js +2 -0
- package/dist/types/OAuthAccount.d.ts +2 -2
- package/dist/types/OAuthProvider.d.ts +2 -2
- package/dist/types/Person.d.ts +2 -2
- package/dist/types/PersonActions.d.ts +21 -4
- package/dist/types/PersonActions.js +1 -0
- package/dist/types/PersonCommentMention.d.ts +1 -1
- package/dist/types/PersonCommentMentionView.d.ts +3 -1
- package/dist/types/PersonLikedCombinedView.d.ts +7 -0
- package/dist/types/PersonLikedCombinedView.js +2 -0
- package/dist/types/PersonPostMention.d.ts +1 -1
- package/dist/types/PersonPostMentionView.d.ts +5 -1
- package/dist/types/PersonView.d.ts +3 -2
- package/dist/types/PluginMetadata.d.ts +5 -0
- package/dist/types/PluginMetadata.js +3 -0
- package/dist/types/Post.d.ts +9 -4
- package/dist/types/PostActions.d.ts +5 -9
- package/dist/types/PostActions.js +1 -0
- package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
- package/dist/types/PostOrCommentOrPrivateMessage.js +2 -0
- package/dist/types/PostReport.d.ts +2 -2
- package/dist/types/PostReportView.d.ts +0 -1
- package/dist/types/PostView.d.ts +5 -1
- package/dist/types/PrivateMessage.d.ts +2 -2
- package/dist/types/PrivateMessageReport.d.ts +2 -2
- package/dist/types/ReadableFederationState.d.ts +2 -2
- package/dist/types/RegistrationApplication.d.ts +1 -1
- package/dist/types/SaveUserSettings.d.ts +7 -1
- package/dist/types/Search.d.ts +6 -1
- package/dist/types/SearchCombinedView.d.ts +4 -1
- package/dist/types/SearchResponse.d.ts +1 -0
- package/dist/types/SearchType.d.ts +1 -1
- package/dist/types/Site.d.ts +4 -3
- package/dist/types/SiteResponse.d.ts +0 -4
- package/dist/types/SiteView.d.ts +2 -0
- package/dist/types/Tag.d.ts +10 -8
- package/dist/types/Tagline.d.ts +4 -3
- package/dist/types/Tagline.js +0 -1
- package/dist/types/TagsView.d.ts +5 -0
- package/dist/types/TagsView.js +2 -0
- package/dist/types/UpdateCommunityTag.d.ts +8 -0
- package/dist/types/UpdateCommunityTag.js +2 -0
- package/dist/types/UpdateMultiCommunity.d.ts +7 -0
- package/dist/types/UpdateMultiCommunity.js +2 -0
- package/dist/types/UserSettingsBackup.d.ts +26 -0
- package/dist/types/UserSettingsBackup.js +2 -0
- package/dist/types/VoteShow.d.ts +4 -0
- package/dist/types/VoteShow.js +3 -0
- package/dist/types/VoteView.d.ts +1 -0
- package/package.json +7 -4
- package/dist/types/PostPaginationCursor.d.ts +0 -7
- package/dist/types/ResolveObjectResponse.d.ts +0 -13
- /package/dist/types/{BannedPersonsResponse.js → AdminListUsers.js} +0 -0
- /package/dist/types/{ListBannedPersons.js → AdminListUsersResponse.js} +0 -0
- /package/dist/types/{ResolveObjectResponse.js → CommunityIdQuery.js} +0 -0
- /package/dist/types/{PostPaginationCursor.js → CreateMultiCommunity.js} +0 -0
package/dist/types/EditPost.d.ts
CHANGED
@@ -22,9 +22,9 @@ export type EditPost = {
|
|
22
22
|
* Instead of fetching a thumbnail, use a custom one.
|
23
23
|
*/
|
24
24
|
custom_thumbnail?: string;
|
25
|
-
tags?: Array<TagId>;
|
26
25
|
/**
|
27
26
|
* Time when this post should be scheduled. Null means publish immediately.
|
28
27
|
*/
|
29
|
-
|
28
|
+
scheduled_publish_time_at?: number;
|
29
|
+
tags?: Array<TagId>;
|
30
30
|
};
|
package/dist/types/EditSite.d.ts
CHANGED
@@ -2,6 +2,7 @@ import type { CommentSortType } from "./CommentSortType";
|
|
2
2
|
import type { FederationMode } from "./FederationMode";
|
3
3
|
import type { LanguageId } from "./LanguageId";
|
4
4
|
import type { ListingType } from "./ListingType";
|
5
|
+
import type { MultiCommunityId } from "./MultiCommunityId";
|
5
6
|
import type { PostListingMode } from "./PostListingMode";
|
6
7
|
import type { PostSortType } from "./PostSortType";
|
7
8
|
import type { RegistrationMode } from "./RegistrationMode";
|
@@ -66,10 +67,6 @@ export type EditSite = {
|
|
66
67
|
* Whether to email admins when receiving a new application.
|
67
68
|
*/
|
68
69
|
application_email_admins?: boolean;
|
69
|
-
/**
|
70
|
-
* Whether to hide moderator names from the modlog.
|
71
|
-
*/
|
72
|
-
hide_modlog_mod_names?: boolean;
|
73
70
|
/**
|
74
71
|
* A list of allowed discussion languages.
|
75
72
|
*/
|
@@ -85,33 +82,38 @@ export type EditSite = {
|
|
85
82
|
/**
|
86
83
|
* The number of messages allowed in a given time frame.
|
87
84
|
*/
|
88
|
-
|
89
|
-
|
85
|
+
rate_limit_message_max_requests?: number;
|
86
|
+
rate_limit_message_interval_seconds?: number;
|
90
87
|
/**
|
91
88
|
* The number of posts allowed in a given time frame.
|
92
89
|
*/
|
93
|
-
|
94
|
-
|
90
|
+
rate_limit_post_max_requests?: number;
|
91
|
+
rate_limit_post_interval_seconds?: number;
|
95
92
|
/**
|
96
93
|
* The number of registrations allowed in a given time frame.
|
97
94
|
*/
|
98
|
-
|
99
|
-
|
95
|
+
rate_limit_register_max_requests?: number;
|
96
|
+
rate_limit_register_interval_seconds?: number;
|
100
97
|
/**
|
101
98
|
* The number of image uploads allowed in a given time frame.
|
102
99
|
*/
|
103
|
-
|
104
|
-
|
100
|
+
rate_limit_image_max_requests?: number;
|
101
|
+
rate_limit_image_interval_seconds?: number;
|
105
102
|
/**
|
106
103
|
* The number of comments allowed in a given time frame.
|
107
104
|
*/
|
108
|
-
|
109
|
-
|
105
|
+
rate_limit_comment_max_requests?: number;
|
106
|
+
rate_limit_comment_interval_seconds?: number;
|
110
107
|
/**
|
111
108
|
* The number of searches allowed in a given time frame.
|
112
109
|
*/
|
113
|
-
|
114
|
-
|
110
|
+
rate_limit_search_max_requests?: number;
|
111
|
+
rate_limit_search_interval_seconds?: number;
|
112
|
+
/**
|
113
|
+
* The number of settings imports or exports allowed in a given time frame.
|
114
|
+
*/
|
115
|
+
rate_limit_import_user_settings_max_requests?: number;
|
116
|
+
rate_limit_import_user_settings_interval_seconds?: number;
|
115
117
|
/**
|
116
118
|
* Whether to enable federation.
|
117
119
|
*/
|
@@ -158,13 +160,16 @@ export type EditSite = {
|
|
158
160
|
* What kind of comment downvotes your site allows.
|
159
161
|
*/
|
160
162
|
comment_downvotes?: FederationMode;
|
161
|
-
/**
|
162
|
-
* If this is true, users will never see the dialog asking to support Lemmy development with
|
163
|
-
* donations.
|
164
|
-
*/
|
165
|
-
disable_donation_dialog?: boolean;
|
166
163
|
/**
|
167
164
|
* Block NSFW content being created
|
168
165
|
*/
|
169
166
|
disallow_nsfw_content?: boolean;
|
167
|
+
/**
|
168
|
+
* Dont send email notifications to users for new replies, mentions etc
|
169
|
+
*/
|
170
|
+
disable_email_notifications?: boolean;
|
171
|
+
/**
|
172
|
+
* A multicommunity with suggested communities which is shown on the homepage
|
173
|
+
*/
|
174
|
+
suggested_communities?: MultiCommunityId;
|
170
175
|
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { PostOrCommentOrPrivateMessage } from "./PostOrCommentOrPrivateMessage";
|
2
|
+
import type { UserSettingsBackup } from "./UserSettingsBackup";
|
3
|
+
/**
|
4
|
+
* Your exported data.
|
5
|
+
*/
|
6
|
+
export type ExportDataResponse = {
|
7
|
+
inbox: Array<PostOrCommentOrPrivateMessage>;
|
8
|
+
content: Array<PostOrCommentOrPrivateMessage>;
|
9
|
+
read_posts: Array<string>;
|
10
|
+
liked: Array<string>;
|
11
|
+
moderates: Array<string>;
|
12
|
+
settings: UserSettingsBackup;
|
13
|
+
};
|
@@ -2,6 +2,7 @@ import type { CommentId } from "./CommentId";
|
|
2
2
|
import type { CommentSortType } from "./CommentSortType";
|
3
3
|
import type { CommunityId } from "./CommunityId";
|
4
4
|
import type { ListingType } from "./ListingType";
|
5
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
5
6
|
import type { PostId } from "./PostId";
|
6
7
|
/**
|
7
8
|
* Get a list of comments.
|
@@ -15,12 +16,11 @@ export type GetComments = {
|
|
15
16
|
*/
|
16
17
|
time_range_seconds?: number;
|
17
18
|
max_depth?: number;
|
18
|
-
|
19
|
+
page_cursor?: PaginationCursor;
|
20
|
+
page_back?: boolean;
|
19
21
|
limit?: number;
|
20
22
|
community_id?: CommunityId;
|
21
23
|
community_name?: string;
|
22
24
|
post_id?: PostId;
|
23
25
|
parent_id?: CommentId;
|
24
|
-
liked_only?: boolean;
|
25
|
-
disliked_only?: boolean;
|
26
26
|
};
|
@@ -1,7 +1,10 @@
|
|
1
1
|
import type { CommentView } from "./CommentView";
|
2
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
2
3
|
/**
|
3
4
|
* The comment list response.
|
4
5
|
*/
|
5
6
|
export type GetCommentsResponse = {
|
6
7
|
comments: Array<CommentView>;
|
8
|
+
next_page?: PaginationCursor;
|
9
|
+
prev_page?: PaginationCursor;
|
7
10
|
};
|
@@ -1,7 +1,10 @@
|
|
1
1
|
import type { CommentSlimView } from "./CommentSlimView";
|
2
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
2
3
|
/**
|
3
4
|
* A slimmer comment list response, without the post or community.
|
4
5
|
*/
|
5
6
|
export type GetCommentsSlimResponse = {
|
6
7
|
comments: Array<CommentSlimView>;
|
8
|
+
next_page?: PaginationCursor;
|
9
|
+
prev_page?: PaginationCursor;
|
7
10
|
};
|
package/dist/types/GetPosts.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
2
|
import type { ListingType } from "./ListingType";
|
3
|
-
import type {
|
3
|
+
import type { MultiCommunityId } from "./MultiCommunityId";
|
4
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
4
5
|
import type { PostSortType } from "./PostSortType";
|
5
6
|
/**
|
6
7
|
* Get a list of posts.
|
@@ -14,17 +15,9 @@ export type GetPosts = {
|
|
14
15
|
* Use Zero to override the local_site and local_user time_range.
|
15
16
|
*/
|
16
17
|
time_range_seconds?: number;
|
17
|
-
/**
|
18
|
-
* DEPRECATED, use page_cursor
|
19
|
-
*/
|
20
|
-
page?: number;
|
21
|
-
limit?: number;
|
22
18
|
community_id?: CommunityId;
|
23
19
|
community_name?: string;
|
24
|
-
|
25
|
-
read_only?: boolean;
|
26
|
-
liked_only?: boolean;
|
27
|
-
disliked_only?: boolean;
|
20
|
+
multi_community_id?: MultiCommunityId;
|
28
21
|
show_hidden?: boolean;
|
29
22
|
/**
|
30
23
|
* If true, then show the read posts (even if your user setting is to hide them)
|
@@ -46,6 +39,7 @@ export type GetPosts = {
|
|
46
39
|
* If true, then only show posts with no comments
|
47
40
|
*/
|
48
41
|
no_comments_only?: boolean;
|
49
|
-
page_cursor?:
|
42
|
+
page_cursor?: PaginationCursor;
|
50
43
|
page_back?: boolean;
|
44
|
+
limit?: number;
|
51
45
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
2
2
|
import type { PostView } from "./PostView";
|
3
3
|
/**
|
4
4
|
* The post list response.
|
@@ -8,5 +8,6 @@ export type GetPostsResponse = {
|
|
8
8
|
/**
|
9
9
|
* the pagination cursor to use to fetch the next page
|
10
10
|
*/
|
11
|
-
next_page?:
|
11
|
+
next_page?: PaginationCursor;
|
12
|
+
prev_page?: PaginationCursor;
|
12
13
|
};
|
@@ -3,6 +3,7 @@ import type { LanguageId } from "./LanguageId";
|
|
3
3
|
import type { LocalSiteUrlBlocklist } from "./LocalSiteUrlBlocklist";
|
4
4
|
import type { OAuthProvider } from "./OAuthProvider";
|
5
5
|
import type { PersonView } from "./PersonView";
|
6
|
+
import type { PluginMetadata } from "./PluginMetadata";
|
6
7
|
import type { PublicOAuthProvider } from "./PublicOAuthProvider";
|
7
8
|
import type { SiteView } from "./SiteView";
|
8
9
|
import type { Tagline } from "./Tagline";
|
@@ -26,4 +27,5 @@ export type GetSiteResponse = {
|
|
26
27
|
admin_oauth_providers: Array<OAuthProvider>;
|
27
28
|
blocked_urls: Array<LocalSiteUrlBlocklist>;
|
28
29
|
image_upload_disabled: boolean;
|
30
|
+
active_plugins: Array<PluginMetadata>;
|
29
31
|
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type { CommentReplyId } from "./CommentReplyId";
|
2
|
+
import type { InboxCombinedId } from "./InboxCombinedId";
|
3
|
+
import type { PersonCommentMentionId } from "./PersonCommentMentionId";
|
4
|
+
import type { PersonPostMentionId } from "./PersonPostMentionId";
|
5
|
+
import type { PrivateMessageId } from "./PrivateMessageId";
|
6
|
+
/**
|
7
|
+
* A combined inbox table.
|
8
|
+
*/
|
9
|
+
export type InboxCombined = {
|
10
|
+
id: InboxCombinedId;
|
11
|
+
published_at: string;
|
12
|
+
comment_reply_id?: CommentReplyId;
|
13
|
+
person_comment_mention_id?: PersonCommentMentionId;
|
14
|
+
person_post_mention_id?: PersonPostMentionId;
|
15
|
+
private_message_id?: PrivateMessageId;
|
16
|
+
};
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import type { Comment } from "./Comment";
|
2
|
+
import type { CommentActions } from "./CommentActions";
|
3
|
+
import type { CommentReply } from "./CommentReply";
|
4
|
+
import type { Community } from "./Community";
|
5
|
+
import type { CommunityActions } from "./CommunityActions";
|
6
|
+
import type { ImageDetails } from "./ImageDetails";
|
7
|
+
import type { InboxCombined } from "./InboxCombined";
|
8
|
+
import type { InstanceActions } from "./InstanceActions";
|
9
|
+
import type { Person } from "./Person";
|
10
|
+
import type { PersonActions } from "./PersonActions";
|
11
|
+
import type { PersonCommentMention } from "./PersonCommentMention";
|
12
|
+
import type { PersonPostMention } from "./PersonPostMention";
|
13
|
+
import type { Post } from "./Post";
|
14
|
+
import type { PostActions } from "./PostActions";
|
15
|
+
import type { PrivateMessage } from "./PrivateMessage";
|
16
|
+
import type { TagsView } from "./TagsView";
|
17
|
+
/**
|
18
|
+
* A combined inbox view
|
19
|
+
*/
|
20
|
+
export type InboxCombinedViewInternal = {
|
21
|
+
inbox_combined: InboxCombined;
|
22
|
+
comment_reply?: CommentReply;
|
23
|
+
person_comment_mention?: PersonCommentMention;
|
24
|
+
person_post_mention?: PersonPostMention;
|
25
|
+
private_message?: PrivateMessage;
|
26
|
+
comment?: Comment;
|
27
|
+
post?: Post;
|
28
|
+
community?: Community;
|
29
|
+
item_creator: Person;
|
30
|
+
item_recipient: Person;
|
31
|
+
image_details?: ImageDetails;
|
32
|
+
community_actions?: CommunityActions;
|
33
|
+
instance_actions?: InstanceActions;
|
34
|
+
post_actions?: PostActions;
|
35
|
+
person_actions?: PersonActions;
|
36
|
+
comment_actions?: CommentActions;
|
37
|
+
item_creator_is_admin: boolean;
|
38
|
+
post_tags: TagsView;
|
39
|
+
can_mod: boolean;
|
40
|
+
creator_banned: boolean;
|
41
|
+
creator_is_moderator: boolean;
|
42
|
+
creator_banned_from_community: boolean;
|
43
|
+
};
|
package/dist/types/Instance.d.ts
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
import type { InstanceId } from "./InstanceId";
|
2
2
|
/**
|
3
|
-
*
|
3
|
+
* Basic data about a Fediverse instance which is available for every known domain. Additional
|
4
|
+
* data may be available in [[Site]].
|
4
5
|
*/
|
5
6
|
export type Instance = {
|
6
7
|
id: InstanceId;
|
7
8
|
domain: string;
|
8
|
-
|
9
|
+
published_at: string;
|
9
10
|
/**
|
10
11
|
* When the instance was updated.
|
11
12
|
*/
|
12
|
-
|
13
|
+
updated_at?: string;
|
13
14
|
/**
|
14
15
|
* The software of the instance.
|
15
16
|
*/
|
@@ -1,18 +1,14 @@
|
|
1
|
-
import type { InstanceId } from "./InstanceId";
|
2
|
-
import type { PersonId } from "./PersonId";
|
3
1
|
export type InstanceActions = {
|
4
|
-
person_id: PersonId;
|
5
|
-
instance_id: InstanceId;
|
6
2
|
/**
|
7
3
|
* When the instance was blocked.
|
8
4
|
*/
|
9
|
-
|
5
|
+
blocked_at?: string;
|
10
6
|
/**
|
11
7
|
* When this user received a site ban.
|
12
8
|
*/
|
13
|
-
|
9
|
+
received_ban_at?: string;
|
14
10
|
/**
|
15
11
|
* When their ban expires.
|
16
12
|
*/
|
17
|
-
|
13
|
+
ban_expires_at?: string;
|
18
14
|
};
|
@@ -8,11 +8,11 @@ export type InstanceWithFederationState = {
|
|
8
8
|
federation_state?: ReadableFederationState;
|
9
9
|
id: InstanceId;
|
10
10
|
domain: string;
|
11
|
-
|
11
|
+
published_at: string;
|
12
12
|
/**
|
13
13
|
* When the instance was updated.
|
14
14
|
*/
|
15
|
-
|
15
|
+
updated_at?: string;
|
16
16
|
/**
|
17
17
|
* The software of the instance.
|
18
18
|
*/
|
@@ -1,5 +1,11 @@
|
|
1
1
|
import type { FederationError } from "./FederationError";
|
2
2
|
export type LemmyErrorType = {
|
3
|
+
error: "block_keyword_too_short";
|
4
|
+
} | {
|
5
|
+
error: "block_keyword_too_long";
|
6
|
+
} | {
|
7
|
+
error: "couldnt_update_keywords";
|
8
|
+
} | {
|
3
9
|
error: "report_reason_required";
|
4
10
|
} | {
|
5
11
|
error: "report_too_long";
|
@@ -9,6 +15,8 @@ export type LemmyErrorType = {
|
|
9
15
|
error: "not_an_admin";
|
10
16
|
} | {
|
11
17
|
error: "cant_block_yourself";
|
18
|
+
} | {
|
19
|
+
error: "cant_note_yourself";
|
12
20
|
} | {
|
13
21
|
error: "cant_block_admin";
|
14
22
|
} | {
|
@@ -21,8 +29,6 @@ export type LemmyErrorType = {
|
|
21
29
|
error: "email_required";
|
22
30
|
} | {
|
23
31
|
error: "couldnt_update_comment";
|
24
|
-
} | {
|
25
|
-
error: "couldnt_update_private_message";
|
26
32
|
} | {
|
27
33
|
error: "cannot_leave_admin";
|
28
34
|
} | {
|
@@ -75,8 +81,6 @@ export type LemmyErrorType = {
|
|
75
81
|
error: "honeypot_failed";
|
76
82
|
} | {
|
77
83
|
error: "registration_application_is_pending";
|
78
|
-
} | {
|
79
|
-
error: "cant_enable_private_instance_and_federation_together";
|
80
84
|
} | {
|
81
85
|
error: "locked";
|
82
86
|
} | {
|
@@ -91,6 +95,8 @@ export type LemmyErrorType = {
|
|
91
95
|
error: "community_already_exists";
|
92
96
|
} | {
|
93
97
|
error: "language_not_allowed";
|
98
|
+
} | {
|
99
|
+
error: "couldnt_update_languages";
|
94
100
|
} | {
|
95
101
|
error: "couldnt_update_post";
|
96
102
|
} | {
|
@@ -121,8 +127,6 @@ export type LemmyErrorType = {
|
|
121
127
|
error: "no_id_given";
|
122
128
|
} | {
|
123
129
|
error: "incorrect_login";
|
124
|
-
} | {
|
125
|
-
error: "object_not_local";
|
126
130
|
} | {
|
127
131
|
error: "no_email_setup";
|
128
132
|
} | {
|
@@ -130,8 +134,6 @@ export type LemmyErrorType = {
|
|
130
134
|
} | {
|
131
135
|
error: "invalid_email_address";
|
132
136
|
message: string;
|
133
|
-
} | {
|
134
|
-
error: "rate_limit_error";
|
135
137
|
} | {
|
136
138
|
error: "invalid_name";
|
137
139
|
} | {
|
@@ -178,8 +180,6 @@ export type LemmyErrorType = {
|
|
178
180
|
error: "community_follower_already_exists";
|
179
181
|
} | {
|
180
182
|
error: "person_block_already_exists";
|
181
|
-
} | {
|
182
|
-
error: "user_already_exists";
|
183
183
|
} | {
|
184
184
|
error: "couldnt_like_post";
|
185
185
|
} | {
|
@@ -193,27 +193,21 @@ export type LemmyErrorType = {
|
|
193
193
|
} | {
|
194
194
|
error: "couldnt_update_community";
|
195
195
|
} | {
|
196
|
-
error: "
|
196
|
+
error: "couldnt_create_person_comment_mention";
|
197
197
|
} | {
|
198
|
-
error: "
|
198
|
+
error: "couldnt_update_person_comment_mention";
|
199
199
|
} | {
|
200
|
-
error: "
|
200
|
+
error: "couldnt_create_person_post_mention";
|
201
201
|
} | {
|
202
|
-
error: "
|
203
|
-
} | {
|
204
|
-
error: "couldnt_update_private";
|
202
|
+
error: "couldnt_update_person_post_mention";
|
205
203
|
} | {
|
206
|
-
error: "
|
204
|
+
error: "couldnt_create_post";
|
207
205
|
} | {
|
208
|
-
error: "
|
206
|
+
error: "couldnt_create_private_message";
|
209
207
|
} | {
|
210
|
-
error: "
|
208
|
+
error: "couldnt_update_private_message";
|
211
209
|
} | {
|
212
210
|
error: "blocked_url";
|
213
|
-
} | {
|
214
|
-
error: "couldnt_get_comments";
|
215
|
-
} | {
|
216
|
-
error: "couldnt_get_posts";
|
217
211
|
} | {
|
218
212
|
error: "invalid_url";
|
219
213
|
} | {
|
@@ -255,6 +249,10 @@ export type LemmyErrorType = {
|
|
255
249
|
error: "invalid_unix_time";
|
256
250
|
} | {
|
257
251
|
error: "invalid_bot_action";
|
252
|
+
} | {
|
253
|
+
error: "invalid_tag_name";
|
254
|
+
} | {
|
255
|
+
error: "tag_not_in_community";
|
258
256
|
} | {
|
259
257
|
error: "cant_block_local_instance";
|
260
258
|
} | {
|
@@ -269,7 +267,9 @@ export type LemmyErrorType = {
|
|
269
267
|
} | {
|
270
268
|
error: "oauth_registration_closed";
|
271
269
|
} | {
|
272
|
-
error: "
|
270
|
+
error: "couldnt_create_oauth_provider";
|
271
|
+
} | {
|
272
|
+
error: "couldnt_update_oauth_provider";
|
273
273
|
} | {
|
274
274
|
error: "not_found";
|
275
275
|
} | {
|
@@ -287,4 +287,79 @@ export type LemmyErrorType = {
|
|
287
287
|
};
|
288
288
|
} | {
|
289
289
|
error: "couldnt_parse_pagination_token";
|
290
|
+
} | {
|
291
|
+
error: "plugin_error";
|
292
|
+
message: string;
|
293
|
+
} | {
|
294
|
+
error: "invalid_fetch_limit";
|
295
|
+
} | {
|
296
|
+
error: "couldnt_create_comment_reply";
|
297
|
+
} | {
|
298
|
+
error: "couldnt_update_comment_reply";
|
299
|
+
} | {
|
300
|
+
error: "couldnt_mark_comment_reply_as_read";
|
301
|
+
} | {
|
302
|
+
error: "couldnt_create_emoji";
|
303
|
+
} | {
|
304
|
+
error: "couldnt_update_emoji";
|
305
|
+
} | {
|
306
|
+
error: "couldnt_create_person";
|
307
|
+
} | {
|
308
|
+
error: "couldnt_update_person";
|
309
|
+
} | {
|
310
|
+
error: "couldnt_create_modlog";
|
311
|
+
} | {
|
312
|
+
error: "couldnt_update_modlog";
|
313
|
+
} | {
|
314
|
+
error: "couldnt_create_site";
|
315
|
+
} | {
|
316
|
+
error: "couldnt_update_site";
|
317
|
+
} | {
|
318
|
+
error: "couldnt_create_registration_application";
|
319
|
+
} | {
|
320
|
+
error: "couldnt_update_registration_application";
|
321
|
+
} | {
|
322
|
+
error: "couldnt_create_tag";
|
323
|
+
} | {
|
324
|
+
error: "couldnt_update_tag";
|
325
|
+
} | {
|
326
|
+
error: "couldnt_create_post_tag";
|
327
|
+
} | {
|
328
|
+
error: "couldnt_update_post_tag";
|
329
|
+
} | {
|
330
|
+
error: "couldnt_create_tagline";
|
331
|
+
} | {
|
332
|
+
error: "couldnt_update_tagline";
|
333
|
+
} | {
|
334
|
+
error: "couldnt_create_image";
|
335
|
+
} | {
|
336
|
+
error: "couldnt_allow_instance";
|
337
|
+
} | {
|
338
|
+
error: "couldnt_block_instance";
|
339
|
+
} | {
|
340
|
+
error: "couldnt_insert_activity";
|
341
|
+
} | {
|
342
|
+
error: "couldnt_create_rate_limit";
|
343
|
+
} | {
|
344
|
+
error: "couldnt_create_captcha_answer";
|
345
|
+
} | {
|
346
|
+
error: "couldnt_update_federation_queue_state";
|
347
|
+
} | {
|
348
|
+
error: "couldnt_create_oauth_account";
|
349
|
+
} | {
|
350
|
+
error: "couldnt_create_password_reset_request";
|
351
|
+
} | {
|
352
|
+
error: "couldnt_create_login_token";
|
353
|
+
} | {
|
354
|
+
error: "couldnt_update_local_site_url_blocklist";
|
355
|
+
} | {
|
356
|
+
error: "couldnt_create_email_verification";
|
357
|
+
} | {
|
358
|
+
error: "email_notifications_disabled";
|
359
|
+
} | {
|
360
|
+
error: "multi_community_update_wrong_user";
|
361
|
+
} | {
|
362
|
+
error: "cannot_combine_community_id_and_multi_community_id";
|
363
|
+
} | {
|
364
|
+
error: "multi_community_entry_limit_reached";
|
290
365
|
};
|