UNPKG

tenyun

Version:

Promise based and chained Tencent Cloud OpenAPI client for NodeJS

39 lines (32 loc) 1.56 kB
/// <reference types="node" /> import { AxiosPromise, AxiosRequestConfig } from "axios"; declare interface SearchProRequest { /** 搜索词 */ Query: string; /** 返回结果类型,0-自然检索结果(默认),1-垂类VR结果,2-混合结果(垂类VR结果+自然检索结果) */ Mode?: number; /** 指定域名站内搜索(用于过滤自然检索结果) 注意: mode=1模式下,参数无效 mode=0模式下对所有结果生效 mode=2模式下对输出的自然结果生效 */ Site?: string; /** 起始时间(用于过滤自然检索结果),精确到秒时间戳格式 注意: mode=1模式下,参数无效 mode=0模式下对所有结果生效 mode=2模式下对输出的自然结果生效 */ FromTime?: number; /** 结束时间(用于过滤自然检索结果),精确到秒时间戳格式 注意: mode=1模式下,参数无效 mode=0模式下对所有结果生效 mode=2模式下对输出的自然结果生效 */ ToTime?: number; } declare interface SearchProResponse { /** 原始查询语 */ Query?: string; /** 搜索结果页面 */ Pages?: string[]; /** 提示信息 */ Msg?: string; /** 唯一请求 ID,每次请求都会返回。 */ RequestId?: string; } /** {@link Wsa 联网搜索API} */ declare interface Wsa { (): Versions; /** 联网搜索API {@link SearchProRequest} {@link SearchProResponse} */ SearchPro(data: SearchProRequest, config?: AxiosRequestConfig): AxiosPromise<SearchProResponse>; } export declare type Versions = ["2025-05-08"]; export default Wsa;