lemmy-js-client 0.18.3-rc.3 → 0.19.0-alpha.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.d.ts +61 -20
- package/dist/http.js +87 -31
- package/dist/index.d.ts +13 -18
- package/dist/types/AddAdmin.d.ts +0 -1
- package/dist/types/AddModToCommunity.d.ts +0 -1
- package/dist/types/ApproveRegistrationApplication.d.ts +0 -1
- package/dist/types/BanFromCommunity.d.ts +0 -1
- package/dist/types/BanPerson.d.ts +0 -1
- package/dist/types/BlockCommunity.d.ts +0 -1
- package/dist/types/BlockInstance.d.ts +5 -0
- package/dist/types/BlockInstanceResponse.d.ts +3 -0
- package/dist/types/BlockPerson.d.ts +0 -1
- package/dist/types/ChangePassword.d.ts +0 -1
- package/dist/types/CommentAggregates.d.ts +0 -1
- package/dist/types/CommentResponse.d.ts +0 -1
- package/dist/types/CommentSortType.d.ts +1 -1
- package/dist/types/Community.d.ts +0 -2
- package/dist/types/CommunityAggregates.d.ts +0 -1
- package/dist/types/CreateComment.d.ts +0 -2
- package/dist/types/CreateCommentLike.d.ts +0 -1
- package/dist/types/CreateCommentReport.d.ts +0 -1
- package/dist/types/CreateCommunity.d.ts +0 -1
- package/dist/types/CreateCustomEmoji.d.ts +0 -1
- package/dist/types/CreatePost.d.ts +0 -1
- package/dist/types/CreatePostLike.d.ts +0 -1
- package/dist/types/CreatePostReport.d.ts +0 -1
- package/dist/types/CreatePrivateMessage.d.ts +0 -1
- package/dist/types/CreatePrivateMessageReport.d.ts +0 -1
- package/dist/types/CreateSite.d.ts +0 -1
- package/dist/types/DeleteAccount.d.ts +1 -1
- package/dist/types/DeleteAccountResponse.d.ts +1 -1
- package/dist/types/DeleteComment.d.ts +0 -1
- package/dist/types/DeleteCommunity.d.ts +0 -1
- package/dist/types/DeleteCustomEmoji.d.ts +0 -1
- package/dist/types/DeletePost.d.ts +0 -1
- package/dist/types/DeletePrivateMessage.d.ts +0 -1
- package/dist/types/DistinguishComment.d.ts +0 -1
- package/dist/types/EditComment.d.ts +0 -2
- package/dist/types/EditCommunity.d.ts +0 -1
- package/dist/types/EditCustomEmoji.d.ts +0 -1
- package/dist/types/EditPost.d.ts +0 -1
- package/dist/types/EditPrivateMessage.d.ts +0 -1
- package/dist/types/EditSite.d.ts +0 -1
- package/dist/types/FeaturePost.d.ts +0 -1
- package/dist/types/FollowCommunity.d.ts +0 -1
- package/dist/types/GenerateTotpSecretResponse.d.ts +3 -0
- package/dist/types/GetComment.d.ts +0 -1
- package/dist/types/GetComments.d.ts +2 -1
- package/dist/types/GetCommunity.d.ts +0 -1
- package/dist/types/GetModlog.d.ts +0 -1
- package/dist/types/GetPersonDetails.d.ts +0 -1
- package/dist/types/GetPersonMentions.d.ts +0 -1
- package/dist/types/GetPost.d.ts +0 -1
- package/dist/types/GetPosts.d.ts +4 -2
- package/dist/types/GetPostsResponse.d.ts +2 -0
- package/dist/types/GetPrivateMessages.d.ts +2 -1
- package/dist/types/GetPrivateMessages.js +0 -1
- package/dist/types/GetReplies.d.ts +0 -1
- package/dist/types/GetReportCount.d.ts +0 -1
- package/dist/types/HideCommunity.d.ts +0 -1
- package/dist/types/ImageUpload.d.ts +9 -0
- package/dist/types/ImageUploadId.d.ts +1 -0
- package/dist/types/InstanceBlockView.d.ts +8 -0
- package/dist/types/ListCommentReports.d.ts +0 -1
- package/dist/types/ListCommunities.d.ts +0 -1
- package/dist/types/ListPostReports.d.ts +0 -1
- package/dist/types/ListPrivateMessageReports.d.ts +0 -1
- package/dist/types/ListRegistrationApplications.d.ts +0 -1
- package/dist/types/ListingType.d.ts +1 -1
- package/dist/types/LocalSiteRateLimit.d.ts +2 -0
- package/dist/types/LocalUser.d.ts +9 -5
- package/dist/types/LockPost.d.ts +0 -1
- package/dist/types/MarkCommentReplyAsRead.d.ts +0 -1
- package/dist/types/MarkPersonMentionAsRead.d.ts +0 -1
- package/dist/types/MarkPostAsRead.d.ts +1 -1
- package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -1
- package/dist/types/ModRemoveCommunity.d.ts +0 -1
- package/dist/types/MyUserInfo.d.ts +2 -0
- package/dist/types/PaginationCursor.d.ts +1 -0
- package/dist/types/PasswordResetResponse.d.ts +1 -1
- package/dist/types/Person.d.ts +0 -2
- package/dist/types/PersonSortType.d.ts +1 -0
- package/dist/types/PostAggregates.d.ts +0 -6
- package/dist/types/PostListingMode.d.ts +1 -0
- package/dist/types/PurgeComment.d.ts +0 -1
- package/dist/types/PurgeCommunity.d.ts +0 -1
- package/dist/types/PurgePerson.d.ts +0 -1
- package/dist/types/PurgePost.d.ts +0 -1
- package/dist/types/RemoveComment.d.ts +0 -1
- package/dist/types/RemoveCommunity.d.ts +0 -2
- package/dist/types/RemovePost.d.ts +0 -1
- package/dist/types/ResolveCommentReport.d.ts +0 -1
- package/dist/types/ResolveObject.d.ts +0 -1
- package/dist/types/ResolvePostReport.d.ts +0 -1
- package/dist/types/ResolvePrivateMessageReport.d.ts +0 -1
- package/dist/types/SaveComment.d.ts +0 -1
- package/dist/types/SavePost.d.ts +0 -1
- package/dist/types/SaveUserSettings.d.ts +5 -2
- package/dist/types/Search.d.ts +0 -1
- package/dist/types/SortType.d.ts +1 -1
- package/dist/types/SuccessResponse.d.ts +3 -0
- package/dist/types/TransferCommunity.d.ts +0 -1
- package/dist/types/UpdateTotp.d.ts +4 -0
- package/dist/types/UpdateTotpResponse.d.ts +3 -0
- package/dist/types/VerifyEmailResponse.d.ts +1 -1
- package/dist/types/others.d.ts +8 -0
- package/package.json +1 -1
- package/dist/types/CommunityJoin.d.ts +0 -4
- package/dist/types/CommunityJoinResponse.d.ts +0 -3
- package/dist/types/GetBannedPersons.d.ts +0 -3
- package/dist/types/GetCaptcha.d.ts +0 -3
- package/dist/types/GetFederatedInstances.d.ts +0 -3
- package/dist/types/GetSite.d.ts +0 -3
- package/dist/types/GetUnreadCount.d.ts +0 -3
- package/dist/types/GetUnreadRegistrationApplicationCount.d.ts +0 -3
- package/dist/types/LeaveAdmin.d.ts +0 -3
- package/dist/types/MarkAllAsRead.d.ts +0 -3
- package/dist/types/ModJoin.d.ts +0 -4
- package/dist/types/ModJoinResponse.d.ts +0 -3
- package/dist/types/ModJoinResponse.js +0 -3
- package/dist/types/PostJoin.d.ts +0 -4
- package/dist/types/PostJoinResponse.d.ts +0 -3
- package/dist/types/PostJoinResponse.js +0 -3
- package/dist/types/PostOrCommentId.d.ts +0 -7
- package/dist/types/PostOrCommentId.js +0 -2
- package/dist/types/UserJoin.d.ts +0 -3
- package/dist/types/UserJoin.js +0 -3
- package/dist/types/UserJoinResponse.d.ts +0 -3
- package/dist/types/UserJoinResponse.js +0 -3
- /package/dist/types/{CommunityJoin.js → BlockInstance.js} +0 -0
- /package/dist/types/{CommunityJoinResponse.js → BlockInstanceResponse.js} +0 -0
- /package/dist/types/{GetBannedPersons.js → GenerateTotpSecretResponse.js} +0 -0
- /package/dist/types/{ModJoin.js → ImageUpload.js} +0 -0
- /package/dist/types/{GetCaptcha.js → ImageUploadId.js} +0 -0
- /package/dist/types/{PostJoin.js → InstanceBlockView.js} +0 -0
- /package/dist/types/{GetFederatedInstances.js → PaginationCursor.js} +0 -0
- /package/dist/types/{GetSite.js → PersonSortType.js} +0 -0
- /package/dist/types/{GetUnreadCount.js → PostListingMode.js} +0 -0
- /package/dist/types/{GetUnreadRegistrationApplicationCount.js → SuccessResponse.js} +0 -0
- /package/dist/types/{LeaveAdmin.js → UpdateTotp.js} +0 -0
- /package/dist/types/{MarkAllAsRead.js → UpdateTotpResponse.js} +0 -0
@@ -1 +1 @@
|
|
1
|
-
export type DeleteAccountResponse =
|
1
|
+
export type DeleteAccountResponse = Record<string, never>;
|
package/dist/types/EditPost.d.ts
CHANGED
package/dist/types/EditSite.d.ts
CHANGED
package/dist/types/GetPost.d.ts
CHANGED
package/dist/types/GetPosts.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
2
|
import type { ListingType } from "./ListingType";
|
3
|
+
import type { PaginationCursor } from "./PaginationCursor";
|
3
4
|
import type { SortType } from "./SortType";
|
4
5
|
export interface GetPosts {
|
5
6
|
type_?: ListingType;
|
@@ -9,6 +10,7 @@ export interface GetPosts {
|
|
9
10
|
community_id?: CommunityId;
|
10
11
|
community_name?: string;
|
11
12
|
saved_only?: boolean;
|
12
|
-
|
13
|
-
|
13
|
+
liked_only?: boolean;
|
14
|
+
disliked_only?: boolean;
|
15
|
+
page_cursor?: PaginationCursor;
|
14
16
|
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { ImageUploadId } from "./ImageUploadId";
|
2
|
+
import type { LocalUserId } from "./LocalUserId";
|
3
|
+
export interface ImageUpload {
|
4
|
+
id: ImageUploadId;
|
5
|
+
local_user_id: LocalUserId;
|
6
|
+
pictrs_alias: string;
|
7
|
+
pictrs_delete_token: string;
|
8
|
+
published: string;
|
9
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type ImageUploadId = number;
|
@@ -1 +1 @@
|
|
1
|
-
export type ListingType = "All" | "Local" | "Subscribed";
|
1
|
+
export type ListingType = "All" | "Local" | "Subscribed" | "ModeratorView";
|
@@ -1,27 +1,31 @@
|
|
1
1
|
import type { ListingType } from "./ListingType";
|
2
2
|
import type { LocalUserId } from "./LocalUserId";
|
3
3
|
import type { PersonId } from "./PersonId";
|
4
|
+
import type { PostListingMode } from "./PostListingMode";
|
4
5
|
import type { SortType } from "./SortType";
|
5
6
|
export interface LocalUser {
|
6
7
|
id: LocalUserId;
|
7
8
|
person_id: PersonId;
|
8
9
|
email?: string;
|
9
10
|
show_nsfw: boolean;
|
10
|
-
blur_nsfw: boolean;
|
11
|
-
auto_expand: boolean;
|
12
11
|
theme: string;
|
13
12
|
default_sort_type: SortType;
|
14
13
|
default_listing_type: ListingType;
|
15
14
|
interface_language: string;
|
16
15
|
show_avatars: boolean;
|
17
16
|
send_notifications_to_email: boolean;
|
18
|
-
validator_time: string;
|
19
17
|
show_scores: boolean;
|
20
18
|
show_bot_accounts: boolean;
|
21
19
|
show_read_posts: boolean;
|
22
|
-
show_new_post_notifs: boolean;
|
23
20
|
email_verified: boolean;
|
24
21
|
accepted_application: boolean;
|
25
|
-
totp_2fa_url?: string;
|
26
22
|
open_links_in_new_tab: boolean;
|
23
|
+
blur_nsfw: boolean;
|
24
|
+
auto_expand: boolean;
|
25
|
+
infinite_scroll_enabled: boolean;
|
26
|
+
admin: boolean;
|
27
|
+
post_listing_mode: PostListingMode;
|
28
|
+
totp_2fa_enabled: boolean;
|
29
|
+
enable_keyboard_navigation: boolean;
|
30
|
+
enable_animated_images: boolean;
|
27
31
|
}
|
package/dist/types/LockPost.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import type { CommunityBlockView } from "./CommunityBlockView";
|
2
2
|
import type { CommunityFollowerView } from "./CommunityFollowerView";
|
3
3
|
import type { CommunityModeratorView } from "./CommunityModeratorView";
|
4
|
+
import type { InstanceBlockView } from "./InstanceBlockView";
|
4
5
|
import type { LanguageId } from "./LanguageId";
|
5
6
|
import type { LocalUserView } from "./LocalUserView";
|
6
7
|
import type { PersonBlockView } from "./PersonBlockView";
|
@@ -9,6 +10,7 @@ export interface MyUserInfo {
|
|
9
10
|
follows: Array<CommunityFollowerView>;
|
10
11
|
moderates: Array<CommunityModeratorView>;
|
11
12
|
community_blocks: Array<CommunityBlockView>;
|
13
|
+
instance_blocks: Array<InstanceBlockView>;
|
12
14
|
person_blocks: Array<PersonBlockView>;
|
13
15
|
discussion_languages: Array<LanguageId>;
|
14
16
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type PaginationCursor = string;
|
@@ -1 +1 @@
|
|
1
|
-
export type PasswordResetResponse =
|
1
|
+
export type PasswordResetResponse = Record<string, never>;
|
package/dist/types/Person.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export type PersonSortType = "New" | "Old" | "MostComments" | "CommentScore" | "PostScore" | "PostCount";
|
@@ -7,10 +7,4 @@ export interface PostAggregates {
|
|
7
7
|
upvotes: number;
|
8
8
|
downvotes: number;
|
9
9
|
published: string;
|
10
|
-
newest_comment_time_necro: string;
|
11
|
-
newest_comment_time: string;
|
12
|
-
featured_community: boolean;
|
13
|
-
featured_local: boolean;
|
14
|
-
hot_rank: number;
|
15
|
-
hot_rank_active: number;
|
16
10
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export type PostListingMode = "List" | "Card" | "SmallCard";
|
package/dist/types/SavePost.d.ts
CHANGED
@@ -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;
|
@@ -23,7 +24,9 @@ export interface SaveUserSettings {
|
|
23
24
|
show_read_posts?: boolean;
|
24
25
|
show_new_post_notifs?: boolean;
|
25
26
|
discussion_languages?: Array<LanguageId>;
|
26
|
-
generate_totp_2fa?: boolean;
|
27
|
-
auth: string;
|
28
27
|
open_links_in_new_tab?: boolean;
|
28
|
+
infinite_scroll_enabled?: boolean;
|
29
|
+
post_listing_mode?: PostListingMode;
|
30
|
+
enable_keyboard_navigation?: boolean;
|
31
|
+
enable_animated_images?: boolean;
|
29
32
|
}
|