UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

28 lines • 1.16 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../core/resource.mjs"; export var BaseSearch = /* @__PURE__ */ (() => { class BaseSearch extends APIResource { /** * Searches for locations, autonomous systems, reports, bots, certificate logs, * certificate authorities, industries and verticals. Location names can be * localized by sending an `Accept-Language` HTTP header with a BCP 47 language tag * (e.g., `Accept-Language: pt-PT`). The full quality-value chain is supported * (e.g., `pt-PT,pt;q=0.9,en;q=0.8`). * * @example * ```ts * const response = await client.radar.search.global({ * query: 'United', * }); * ``` */ global(query, options) { return this._client.get('/radar/search/global', { query, ...options })._thenUnwrap((obj) => obj.result); } } BaseSearch._key = Object.freeze(['radar', 'search']); return BaseSearch; })(); export class Search extends BaseSearch { } //# sourceMappingURL=search.mjs.map