import * as z from "zod"; export type SearchRequest = { page?: number | undefined; /** * The query string needs to be url encoded and is made up of the following options: * * @remarks * - Search term. This is just a string. Usually it would be the first item in the query. * - `@`: Use the `@` followed by the username to specify posts by this user. * - `#`: Use the `#` followed by the category slug to search within this category. * - `tags:`: `api,solved` or for posts that have all the specified tags `api+solved`. * - `before:`: `yyyy-mm-dd` * - `after:`: `yyyy-mm-dd` * - `order:`: `latest`, `likes`, `views`, `latest_topic` * - `assigned:`: username (without `@`) * - `in:`: `title`, `likes`, `personal`, `messages`, `seen`, `unseen`, `posted`, `created`, `watching`, `tracking`, `bookmarks`, `assigned`, `unassigned`, `first`, `pinned`, `wiki` * - `with:`: `images` * - `status:`: `open`, `closed`, `public`, `archived`, `noreplies`, `single_user`, `solved`, `unsolved` * - `group:`: group_name or group_id * - `group_messages:`: group_name or group_id * - `min_posts:`: 1 * - `max_posts:`: 10 * - `min_views:`: 1 * - `max_views:`: 10 * * If you are using cURL you can use the `-G` and the `--data-urlencode` flags to encode the query: * * ``` * curl -i -sS -X GET -G "http://localhost:4200/search.json" \ * --data-urlencode 'q=wordpress @scossar #fun after:2020-01-01' * ``` */ q?: string | undefined; }; export type GroupedSearchResult = { canCreateTopic: boolean; categoryIds: Array; error: string | null; groupIds: Array; moreCategories: string | null; moreFullPageResults: string | null; morePosts: string | null; moreUsers: string | null; postIds: Array; searchLogId: number; tagIds: Array; term: string; userIds: Array; }; /** * success response */ export type SearchResponseBody = { categories: Array; groupedSearchResult: GroupedSearchResult; groups: Array; posts: Array; tags: Array; users: Array; }; /** @internal */ export declare const SearchRequest$inboundSchema: z.ZodType; /** @internal */ export type SearchRequest$Outbound = { page?: number | undefined; q?: string | undefined; }; /** @internal */ export declare const SearchRequest$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace SearchRequest$ { /** @deprecated use `SearchRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SearchRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `SearchRequest$Outbound` instead. */ type Outbound = SearchRequest$Outbound; } /** @internal */ export declare const GroupedSearchResult$inboundSchema: z.ZodType; /** @internal */ export type GroupedSearchResult$Outbound = { can_create_topic: boolean; category_ids: Array; error: string | null; group_ids: Array; more_categories: string | null; more_full_page_results: string | null; more_posts: string | null; more_users: string | null; post_ids: Array; search_log_id: number; tag_ids: Array; term: string; user_ids: Array; }; /** @internal */ export declare const GroupedSearchResult$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GroupedSearchResult$ { /** @deprecated use `GroupedSearchResult$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GroupedSearchResult$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GroupedSearchResult$Outbound` instead. */ type Outbound = GroupedSearchResult$Outbound; } /** @internal */ export declare const SearchResponseBody$inboundSchema: z.ZodType; /** @internal */ export type SearchResponseBody$Outbound = { categories: Array; grouped_search_result: GroupedSearchResult$Outbound; groups: Array; posts: Array; tags: Array; users: Array; }; /** @internal */ export declare const SearchResponseBody$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace SearchResponseBody$ { /** @deprecated use `SearchResponseBody$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SearchResponseBody$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `SearchResponseBody$Outbound` instead. */ type Outbound = SearchResponseBody$Outbound; } //# sourceMappingURL=search.d.ts.map