UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

48 lines 1.46 kB
import { APIResource } from "../../resource.js"; import * as Core from "../../core.js"; export declare class Search extends APIResource { /** * Searches for locations, autonomous systems, and reports. */ global(query: SearchGlobalParams, options?: Core.RequestOptions): Core.APIPromise<SearchGlobalResponse>; } export interface SearchGlobalResponse { search: Array<SearchGlobalResponse.Search>; } export declare namespace SearchGlobalResponse { interface Search { code: string; name: string; type: string; } } export interface SearchGlobalParams { /** * Search for locations, autonomous systems and reports. */ query: string; /** * Search types to be excluded from results. */ exclude?: Array<'SPECIAL_EVENTS' | 'NOTEBOOKS' | 'LOCATIONS' | 'ASNS'>; /** * Format in which results will be returned. */ format?: 'JSON' | 'CSV'; /** * Search types to be included in results. */ include?: Array<'SPECIAL_EVENTS' | 'NOTEBOOKS' | 'LOCATIONS' | 'ASNS'>; /** * Limits the number of objects returned in the response. */ limit?: number; /** * Limit the number of objects per search category. */ limitPerGroup?: number; } export declare namespace Search { export { type SearchGlobalResponse as SearchGlobalResponse, type SearchGlobalParams as SearchGlobalParams }; } //# sourceMappingURL=search.d.ts.map