-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathSearch.ts
More file actions
35 lines (34 loc) · 1.09 KB
/
Search.ts
File metadata and controls
35 lines (34 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { CommunityId } from "./CommunityId";
import type { ListingType } from "./ListingType";
import type { PersonId } from "./PersonId";
import type { SearchType } from "./SearchType";
/**
* Searches the site, given a search term, and some optional filters.
*/
export type Search = {
/**
* The search query. Can be a plain text, or an object ID which will be resolved
* (eg `https://lemmy.world/comment/1` or `!fediverse@lemmy.ml`).
*/
search_term: string;
community_id?: CommunityId;
community_name?: string;
creator_id?: PersonId;
creator_username?: string;
type_?: SearchType;
/**
* Filter to within a given time range, in seconds.
* IE 60 would give results for the past minute.
*/
time_range_seconds?: number;
listing_type?: ListingType;
title_only?: boolean;
post_url_only?: boolean;
/**
* If true, then show the nsfw posts (even if your user setting is to hide them)
*/
show_nsfw?: boolean;
page_cursor?: string;
limit?: number;
};