import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; /** * 排序方式 */ export declare const PostSearchAggregateSort: { readonly Relevance: "relevance"; readonly Date: "date"; }; /** * 排序方式 */ export type PostSearchAggregateSort = ClosedEnum; export declare const PostSearchAggregateSort$zodSchema: z.ZodEnum<{ date: "date"; relevance: "relevance"; }>; /** * 时间范围过滤 */ export declare const TimeRange: { readonly Day: "day"; readonly Week: "week"; readonly Month: "month"; readonly Year: "year"; }; /** * 时间范围过滤 */ export type TimeRange = ClosedEnum; export declare const TimeRange$zodSchema: z.ZodEnum<{ month: "month"; day: "day"; year: "year"; week: "week"; }>; /** * 包含搜索参数的JSON对象 */ export type PostSearchAggregateRequest = { query: string; site?: string | undefined; filetype?: string | undefined; fetch_full?: boolean | undefined; timeout_ms?: number | undefined; sort?: PostSearchAggregateSort | undefined; time_range?: TimeRange | undefined; }; export declare const PostSearchAggregateRequest$zodSchema: z.ZodType; /** * 服务器内部错误 */ export type PostSearchAggregateInternalServerErrorResponseBody = { code?: string | undefined; message?: string | undefined; timestamp?: string | undefined; }; export declare const PostSearchAggregateInternalServerErrorResponseBody$zodSchema: z.ZodType; /** * 请求过于频繁 */ export type PostSearchAggregateTooManyRequestsResponseBody = { code?: string | undefined; message?: string | undefined; timestamp?: string | undefined; }; export declare const PostSearchAggregateTooManyRequestsResponseBody$zodSchema: z.ZodType; /** * 未授权 */ export type PostSearchAggregateUnauthorizedResponseBody = { code?: string | undefined; message?: string | undefined; timestamp?: string | undefined; }; export declare const PostSearchAggregateUnauthorizedResponseBody$zodSchema: z.ZodType; /** * 请求参数错误 */ export type PostSearchAggregateBadRequestResponseBody = { code?: string | undefined; message?: string | undefined; timestamp?: string | undefined; }; export declare const PostSearchAggregateBadRequestResponseBody$zodSchema: z.ZodType; export type PostSearchAggregateResult = { title?: string | undefined; url?: string | undefined; snippet?: string | undefined; domain?: string | undefined; source?: string | undefined; position?: number | undefined; score?: number | undefined; publish_time?: string | undefined; author?: string | null | undefined; }; export declare const PostSearchAggregateResult$zodSchema: z.ZodType; export type PostSearchAggregateSource = { name?: string | undefined; status?: string | undefined; result_count?: number | undefined; elapsed_ms?: number | undefined; first_result_host?: string | undefined; }; export declare const PostSearchAggregateSource$zodSchema: z.ZodType; /** * 搜索成功,返回经过AI排序的高质量结果 */ export type PostSearchAggregateResponseBody = { query?: string | undefined; total_results?: number | undefined; results?: Array | undefined; sources?: Array | undefined; process_time_ms?: number | undefined; cached?: boolean | undefined; }; export declare const PostSearchAggregateResponseBody$zodSchema: z.ZodType; export type PostSearchAggregateResponse = PostSearchAggregateResponseBody | PostSearchAggregateBadRequestResponseBody | PostSearchAggregateUnauthorizedResponseBody | PostSearchAggregateTooManyRequestsResponseBody | PostSearchAggregateInternalServerErrorResponseBody; export declare const PostSearchAggregateResponse$zodSchema: z.ZodType; //# sourceMappingURL=postsearchaggregateop.d.ts.map