lemmy-js-client 0.20.0-show-mod-reports.1 → 1.0.0-block-nsfw.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/README.md +12 -3
- package/dist/http.d.ts +7 -2
- package/dist/http.js +13 -1
- package/dist/index.d.ts +1 -0
- package/dist/types/CommentReplyView.d.ts +5 -1
- package/dist/types/CommentReport.d.ts +1 -0
- package/dist/types/CommentReportView.d.ts +4 -1
- package/dist/types/CommentSlimView.d.ts +5 -1
- package/dist/types/CommentView.d.ts +5 -1
- package/dist/types/CommunitySortType.d.ts +1 -1
- package/dist/types/CommunityView.d.ts +1 -0
- package/dist/types/CreateCommentReport.d.ts +1 -0
- package/dist/types/CreatePostReport.d.ts +1 -0
- package/dist/types/CreateSite.d.ts +1 -0
- package/dist/types/EditSite.d.ts +8 -0
- package/dist/types/FederationError.d.ts +1 -1
- package/dist/types/GetComments.d.ts +5 -0
- package/dist/types/GetModlog.d.ts +24 -0
- package/dist/types/GetPostResponse.d.ts +0 -2
- package/dist/types/GetPosts.d.ts +6 -0
- package/dist/types/ImageDetails.d.ts +1 -0
- package/dist/types/ListCommunities.d.ts +5 -0
- package/dist/types/ListReports.d.ts +6 -2
- package/dist/types/LocalSite.d.ts +8 -0
- package/dist/types/LocalUser.d.ts +4 -0
- package/dist/types/PersonAggregates.d.ts +1 -0
- package/dist/types/PersonCommentMentionView.d.ts +5 -1
- package/dist/types/PersonPostMentionView.d.ts +5 -1
- package/dist/types/PostReport.d.ts +1 -0
- package/dist/types/PostReportView.d.ts +4 -1
- package/dist/types/PostSortType.d.ts +1 -1
- package/dist/types/PostView.d.ts +5 -1
- package/dist/types/PrivateMessage.d.ts +1 -0
- package/dist/types/ResendVerificationEmail.d.ts +7 -0
- package/dist/types/ResendVerificationEmail.js +2 -0
- package/dist/types/SaveUserSettings.d.ts +4 -0
- package/dist/types/Search.d.ts +5 -0
- package/package.json +2 -2
package/README.md
CHANGED
@@ -50,6 +50,15 @@ const posts = await client.getPosts(getPostsForm);
|
|
50
50
|
|
51
51
|
Use `pnpm add` to develop and test changes locally:
|
52
52
|
|
53
|
-
|
54
|
-
|
55
|
-
|
53
|
+
`pnpm add path/to/lemmy-js-client`
|
54
|
+
|
55
|
+
## OpenAPI
|
56
|
+
|
57
|
+
To generate OpenAPI docs, run `pnpm tsoa`
|
58
|
+
|
59
|
+
This creates two files:
|
60
|
+
|
61
|
+
- `redoc-static.html` - A static html rendering of the OpenAPI docs.
|
62
|
+
- `tsoa_build/swagger.json` - An OpenAPI / Swagger json file.
|
63
|
+
|
64
|
+
To contribute, check out the [tsoa docs](https://tsoa-community.github.io/docs/).
|
package/dist/http.d.ts
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
import { Controller } from "tsoa";
|
2
|
+
import { DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListInboxI, ListMediaI, ListPersonContentI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
|
1
3
|
import { AddAdmin } from "./types/AddAdmin";
|
2
4
|
import { AddAdminResponse } from "./types/AddAdminResponse";
|
3
5
|
import { AddModToCommunity } from "./types/AddModToCommunity";
|
@@ -95,7 +97,6 @@ import { SearchResponse } from "./types/SearchResponse";
|
|
95
97
|
import { SiteResponse } from "./types/SiteResponse";
|
96
98
|
import { TransferCommunity } from "./types/TransferCommunity";
|
97
99
|
import { VerifyEmail } from "./types/VerifyEmail";
|
98
|
-
import { DeleteImageParamsI, GetCommentI, GetCommentsI, GetCommunityI, GetCommunityPendingFollowsCountI, GetModlogI, GetPersonDetailsI, GetPostI, GetPostsI, GetRandomCommunityI, GetRegistrationApplicationI, GetReportCountI, GetSiteMetadataI, ListCommentLikesI, ListCommunitiesI, ListCommunityPendingFollowsI, ListCustomEmojisI, ListInboxI, ListMediaI, ListPersonContentI, ListPersonSavedI, ListPostLikesI, ListRegistrationApplicationsI, ListReportsI, ListTaglinesI, ResolveObjectI, SearchI, UploadImage } from "./other_types";
|
99
100
|
import { HideCommunity } from "./types/HideCommunity";
|
100
101
|
import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
|
101
102
|
import { UpdateTotp } from "./types/UpdateTotp";
|
@@ -128,7 +129,7 @@ import { ListInboxResponse } from "./types/ListInboxResponse";
|
|
128
129
|
import { MarkPersonCommentMentionAsRead } from "./types/MarkPersonCommentMentionAsRead";
|
129
130
|
import { MarkPersonPostMentionAsRead } from "./types/MarkPersonPostMentionAsRead";
|
130
131
|
import { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
|
131
|
-
import {
|
132
|
+
import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
132
133
|
type RequestOptions = Pick<RequestInit, "signal">;
|
133
134
|
/**
|
134
135
|
* Helps build lemmy HTTP requests.
|
@@ -516,6 +517,10 @@ export declare class LemmyHttp extends Controller {
|
|
516
517
|
* @summary Verify your email
|
517
518
|
*/
|
518
519
|
verifyEmail(form: VerifyEmail, options?: RequestOptions): Promise<SuccessResponse>;
|
520
|
+
/**
|
521
|
+
* @summary Resend a verification email.
|
522
|
+
*/
|
523
|
+
resendVerificationEmail(form: ResendVerificationEmail, options?: RequestOptions): Promise<SuccessResponse>;
|
519
524
|
/**
|
520
525
|
* @summary List your saved content.
|
521
526
|
*/
|
package/dist/http.js
CHANGED
@@ -31,8 +31,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
31
31
|
var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers, _LemmyHttp_fetchFunction, _LemmyHttp_buildFullUrl, _LemmyHttp_upload, _LemmyHttp_wrapper;
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
33
33
|
exports.LemmyHttp = void 0;
|
34
|
-
const other_types_1 = require("./other_types");
|
35
34
|
const tsoa_1 = require("tsoa");
|
35
|
+
const other_types_1 = require("./other_types");
|
36
36
|
var HttpType;
|
37
37
|
(function (HttpType) {
|
38
38
|
HttpType["Get"] = "GET";
|
@@ -613,6 +613,12 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
|
|
613
613
|
verifyEmail(form, options) {
|
614
614
|
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/verify_email", form, options);
|
615
615
|
}
|
616
|
+
/**
|
617
|
+
* @summary Resend a verification email.
|
618
|
+
*/
|
619
|
+
resendVerificationEmail(form, options) {
|
620
|
+
return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/resend_verification_email", form, options);
|
621
|
+
}
|
616
622
|
/**
|
617
623
|
* @summary List your saved content.
|
618
624
|
*/
|
@@ -1572,6 +1578,12 @@ __decorate([
|
|
1572
1578
|
__param(0, (0, tsoa_1.Body)()),
|
1573
1579
|
__param(1, (0, tsoa_1.Inject)())
|
1574
1580
|
], LemmyHttp.prototype, "verifyEmail", null);
|
1581
|
+
__decorate([
|
1582
|
+
(0, tsoa_1.Post)("/account/auth/resend_verification_email"),
|
1583
|
+
(0, tsoa_1.Tags)("Account"),
|
1584
|
+
__param(0, (0, tsoa_1.Body)()),
|
1585
|
+
__param(1, (0, tsoa_1.Inject)())
|
1586
|
+
], LemmyHttp.prototype, "resendVerificationEmail", null);
|
1575
1587
|
__decorate([
|
1576
1588
|
(0, tsoa_1.Security)("bearerAuth"),
|
1577
1589
|
(0, tsoa_1.Get)("/account/auth/saved"),
|
package/dist/index.d.ts
CHANGED
@@ -295,6 +295,7 @@ export { RemovePost } from "./types/RemovePost";
|
|
295
295
|
export { ReportCombinedPaginationCursor } from "./types/ReportCombinedPaginationCursor";
|
296
296
|
export { ReportCombinedView } from "./types/ReportCombinedView";
|
297
297
|
export { ReportType } from "./types/ReportType";
|
298
|
+
export { ResendVerificationEmail } from "./types/ResendVerificationEmail";
|
298
299
|
export { ResolveCommentReport } from "./types/ResolveCommentReport";
|
299
300
|
export { ResolveObject } from "./types/ResolveObject";
|
300
301
|
export { ResolveObjectResponse } from "./types/ResolveObjectResponse";
|
@@ -21,7 +21,11 @@ export type CommentReplyView = {
|
|
21
21
|
creator_is_moderator: boolean;
|
22
22
|
creator_is_admin: boolean;
|
23
23
|
subscribed: SubscribedType;
|
24
|
-
|
24
|
+
/**
|
25
|
+
* The time when the comment was saved.
|
26
|
+
*/
|
27
|
+
saved?: string;
|
25
28
|
creator_blocked: boolean;
|
26
29
|
my_vote?: number;
|
30
|
+
can_mod: boolean;
|
27
31
|
};
|
@@ -21,7 +21,10 @@ export type CommentReportView = {
|
|
21
21
|
creator_is_admin: boolean;
|
22
22
|
creator_blocked: boolean;
|
23
23
|
subscribed: SubscribedType;
|
24
|
-
|
24
|
+
/**
|
25
|
+
* The time when the comment was saved.
|
26
|
+
*/
|
27
|
+
saved?: string;
|
25
28
|
my_vote?: number;
|
26
29
|
resolver?: Person;
|
27
30
|
};
|
@@ -14,7 +14,11 @@ export type CommentSlimView = {
|
|
14
14
|
creator_is_moderator: boolean;
|
15
15
|
creator_is_admin: boolean;
|
16
16
|
subscribed: SubscribedType;
|
17
|
-
|
17
|
+
/**
|
18
|
+
* The time when the comment was saved.
|
19
|
+
*/
|
20
|
+
saved?: string;
|
18
21
|
creator_blocked: boolean;
|
19
22
|
my_vote?: number;
|
23
|
+
can_mod: boolean;
|
20
24
|
};
|
@@ -18,7 +18,11 @@ export type CommentView = {
|
|
18
18
|
creator_is_moderator: boolean;
|
19
19
|
creator_is_admin: boolean;
|
20
20
|
subscribed: SubscribedType;
|
21
|
-
|
21
|
+
/**
|
22
|
+
* The time when the comment was saved.
|
23
|
+
*/
|
24
|
+
saved?: string;
|
22
25
|
creator_blocked: boolean;
|
23
26
|
my_vote?: number;
|
27
|
+
can_mod: boolean;
|
24
28
|
};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/**
|
2
2
|
* The community sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
|
3
3
|
*/
|
4
|
-
export type CommunitySortType = "
|
4
|
+
export type CommunitySortType = "ActiveSixMonths" | "ActiveMonthly" | "ActiveWeekly" | "ActiveDaily" | "Hot" | "New" | "Old" | "NameAsc" | "NameDesc" | "Comments" | "Posts" | "Subscribers" | "SubscribersLocal";
|
@@ -20,6 +20,7 @@ export type CreateSite = {
|
|
20
20
|
default_post_listing_type?: ListingType;
|
21
21
|
default_post_listing_mode?: PostListingMode;
|
22
22
|
default_post_sort_type?: PostSortType;
|
23
|
+
default_post_time_range_seconds?: number;
|
23
24
|
default_comment_sort_type?: CommentSortType;
|
24
25
|
legal_information?: string;
|
25
26
|
application_email_admins?: boolean;
|
package/dist/types/EditSite.d.ts
CHANGED
@@ -50,6 +50,10 @@ export type EditSite = {
|
|
50
50
|
* The default post sort, usually "active"
|
51
51
|
*/
|
52
52
|
default_post_sort_type?: PostSortType;
|
53
|
+
/**
|
54
|
+
* A default time range limit to apply to post sorts, in seconds. 0 means none.
|
55
|
+
*/
|
56
|
+
default_post_time_range_seconds?: number;
|
53
57
|
/**
|
54
58
|
* The default comment sort, usually "hot"
|
55
59
|
*/
|
@@ -159,4 +163,8 @@ export type EditSite = {
|
|
159
163
|
* donations.
|
160
164
|
*/
|
161
165
|
disable_donation_dialog?: boolean;
|
166
|
+
/**
|
167
|
+
* Block NSFW content being created
|
168
|
+
*/
|
169
|
+
disallow_nsfw_content?: boolean;
|
162
170
|
};
|
@@ -7,4 +7,4 @@ export type FederationError = "InvalidCommunity" | "CannotCreatePostOrCommentInD
|
|
7
7
|
DomainBlocked: string;
|
8
8
|
} | {
|
9
9
|
DomainNotInAllowList: string;
|
10
|
-
} | "FederationDisabledByStrictAllowList" | "ContradictingFilters" | "UrlWithoutDomain" | "InboxTimeout" | "CantDeleteSite" | "ObjectIsNotPublic" | "ObjectIsNotPrivate" | "Unreachable";
|
10
|
+
} | "FederationDisabledByStrictAllowList" | "ContradictingFilters" | "UrlWithoutDomain" | "InboxTimeout" | "CantDeleteSite" | "ObjectIsNotPublic" | "ObjectIsNotPrivate" | "PlatformLackingPrivateCommunitySupport" | "Unreachable";
|
@@ -9,6 +9,11 @@ import type { PostId } from "./PostId";
|
|
9
9
|
export type GetComments = {
|
10
10
|
type_?: ListingType;
|
11
11
|
sort?: CommentSortType;
|
12
|
+
/**
|
13
|
+
* Filter to within a given time range, in seconds.
|
14
|
+
* IE 60 would give results for the past minute.
|
15
|
+
*/
|
16
|
+
time_range_seconds?: number;
|
12
17
|
max_depth?: number;
|
13
18
|
page?: number;
|
14
19
|
limit?: number;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { CommentId } from "./CommentId";
|
2
2
|
import type { CommunityId } from "./CommunityId";
|
3
|
+
import type { ListingType } from "./ListingType";
|
3
4
|
import type { ModlogActionType } from "./ModlogActionType";
|
4
5
|
import type { ModlogCombinedPaginationCursor } from "./ModlogCombinedPaginationCursor";
|
5
6
|
import type { PersonId } from "./PersonId";
|
@@ -8,11 +9,34 @@ import type { PostId } from "./PostId";
|
|
8
9
|
* Fetches the modlog.
|
9
10
|
*/
|
10
11
|
export type GetModlog = {
|
12
|
+
/**
|
13
|
+
* Filter by the moderator.
|
14
|
+
*/
|
11
15
|
mod_person_id?: PersonId;
|
16
|
+
/**
|
17
|
+
* Filter by the community.
|
18
|
+
*/
|
12
19
|
community_id?: CommunityId;
|
20
|
+
/**
|
21
|
+
* Filter by the modlog action type.
|
22
|
+
*/
|
13
23
|
type_?: ModlogActionType;
|
24
|
+
/**
|
25
|
+
* Filter by listing type. When not using All, it will remove the non-community modlog entries,
|
26
|
+
* such as site bans, instance blocks, adding an admin, etc.
|
27
|
+
*/
|
28
|
+
listing_type?: ListingType;
|
29
|
+
/**
|
30
|
+
* Filter by the other / modded person.
|
31
|
+
*/
|
14
32
|
other_person_id?: PersonId;
|
33
|
+
/**
|
34
|
+
* Filter by post. Will include comments of that post.
|
35
|
+
*/
|
15
36
|
post_id?: PostId;
|
37
|
+
/**
|
38
|
+
* Filter by comment.
|
39
|
+
*/
|
16
40
|
comment_id?: CommentId;
|
17
41
|
page_cursor?: ModlogCombinedPaginationCursor;
|
18
42
|
page_back?: boolean;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import type { CommunityModeratorView } from "./CommunityModeratorView";
|
2
1
|
import type { CommunityView } from "./CommunityView";
|
3
2
|
import type { PostView } from "./PostView";
|
4
3
|
/**
|
@@ -7,7 +6,6 @@ import type { PostView } from "./PostView";
|
|
7
6
|
export type GetPostResponse = {
|
8
7
|
post_view: PostView;
|
9
8
|
community_view: CommunityView;
|
10
|
-
moderators: Array<CommunityModeratorView>;
|
11
9
|
/**
|
12
10
|
* A list of cross-posts, or other times / communities this link has been posted to.
|
13
11
|
*/
|
package/dist/types/GetPosts.d.ts
CHANGED
@@ -8,6 +8,12 @@ import type { PostSortType } from "./PostSortType";
|
|
8
8
|
export type GetPosts = {
|
9
9
|
type_?: ListingType;
|
10
10
|
sort?: PostSortType;
|
11
|
+
/**
|
12
|
+
* Filter to within a given time range, in seconds.
|
13
|
+
* IE 60 would give results for the past minute.
|
14
|
+
* Use Zero to override the local_site and local_user time_range.
|
15
|
+
*/
|
16
|
+
time_range_seconds?: number;
|
11
17
|
/**
|
12
18
|
* DEPRECATED, use page_cursor
|
13
19
|
*/
|
@@ -6,6 +6,11 @@ import type { ListingType } from "./ListingType";
|
|
6
6
|
export type ListCommunities = {
|
7
7
|
type_?: ListingType;
|
8
8
|
sort?: CommunitySortType;
|
9
|
+
/**
|
10
|
+
* Filter to within a given time range, in seconds.
|
11
|
+
* IE 60 would give results for the past minute.
|
12
|
+
*/
|
13
|
+
time_range_seconds?: number;
|
9
14
|
show_nsfw?: boolean;
|
10
15
|
page?: number;
|
11
16
|
limit?: number;
|
@@ -25,7 +25,11 @@ export type ListReports = {
|
|
25
25
|
page_cursor?: ReportCombinedPaginationCursor;
|
26
26
|
page_back?: boolean;
|
27
27
|
/**
|
28
|
-
* Only for admins: also show reports
|
28
|
+
* Only for admins: also show reports with `violates_instance_rules=false`
|
29
29
|
*/
|
30
|
-
|
30
|
+
show_community_rule_violations?: boolean;
|
31
|
+
/**
|
32
|
+
* If true, view all your created reports. Works for non-admins/mods also.
|
33
|
+
*/
|
34
|
+
my_reports_only?: boolean;
|
31
35
|
};
|
@@ -118,4 +118,12 @@ export type LocalSite = {
|
|
118
118
|
* donations.
|
119
119
|
*/
|
120
120
|
disable_donation_dialog: boolean;
|
121
|
+
/**
|
122
|
+
* A default time range limit to apply to post sorts, in seconds.
|
123
|
+
*/
|
124
|
+
default_post_time_range_seconds?: number;
|
125
|
+
/**
|
126
|
+
* Block NSFW content being created
|
127
|
+
*/
|
128
|
+
disallow_nsfw_content: boolean;
|
121
129
|
};
|
@@ -21,7 +21,11 @@ export type PersonCommentMentionView = {
|
|
21
21
|
creator_is_moderator: boolean;
|
22
22
|
creator_is_admin: boolean;
|
23
23
|
subscribed: SubscribedType;
|
24
|
-
|
24
|
+
/**
|
25
|
+
* The time when the comment was saved.
|
26
|
+
*/
|
27
|
+
saved?: string;
|
25
28
|
creator_blocked: boolean;
|
26
29
|
my_vote?: number;
|
30
|
+
can_mod: boolean;
|
27
31
|
};
|
@@ -22,11 +22,15 @@ export type PersonPostMentionView = {
|
|
22
22
|
creator_is_moderator: boolean;
|
23
23
|
creator_is_admin: boolean;
|
24
24
|
subscribed: SubscribedType;
|
25
|
-
|
25
|
+
/**
|
26
|
+
* The time when the post was saved.
|
27
|
+
*/
|
28
|
+
saved?: string;
|
26
29
|
read: boolean;
|
27
30
|
hidden: boolean;
|
28
31
|
creator_blocked: boolean;
|
29
32
|
my_vote?: number;
|
30
33
|
unread_comments: number;
|
31
34
|
post_tags: PostTags;
|
35
|
+
can_mod: boolean;
|
32
36
|
};
|
@@ -17,7 +17,10 @@ export type PostReportView = {
|
|
17
17
|
creator_is_moderator: boolean;
|
18
18
|
creator_is_admin: boolean;
|
19
19
|
subscribed: SubscribedType;
|
20
|
-
|
20
|
+
/**
|
21
|
+
* The time when the post was saved.
|
22
|
+
*/
|
23
|
+
saved?: string;
|
21
24
|
read: boolean;
|
22
25
|
hidden: boolean;
|
23
26
|
creator_blocked: boolean;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/**
|
2
2
|
* The post sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
|
3
3
|
*/
|
4
|
-
export type PostSortType = "Active" | "Hot" | "New" | "Old" | "
|
4
|
+
export type PostSortType = "Active" | "Hot" | "New" | "Old" | "Top" | "MostComments" | "NewComments" | "Controversial" | "Scaled";
|
package/dist/types/PostView.d.ts
CHANGED
@@ -19,11 +19,15 @@ export type PostView = {
|
|
19
19
|
creator_is_admin: boolean;
|
20
20
|
counts: PostAggregates;
|
21
21
|
subscribed: SubscribedType;
|
22
|
-
|
22
|
+
/**
|
23
|
+
* The time when the post was saved.
|
24
|
+
*/
|
25
|
+
saved?: string;
|
23
26
|
read: boolean;
|
24
27
|
hidden: boolean;
|
25
28
|
creator_blocked: boolean;
|
26
29
|
my_vote?: number;
|
27
30
|
unread_comments: number;
|
28
31
|
tags: PostTags;
|
32
|
+
can_mod: boolean;
|
29
33
|
};
|
@@ -32,6 +32,10 @@ export type SaveUserSettings = {
|
|
32
32
|
* The default post sort, usually "active"
|
33
33
|
*/
|
34
34
|
default_post_sort_type?: PostSortType;
|
35
|
+
/**
|
36
|
+
* A default time range limit to apply to post sorts, in seconds. 0 means none.
|
37
|
+
*/
|
38
|
+
default_post_time_range_seconds?: number;
|
35
39
|
/**
|
36
40
|
* The default comment sort, usually "hot"
|
37
41
|
*/
|
package/dist/types/Search.d.ts
CHANGED
@@ -14,6 +14,11 @@ export type Search = {
|
|
14
14
|
creator_id?: PersonId;
|
15
15
|
type_?: SearchType;
|
16
16
|
sort?: SearchSortType;
|
17
|
+
/**
|
18
|
+
* Filter to within a given time range, in seconds.
|
19
|
+
* IE 60 would give results for the past minute.
|
20
|
+
*/
|
21
|
+
time_range_seconds?: number;
|
17
22
|
listing_type?: ListingType;
|
18
23
|
title_only?: boolean;
|
19
24
|
post_url_only?: boolean;
|
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": "0.
|
4
|
+
"version": "1.0.0-block-nsfw.1",
|
5
5
|
"author": "Dessalines",
|
6
6
|
"license": "AGPL-3.0",
|
7
7
|
"main": "./dist/index.js",
|
@@ -40,7 +40,7 @@
|
|
40
40
|
"typescript": "^5.5.4",
|
41
41
|
"typescript-eslint": "^8.7.0"
|
42
42
|
},
|
43
|
-
"packageManager": "pnpm@10.
|
43
|
+
"packageManager": "pnpm@10.4.0",
|
44
44
|
"types": "./dist/index.d.ts",
|
45
45
|
"lint-staged": {
|
46
46
|
"*.{ts,tsx,js}": [
|