lemmy-js-client 1.0.0-rename-timestamp-to-at.2 → 1.0.0-search-and-resolve.1
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 +2 -8
- package/dist/http.js +0 -13
- package/dist/index.d.ts +0 -5
- package/dist/other_types.d.ts +0 -3
- 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/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 +2 -2
- package/dist/types/CommentActions.d.ts +6 -2
- package/dist/types/CommentActions.js +0 -1
- package/dist/types/CommentReply.d.ts +1 -1
- package/dist/types/CommentReport.d.ts +2 -2
- package/dist/types/Community.d.ts +2 -2
- package/dist/types/CommunityActions.d.ts +13 -5
- package/dist/types/CommunityReport.d.ts +2 -2
- package/dist/types/CreatePost.d.ts +1 -1
- package/dist/types/CreateSite.d.ts +1 -0
- package/dist/types/CustomEmoji.d.ts +2 -2
- package/dist/types/EditPost.d.ts +1 -1
- package/dist/types/EditSite.d.ts +4 -0
- package/dist/types/FederationBlockList.d.ts +3 -3
- package/dist/types/GetComments.d.ts +2 -0
- package/dist/types/GetPosts.d.ts +2 -0
- package/dist/types/Instance.d.ts +2 -2
- package/dist/types/InstanceActions.d.ts +7 -3
- package/dist/types/InstanceActions.js +0 -1
- package/dist/types/InstanceWithFederationState.d.ts +2 -2
- package/dist/types/LocalImage.d.ts +3 -8
- package/dist/types/LocalImageView.d.ts +0 -2
- package/dist/types/LocalSite.d.ts +6 -2
- package/dist/types/LocalSiteRateLimit.d.ts +2 -2
- package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
- package/dist/types/LocalUser.d.ts +1 -1
- 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 +2 -1
- package/dist/types/ModFeaturePost.d.ts +1 -1
- package/dist/types/ModLockPost.d.ts +1 -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/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 +4 -1
- package/dist/types/PersonActions.js +0 -1
- package/dist/types/PersonCommentMention.d.ts +1 -1
- package/dist/types/PersonPostMention.d.ts +1 -1
- package/dist/types/Post.d.ts +4 -4
- package/dist/types/PostActions.d.ts +9 -5
- package/dist/types/PostActions.js +0 -1
- package/dist/types/PostReport.d.ts +2 -2
- 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/Search.d.ts +0 -4
- package/dist/types/Site.d.ts +2 -2
- package/dist/types/SiteResponse.d.ts +4 -0
- package/dist/types/Tag.d.ts +2 -2
- package/dist/types/Tagline.d.ts +2 -2
- package/dist/types/VoteView.d.ts +1 -0
- package/package.json +2 -2
- package/dist/types/LikeType.d.ts +0 -4
- package/dist/types/LikeType.js +0 -3
- package/dist/types/ListPersonLiked.d.ts +0 -13
- package/dist/types/ListPersonLiked.js +0 -2
- package/dist/types/ListPersonLikedResponse.d.ts +0 -13
- package/dist/types/ListPersonLikedResponse.js +0 -2
- package/dist/types/PersonLikedCombinedView.d.ts +0 -7
- package/dist/types/PersonLikedCombinedView.js +0 -2
- package/dist/types/ResolveObjectResponse.d.ts +0 -13
- package/dist/types/ResolveObjectResponse.js +0 -2
package/dist/http.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Controller } from "@tsoa/runtime";
|
2
|
-
import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListInboxI, ListMediaI, ListPersonContentI, ListPersonHiddenI,
|
2
|
+
import { AdminListUsersI, CommunityIdQueryI, DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListInboxI, ListMediaI, ListPersonContentI, ListPersonHiddenI, ListPersonReadI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
|
3
3
|
import { AddAdmin } from "./types/AddAdmin";
|
4
4
|
import { AddAdminResponse } from "./types/AddAdminResponse";
|
5
5
|
import { AddModToCommunity } from "./types/AddModToCommunity";
|
@@ -139,8 +139,6 @@ import { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
|
|
139
139
|
import { CommunityIdQuery } from "./types/CommunityIdQuery";
|
140
140
|
import { AdminListUsersResponse } from "./types/AdminListUsersResponse";
|
141
141
|
import { ListLoginsResponse } from "./types/ListLoginsResponse";
|
142
|
-
import { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
|
143
|
-
import { ResolveObjectResponse } from "./types/ResolveObjectResponse";
|
144
142
|
type RequestOptions = Pick<RequestInit, "signal">;
|
145
143
|
/**
|
146
144
|
* Helps build lemmy HTTP requests.
|
@@ -239,7 +237,7 @@ export declare class LemmyHttp extends Controller {
|
|
239
237
|
/**
|
240
238
|
* @summary Fetch a non-local / federated object.
|
241
239
|
*/
|
242
|
-
resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<
|
240
|
+
resolveObject(form: ResolveObjectI, options?: RequestOptions): Promise<SearchResponse>;
|
243
241
|
/**
|
244
242
|
* @summary Create a new community.
|
245
243
|
*/
|
@@ -560,10 +558,6 @@ export declare class LemmyHttp extends Controller {
|
|
560
558
|
* @summary List your hidden content.
|
561
559
|
*/
|
562
560
|
listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<ListPersonHiddenResponse>;
|
563
|
-
/**
|
564
|
-
* @summary List your liked content.
|
565
|
-
*/
|
566
|
-
listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise<ListPersonLikedResponse>;
|
567
561
|
/**
|
568
562
|
* @summary Add an admin to your site.
|
569
563
|
*/
|
package/dist/http.js
CHANGED
@@ -652,12 +652,6 @@ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
|
|
652
652
|
async listPersonHidden(form, options) {
|
653
653
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/hidden", form, options);
|
654
654
|
}
|
655
|
-
/**
|
656
|
-
* @summary List your liked content.
|
657
|
-
*/
|
658
|
-
async listPersonLiked(form, options) {
|
659
|
-
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/liked", form, options);
|
660
|
-
}
|
661
655
|
/**
|
662
656
|
* @summary Add an admin to your site.
|
663
657
|
*/
|
@@ -1672,13 +1666,6 @@ __decorate([
|
|
1672
1666
|
__param(0, (0, runtime_1.Queries)()),
|
1673
1667
|
__param(1, (0, runtime_1.Inject)())
|
1674
1668
|
], LemmyHttp.prototype, "listPersonHidden", null);
|
1675
|
-
__decorate([
|
1676
|
-
(0, runtime_1.Security)("bearerAuth"),
|
1677
|
-
(0, runtime_1.Get)("/account/liked"),
|
1678
|
-
(0, runtime_1.Tags)("Account"),
|
1679
|
-
__param(0, (0, runtime_1.Queries)()),
|
1680
|
-
__param(1, (0, runtime_1.Inject)())
|
1681
|
-
], LemmyHttp.prototype, "listPersonLiked", null);
|
1682
1669
|
__decorate([
|
1683
1670
|
(0, runtime_1.Security)("bearerAuth"),
|
1684
1671
|
(0, runtime_1.Post)("/admin/add"),
|
package/dist/index.d.ts
CHANGED
@@ -156,7 +156,6 @@ export { InstanceWithFederationState } from "./types/InstanceWithFederationState
|
|
156
156
|
export { Language } from "./types/Language";
|
157
157
|
export { LanguageId } from "./types/LanguageId";
|
158
158
|
export { LemmyErrorType } from "./types/LemmyErrorType";
|
159
|
-
export { LikeType } from "./types/LikeType";
|
160
159
|
export { LinkMetadata } from "./types/LinkMetadata";
|
161
160
|
export { ListCommentLikes } from "./types/ListCommentLikes";
|
162
161
|
export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
@@ -175,8 +174,6 @@ export { ListPersonContent } from "./types/ListPersonContent";
|
|
175
174
|
export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
|
176
175
|
export { ListPersonHidden } from "./types/ListPersonHidden";
|
177
176
|
export { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
|
178
|
-
export { ListPersonLiked } from "./types/ListPersonLiked";
|
179
|
-
export { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
|
180
177
|
export { ListPersonRead } from "./types/ListPersonRead";
|
181
178
|
export { ListPersonReadResponse } from "./types/ListPersonReadResponse";
|
182
179
|
export { ListPersonSaved } from "./types/ListPersonSaved";
|
@@ -261,7 +258,6 @@ export { PersonCommentMentionView } from "./types/PersonCommentMentionView";
|
|
261
258
|
export { PersonContentCombinedView } from "./types/PersonContentCombinedView";
|
262
259
|
export { PersonContentType } from "./types/PersonContentType";
|
263
260
|
export { PersonId } from "./types/PersonId";
|
264
|
-
export { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
|
265
261
|
export { PersonPostMention } from "./types/PersonPostMention";
|
266
262
|
export { PersonPostMentionId } from "./types/PersonPostMentionId";
|
267
263
|
export { PersonPostMentionView } from "./types/PersonPostMentionView";
|
@@ -309,7 +305,6 @@ export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
|
309
305
|
export { ResolveCommentReport } from "./types/ResolveCommentReport";
|
310
306
|
export { ResolveCommunityReport } from "./types/ResolveCommunityReport";
|
311
307
|
export { ResolveObject } from "./types/ResolveObject";
|
312
|
-
export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
|
313
308
|
export { ResolvePostReport } from "./types/ResolvePostReport";
|
314
309
|
export { ResolvePrivateMessageReport } from "./types/ResolvePrivateMessageReport";
|
315
310
|
export { SaveComment } from "./types/SaveComment";
|
package/dist/other_types.d.ts
CHANGED
@@ -21,7 +21,6 @@ import { ListInbox } from "./types/ListInbox";
|
|
21
21
|
import { ListMedia } from "./types/ListMedia";
|
22
22
|
import { ListPersonContent } from "./types/ListPersonContent";
|
23
23
|
import { ListPersonHidden } from "./types/ListPersonHidden";
|
24
|
-
import { ListPersonLiked } from "./types/ListPersonLiked";
|
25
24
|
import { ListPersonRead } from "./types/ListPersonRead";
|
26
25
|
import { ListPersonSaved } from "./types/ListPersonSaved";
|
27
26
|
import { ListPostLikes } from "./types/ListPostLikes";
|
@@ -80,8 +79,6 @@ export interface ListPersonReadI extends ListPersonRead {
|
|
80
79
|
}
|
81
80
|
export interface ListPersonHiddenI extends ListPersonHidden {
|
82
81
|
}
|
83
|
-
export interface ListPersonLikedI extends ListPersonLiked {
|
84
|
-
}
|
85
82
|
export interface ListRegistrationApplicationsI extends ListRegistrationApplications {
|
86
83
|
}
|
87
84
|
export interface GetRegistrationApplicationI extends GetRegistrationApplication {
|
package/dist/types/Comment.d.ts
CHANGED
@@ -15,8 +15,8 @@ export type Comment = {
|
|
15
15
|
* Whether the comment has been removed.
|
16
16
|
*/
|
17
17
|
removed: boolean;
|
18
|
-
|
19
|
-
|
18
|
+
published: string;
|
19
|
+
updated?: string;
|
20
20
|
/**
|
21
21
|
* Whether the comment has been deleted by its creator.
|
22
22
|
*/
|
@@ -1,4 +1,8 @@
|
|
1
|
+
import type { CommentId } from "./CommentId";
|
2
|
+
import type { PersonId } from "./PersonId";
|
1
3
|
export type CommentActions = {
|
4
|
+
person_id: PersonId;
|
5
|
+
comment_id: CommentId;
|
2
6
|
/**
|
3
7
|
* The like / score for the comment.
|
4
8
|
*/
|
@@ -6,9 +10,9 @@ export type CommentActions = {
|
|
6
10
|
/**
|
7
11
|
* When the comment was liked.
|
8
12
|
*/
|
9
|
-
|
13
|
+
liked?: string;
|
10
14
|
/**
|
11
15
|
* When the comment was saved.
|
12
16
|
*/
|
13
|
-
|
17
|
+
saved?: string;
|
14
18
|
};
|
@@ -20,8 +20,8 @@ export type Community = {
|
|
20
20
|
* Whether the community is removed by a mod.
|
21
21
|
*/
|
22
22
|
removed: boolean;
|
23
|
-
|
24
|
-
|
23
|
+
published: string;
|
24
|
+
updated?: string;
|
25
25
|
/**
|
26
26
|
* Whether the community has been deleted by its creator.
|
27
27
|
*/
|
@@ -1,27 +1,35 @@
|
|
1
1
|
import type { CommunityFollowerState } from "./CommunityFollowerState";
|
2
|
+
import type { CommunityId } from "./CommunityId";
|
3
|
+
import type { PersonId } from "./PersonId";
|
2
4
|
export type CommunityActions = {
|
5
|
+
community_id: CommunityId;
|
6
|
+
person_id: PersonId;
|
3
7
|
/**
|
4
8
|
* When the community was followed.
|
5
9
|
*/
|
6
|
-
|
10
|
+
followed?: string;
|
7
11
|
/**
|
8
12
|
* The state of the community follow.
|
9
13
|
*/
|
10
14
|
follow_state?: CommunityFollowerState;
|
15
|
+
/**
|
16
|
+
* The approver of the community follow.
|
17
|
+
*/
|
18
|
+
follow_approver_id?: PersonId;
|
11
19
|
/**
|
12
20
|
* When the community was blocked.
|
13
21
|
*/
|
14
|
-
|
22
|
+
blocked?: string;
|
15
23
|
/**
|
16
24
|
* When this user became a moderator.
|
17
25
|
*/
|
18
|
-
|
26
|
+
became_moderator?: string;
|
19
27
|
/**
|
20
28
|
* When this user received a ban.
|
21
29
|
*/
|
22
|
-
|
30
|
+
received_ban?: string;
|
23
31
|
/**
|
24
32
|
* When their ban expires.
|
25
33
|
*/
|
26
|
-
|
34
|
+
ban_expires?: string;
|
27
35
|
};
|
@@ -24,6 +24,7 @@ export type CreateSite = {
|
|
24
24
|
default_comment_sort_type?: CommentSortType;
|
25
25
|
legal_information?: string;
|
26
26
|
application_email_admins?: boolean;
|
27
|
+
hide_modlog_mod_names?: boolean;
|
27
28
|
discussion_languages?: Array<LanguageId>;
|
28
29
|
slur_filter_regex?: string;
|
29
30
|
actor_name_max_length?: number;
|
package/dist/types/EditPost.d.ts
CHANGED
package/dist/types/EditSite.d.ts
CHANGED
@@ -66,6 +66,10 @@ export type EditSite = {
|
|
66
66
|
* Whether to email admins when receiving a new application.
|
67
67
|
*/
|
68
68
|
application_email_admins?: boolean;
|
69
|
+
/**
|
70
|
+
* Whether to hide moderator names from the modlog.
|
71
|
+
*/
|
72
|
+
hide_modlog_mod_names?: boolean;
|
69
73
|
/**
|
70
74
|
* A list of allowed discussion languages.
|
71
75
|
*/
|
package/dist/types/GetPosts.d.ts
CHANGED
@@ -16,6 +16,8 @@ export type GetPosts = {
|
|
16
16
|
time_range_seconds?: number;
|
17
17
|
community_id?: CommunityId;
|
18
18
|
community_name?: string;
|
19
|
+
liked_only?: boolean;
|
20
|
+
disliked_only?: boolean;
|
19
21
|
show_hidden?: boolean;
|
20
22
|
/**
|
21
23
|
* If true, then show the read posts (even if your user setting is to hide them)
|
package/dist/types/Instance.d.ts
CHANGED
@@ -6,11 +6,11 @@ import type { InstanceId } from "./InstanceId";
|
|
6
6
|
export type Instance = {
|
7
7
|
id: InstanceId;
|
8
8
|
domain: string;
|
9
|
-
|
9
|
+
published: string;
|
10
10
|
/**
|
11
11
|
* When the instance was updated.
|
12
12
|
*/
|
13
|
-
|
13
|
+
updated?: string;
|
14
14
|
/**
|
15
15
|
* The software of the instance.
|
16
16
|
*/
|
@@ -1,14 +1,18 @@
|
|
1
|
+
import type { InstanceId } from "./InstanceId";
|
2
|
+
import type { PersonId } from "./PersonId";
|
1
3
|
export type InstanceActions = {
|
4
|
+
person_id: PersonId;
|
5
|
+
instance_id: InstanceId;
|
2
6
|
/**
|
3
7
|
* When the instance was blocked.
|
4
8
|
*/
|
5
|
-
|
9
|
+
blocked?: string;
|
6
10
|
/**
|
7
11
|
* When this user received a site ban.
|
8
12
|
*/
|
9
|
-
|
13
|
+
received_ban?: string;
|
10
14
|
/**
|
11
15
|
* When their ban expires.
|
12
16
|
*/
|
13
|
-
|
17
|
+
ban_expires?: string;
|
14
18
|
};
|
@@ -8,11 +8,11 @@ export type InstanceWithFederationState = {
|
|
8
8
|
federation_state?: ReadableFederationState;
|
9
9
|
id: InstanceId;
|
10
10
|
domain: string;
|
11
|
-
|
11
|
+
published: string;
|
12
12
|
/**
|
13
13
|
* When the instance was updated.
|
14
14
|
*/
|
15
|
-
|
15
|
+
updated?: string;
|
16
16
|
/**
|
17
17
|
* The software of the instance.
|
18
18
|
*/
|
@@ -1,11 +1,6 @@
|
|
1
|
-
import type {
|
2
|
-
import type { PostId } from "./PostId";
|
1
|
+
import type { LocalUserId } from "./LocalUserId";
|
3
2
|
export type LocalImage = {
|
3
|
+
local_user_id?: LocalUserId;
|
4
4
|
pictrs_alias: string;
|
5
|
-
|
6
|
-
person_id: PersonId;
|
7
|
-
/**
|
8
|
-
* This means the image is an auto-generated thumbnail, for a post.
|
9
|
-
*/
|
10
|
-
thumbnail_for_post_id?: PostId;
|
5
|
+
published: string;
|
11
6
|
};
|
@@ -1,11 +1,9 @@
|
|
1
1
|
import type { LocalImage } from "./LocalImage";
|
2
2
|
import type { Person } from "./Person";
|
3
|
-
import type { Post } from "./Post";
|
4
3
|
/**
|
5
4
|
* A local image view.
|
6
5
|
*/
|
7
6
|
export type LocalImageView = {
|
8
7
|
local_image: LocalImage;
|
9
8
|
person: Person;
|
10
|
-
post?: Post;
|
11
9
|
};
|
@@ -41,6 +41,10 @@ export type LocalSite = {
|
|
41
41
|
* An optional legal disclaimer page.
|
42
42
|
*/
|
43
43
|
legal_information?: string;
|
44
|
+
/**
|
45
|
+
* Whether to hide mod names on the modlog.
|
46
|
+
*/
|
47
|
+
hide_modlog_mod_names: boolean;
|
44
48
|
/**
|
45
49
|
* Whether new applications email admins.
|
46
50
|
*/
|
@@ -65,8 +69,8 @@ export type LocalSite = {
|
|
65
69
|
* The captcha difficulty.
|
66
70
|
*/
|
67
71
|
captcha_difficulty: string;
|
68
|
-
|
69
|
-
|
72
|
+
published: string;
|
73
|
+
updated?: string;
|
70
74
|
registration_mode: RegistrationMode;
|
71
75
|
/**
|
72
76
|
* Whether to email admins on new reports.
|
@@ -16,8 +16,8 @@ export type LocalSiteRateLimit = {
|
|
16
16
|
comment_per_second: number;
|
17
17
|
search: number;
|
18
18
|
search_per_second: number;
|
19
|
-
|
20
|
-
|
19
|
+
published: string;
|
20
|
+
updated?: string;
|
21
21
|
import_user_settings: number;
|
22
22
|
import_user_settings_per_second: number;
|
23
23
|
};
|
@@ -89,7 +89,7 @@ export type LocalUser = {
|
|
89
89
|
* The last time a donation request was shown to this user. If this is more than a year ago,
|
90
90
|
* a new notification request should be shown.
|
91
91
|
*/
|
92
|
-
|
92
|
+
last_donation_notification: string;
|
93
93
|
/**
|
94
94
|
* Whether to hide posts containing images/videos
|
95
95
|
*/
|
@@ -7,7 +7,7 @@ export type LoginToken = {
|
|
7
7
|
/**
|
8
8
|
* Time of login
|
9
9
|
*/
|
10
|
-
|
10
|
+
published: string;
|
11
11
|
/**
|
12
12
|
* IP address where login was made from, allows invalidating logins by IP address.
|
13
13
|
* Could be stored in truncated format, or store derived information for better privacy.
|
package/dist/types/ModAdd.d.ts
CHANGED
package/dist/types/ModBan.d.ts
CHANGED
package/dist/types/Person.d.ts
CHANGED
package/dist/types/Post.d.ts
CHANGED
@@ -27,8 +27,8 @@ export type Post = {
|
|
27
27
|
* Whether the post is locked.
|
28
28
|
*/
|
29
29
|
locked: boolean;
|
30
|
-
|
31
|
-
|
30
|
+
published: string;
|
31
|
+
updated?: string;
|
32
32
|
/**
|
33
33
|
* Whether the post is deleted.
|
34
34
|
*/
|
@@ -78,7 +78,7 @@ export type Post = {
|
|
78
78
|
/**
|
79
79
|
* Time at which the post will be published. None means publish immediately.
|
80
80
|
*/
|
81
|
-
|
81
|
+
scheduled_publish_time?: string;
|
82
82
|
comments: number;
|
83
83
|
score: number;
|
84
84
|
upvotes: number;
|
@@ -86,7 +86,7 @@ export type Post = {
|
|
86
86
|
/**
|
87
87
|
* The time of the newest comment in the post.
|
88
88
|
*/
|
89
|
-
|
89
|
+
newest_comment_time: string;
|
90
90
|
report_count: number;
|
91
91
|
unresolved_report_count: number;
|
92
92
|
/**
|
@@ -1,12 +1,16 @@
|
|
1
|
+
import type { PersonId } from "./PersonId";
|
2
|
+
import type { PostId } from "./PostId";
|
1
3
|
export type PostActions = {
|
4
|
+
post_id: PostId;
|
5
|
+
person_id: PersonId;
|
2
6
|
/**
|
3
7
|
* When the post was read.
|
4
8
|
*/
|
5
|
-
|
9
|
+
read?: string;
|
6
10
|
/**
|
7
11
|
* When was the last time you read the comments.
|
8
12
|
*/
|
9
|
-
|
13
|
+
read_comments?: string;
|
10
14
|
/**
|
11
15
|
* The number of comments you read last. Subtract this from total comments to get an unread
|
12
16
|
* count.
|
@@ -15,11 +19,11 @@ export type PostActions = {
|
|
15
19
|
/**
|
16
20
|
* When the post was saved.
|
17
21
|
*/
|
18
|
-
|
22
|
+
saved?: string;
|
19
23
|
/**
|
20
24
|
* When the post was liked.
|
21
25
|
*/
|
22
|
-
|
26
|
+
liked?: string;
|
23
27
|
/**
|
24
28
|
* The like / score of the post.
|
25
29
|
*/
|
@@ -27,5 +31,5 @@ export type PostActions = {
|
|
27
31
|
/**
|
28
32
|
* When the post was hidden.
|
29
33
|
*/
|
30
|
-
|
34
|
+
hidden?: string;
|
31
35
|
};
|
@@ -10,7 +10,7 @@ export type ReadableFederationState = {
|
|
10
10
|
* the last successfully sent activity id
|
11
11
|
*/
|
12
12
|
last_successful_id?: ActivityId;
|
13
|
-
|
13
|
+
last_successful_published_time?: string;
|
14
14
|
/**
|
15
15
|
* how many failed attempts have been made to send the next activity
|
16
16
|
*/
|
@@ -18,5 +18,5 @@ export type ReadableFederationState = {
|
|
18
18
|
/**
|
19
19
|
* timestamp of the last retry attempt (when the last failing activity was resent)
|
20
20
|
*/
|
21
|
-
|
21
|
+
last_retry?: string;
|
22
22
|
};
|
package/dist/types/Search.d.ts
CHANGED
@@ -24,10 +24,6 @@ export type Search = {
|
|
24
24
|
post_url_only?: boolean;
|
25
25
|
liked_only?: boolean;
|
26
26
|
disliked_only?: boolean;
|
27
|
-
/**
|
28
|
-
* If true, then show the nsfw posts (even if your user setting is to hide them)
|
29
|
-
*/
|
30
|
-
show_nsfw?: boolean;
|
31
27
|
page_cursor?: PaginationCursor;
|
32
28
|
page_back?: boolean;
|
33
29
|
limit?: number;
|
package/dist/types/Site.d.ts
CHANGED
package/dist/types/Tag.d.ts
CHANGED
package/dist/types/Tagline.d.ts
CHANGED
package/dist/types/VoteView.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "lemmy-js-client",
|
3
3
|
"description": "A javascript / typescript client for Lemmy",
|
4
|
-
"version": "1.0.0-
|
4
|
+
"version": "1.0.0-search-and-resolve.1",
|
5
5
|
"author": "Dessalines",
|
6
6
|
"license": "AGPL-3.0",
|
7
7
|
"main": "./dist/index.js",
|
@@ -43,7 +43,7 @@
|
|
43
43
|
"typescript": "^5.5.4",
|
44
44
|
"typescript-eslint": "^8.7.0"
|
45
45
|
},
|
46
|
-
"packageManager": "pnpm@10.11.
|
46
|
+
"packageManager": "pnpm@10.11.0",
|
47
47
|
"types": "./dist/index.d.ts",
|
48
48
|
"lint-staged": {
|
49
49
|
"*.{ts,tsx,js}": [
|
package/dist/types/LikeType.d.ts
DELETED
package/dist/types/LikeType.js
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { LikeType } from "./LikeType";
|
2
|
-
import type { PaginationCursor } from "./PaginationCursor";
|
3
|
-
import type { PersonContentType } from "./PersonContentType";
|
4
|
-
/**
|
5
|
-
* Gets your liked / disliked posts
|
6
|
-
*/
|
7
|
-
export type ListPersonLiked = {
|
8
|
-
type_?: PersonContentType;
|
9
|
-
like_type?: LikeType;
|
10
|
-
page_cursor?: PaginationCursor;
|
11
|
-
page_back?: boolean;
|
12
|
-
limit?: number;
|
13
|
-
};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { PaginationCursor } from "./PaginationCursor";
|
2
|
-
import type { PersonLikedCombinedView } from "./PersonLikedCombinedView";
|
3
|
-
/**
|
4
|
-
* Your liked posts response.
|
5
|
-
*/
|
6
|
-
export type ListPersonLikedResponse = {
|
7
|
-
liked: Array<PersonLikedCombinedView>;
|
8
|
-
/**
|
9
|
-
* the pagination cursor to use to fetch the next page
|
10
|
-
*/
|
11
|
-
next_page?: PaginationCursor;
|
12
|
-
prev_page?: PaginationCursor;
|
13
|
-
};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { CommentView } from "./CommentView";
|
2
|
-
import type { CommunityView } from "./CommunityView";
|
3
|
-
import type { PersonView } from "./PersonView";
|
4
|
-
import type { PostView } from "./PostView";
|
5
|
-
/**
|
6
|
-
* The response of an apub object fetch.
|
7
|
-
*/
|
8
|
-
export type ResolveObjectResponse = {
|
9
|
-
comment?: CommentView;
|
10
|
-
post?: PostView;
|
11
|
-
community?: CommunityView;
|
12
|
-
person?: PersonView;
|
13
|
-
};
|